@graphql-tools/graphql-file-loader 7.5.17 → 8.0.0-alpha-20230515174415-d29a8b3b
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/index.js +2 -2
- package/esm/index.js +1 -1
- package/package.json +3 -3
package/cjs/index.js
CHANGED
|
@@ -115,7 +115,7 @@ class GraphQLFileLoader {
|
|
|
115
115
|
if (errors.length === 1) {
|
|
116
116
|
throw errors[0];
|
|
117
117
|
}
|
|
118
|
-
throw new
|
|
118
|
+
throw new AggregateError(errors, `Reading from ${pointer} failed ; \n ` + errors.map((e) => e.message).join('\n'));
|
|
119
119
|
}
|
|
120
120
|
return finalResult;
|
|
121
121
|
}
|
|
@@ -142,7 +142,7 @@ class GraphQLFileLoader {
|
|
|
142
142
|
if (errors.length === 1) {
|
|
143
143
|
throw errors[0];
|
|
144
144
|
}
|
|
145
|
-
throw new
|
|
145
|
+
throw new AggregateError(errors, `Reading from ${pointer} failed ; \n ` + errors.map((e) => e.message).join('\n'));
|
|
146
146
|
}
|
|
147
147
|
return finalResult;
|
|
148
148
|
}
|
package/esm/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isValidPath, parseGraphQLSDL, asArray
|
|
1
|
+
import { isValidPath, parseGraphQLSDL, asArray } from '@graphql-tools/utils';
|
|
2
2
|
import { isAbsolute, resolve } from 'path';
|
|
3
3
|
import { readFileSync, promises as fsPromises, existsSync } from 'fs';
|
|
4
4
|
import { cwd as processCwd, env } from 'process';
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-tools/graphql-file-loader",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.0-alpha-20230515174415-d29a8b3b",
|
|
4
4
|
"description": "A set of utils for faster development of GraphQL tools",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"peerDependencies": {
|
|
7
7
|
"graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@graphql-tools/import": "6.7.
|
|
11
|
-
"@graphql-tools/utils": "
|
|
10
|
+
"@graphql-tools/import": "6.7.19-alpha-20230515174415-d29a8b3b",
|
|
11
|
+
"@graphql-tools/utils": "10.0.0-alpha-20230515174415-d29a8b3b",
|
|
12
12
|
"globby": "^11.0.3",
|
|
13
13
|
"unixify": "^1.0.0",
|
|
14
14
|
"tslib": "^2.4.0"
|