Skip to content

Commit

Permalink
chore(dependencies): updated changesets for modified dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored and ardatan committed Jan 20, 2025
1 parent bd77e13 commit bfc739c
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 13 deletions.
5 changes: 5 additions & 0 deletions .changeset/graphql-modules-2479-dependencies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'graphql-modules': patch
---
dependencies updates:
- Updated dependency [`ramda@^0.30.0` ↗︎](https://www.npmjs.com/package/ramda/v/0.30.0) (from `^0.29.0`, in `dependencies`)
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn lint-staged
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
save-exact=true
ignore-engines=true
3 changes: 1 addition & 2 deletions jest.config.base.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ const { pathsToModuleNameMapper } = require('ts-jest');

const ROOT_DIR = __dirname;
const TSCONFIG_PATH = resolve(ROOT_DIR, 'tsconfig.json');
const TSCONFIG_TEST_PATH = resolve(ROOT_DIR, 'tsconfig.test.json');
const tsconfig = require(TSCONFIG_PATH);
const CI = !!process.env.CI;

Expand All @@ -12,7 +11,7 @@ module.exports = (dir) => {
testEnvironment: 'node',
rootDir: dir,
reporters: ['default'],
modulePathIgnorePatterns: ['dist'],
modulePathIgnorePatterns: ['dist', '.bob'],
moduleNameMapper: pathsToModuleNameMapper(tsconfig.compilerOptions.paths, {
prefix: `${ROOT_DIR}/`,
}),
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
"prepare": "husky install",
"postinstall": "patch-package",
"ts:check": "tsc --project tsconfig.json --noEmit",
"ci:lint": "eslint \"packages/**/*.{js,jsx,ts,tsx}\" --output-file eslint_report.json --format json",
"ci:lint": "cross-env \"ESLINT_USE_FLAT_CONFIG=false\" eslint \"packages/**/*.{js,jsx,ts,tsx}\" --output-file eslint_report.json --format json",
"build": "tsc --project tsconfig.json && bob build",
"test": "jest --config jest.config.base.js",
"prerelease": "yarn build",
"release": "changeset publish",
"format": "prettier --cache --ignore-path .gitignore --ignore-path .prettierignore --check --write \"{packages,website}/**/*.{js,jsx,json,css,md,mdx,ts,tsx}\"",
"pr": "changeset",
"lint": "eslint \"packages/**/*.{js,jsx,ts,tsx}\"",
"lint": "cross-env \"ESLINT_USE_FLAT_CONFIG=false\" eslint \"packages/**/*.{js,jsx,ts,tsx}\"",
"benchmark:basic": "NODE_ENV=production ts-node --project tsconfig.app.json benchmark/basic.case.ts",
"deploy-website": "cd website && yarn && yarn build && mkdir graphql-modules && mv build/* graphql-modules && mv graphql-modules build"
},
Expand Down Expand Up @@ -53,6 +53,7 @@
"babel-jest": "29.7.0",
"bob-the-bundler": "1.7.3",
"chalk": "4.1.2",
"cross-env": "7.0.3",
"dataloader": "2.2.3",
"eslint": "9.18.0",
"express": "4.21.2",
Expand Down Expand Up @@ -88,7 +89,7 @@
]
},
"lint-staged": {
"*.ts": "eslint",
"*.ts": "cross-env \"ESLINT_USE_FLAT_CONFIG=false\" eslint",
"*{js,json,css,md,ts,tsx}": "prettier --write"
},
"packageManager": "[email protected]+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
Expand Down
13 changes: 8 additions & 5 deletions packages/graphql-modules/src/shared/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function isAsyncIterable(obj: any): obj is AsyncIterableIterator<any> {
}

export function tapAsyncIterator<T>(
iterable: AsyncIterable<T>,
iterable: AsyncGenerator<T>,
doneCallback: () => void
): AsyncGenerator<T> {
const iteratorMethod = iterable[Symbol.asyncIterator];
Expand All @@ -53,23 +53,26 @@ export function tapAsyncIterator<T>(
throw error;
}
},
async return() {
async return(value: any) {
try {
const result = await iterator.return!();
const result = await iterator.return(value);

return mapResult(result);
} catch (error) {
doneCallback();
throw error;
}
},
async throw(error) {
throw(error) {
doneCallback();
return iterator.throw!(error);
return iterator.throw(error);
},
[Symbol.asyncIterator]() {
return this;
},
[Symbol.asyncDispose]() {
return iterator[Symbol.asyncDispose]();
},
};
}

Expand Down

0 comments on commit bfc739c

Please sign in to comment.