@graphql-tools/code-file-loader 7.2.0 → 7.2.2-alpha-0dcd17c0.0

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.
Files changed (3) hide show
  1. package/index.js +2 -2
  2. package/index.mjs +2 -2
  3. package/package.json +3 -3
package/index.js CHANGED
@@ -263,7 +263,7 @@ class CodeFileLoader {
263
263
  if (errors.length === 1) {
264
264
  throw errors[0];
265
265
  }
266
- throw new utils.AggregateError(errors);
266
+ throw new utils.AggregateError(errors, `Reading from ${pointer} failed ; \n ` + errors.map((e) => e.message).join('\n'));
267
267
  }
268
268
  return finalResult;
269
269
  }
@@ -290,7 +290,7 @@ class CodeFileLoader {
290
290
  if (errors.length === 1) {
291
291
  throw errors[0];
292
292
  }
293
- throw new utils.AggregateError(errors);
293
+ throw new utils.AggregateError(errors, `Reading from ${pointer} failed ; \n ` + errors.map((e) => e.message).join('\n'));
294
294
  }
295
295
  return finalResult;
296
296
  }
package/index.mjs CHANGED
@@ -238,7 +238,7 @@ class CodeFileLoader {
238
238
  if (errors.length === 1) {
239
239
  throw errors[0];
240
240
  }
241
- throw new AggregateError(errors);
241
+ throw new AggregateError(errors, `Reading from ${pointer} failed ; \n ` + errors.map((e) => e.message).join('\n'));
242
242
  }
243
243
  return finalResult;
244
244
  }
@@ -265,7 +265,7 @@ class CodeFileLoader {
265
265
  if (errors.length === 1) {
266
266
  throw errors[0];
267
267
  }
268
- throw new AggregateError(errors);
268
+ throw new AggregateError(errors, `Reading from ${pointer} failed ; \n ` + errors.map((e) => e.message).join('\n'));
269
269
  }
270
270
  return finalResult;
271
271
  }
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@graphql-tools/code-file-loader",
3
- "version": "7.2.0",
3
+ "version": "7.2.2-alpha-0dcd17c0.0",
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"
8
8
  },
9
9
  "dependencies": {
10
- "@graphql-tools/graphql-tag-pluck": "^7.1.0",
11
- "@graphql-tools/utils": "^8.2.0",
10
+ "@graphql-tools/graphql-tag-pluck": "7.1.3-alpha-0dcd17c0.0",
11
+ "@graphql-tools/utils": "8.4.0-alpha-0dcd17c0.0",
12
12
  "globby": "^11.0.3",
13
13
  "tslib": "~2.3.0",
14
14
  "unixify": "^1.0.0"