@graphql-tools/json-file-loader 7.4.18 → 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 CHANGED
@@ -100,7 +100,7 @@ class JsonFileLoader {
100
100
  if (errors.length === 1) {
101
101
  throw errors[0];
102
102
  }
103
- throw new utils_1.AggregateError(errors, `Reading from ${pointer} failed ; \n ` + errors.map((e) => e.message).join('\n'));
103
+ throw new AggregateError(errors, `Reading from ${pointer} failed ; \n ` + errors.map((e) => e.message).join('\n'));
104
104
  }
105
105
  return finalResult;
106
106
  }
@@ -127,7 +127,7 @@ class JsonFileLoader {
127
127
  if (errors.length === 1) {
128
128
  throw errors[0];
129
129
  }
130
- throw new utils_1.AggregateError(errors, `Reading from ${pointer} failed ; \n ` + errors.map((e) => e.message).join('\n'));
130
+ throw new AggregateError(errors, `Reading from ${pointer} failed ; \n ` + errors.map((e) => e.message).join('\n'));
131
131
  }
132
132
  return finalResult;
133
133
  }
package/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { isValidPath, asArray, parseGraphQLJSON, AggregateError, } from '@graphql-tools/utils';
1
+ import { isValidPath, asArray, parseGraphQLJSON } 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,13 +1,13 @@
1
1
  {
2
2
  "name": "@graphql-tools/json-file-loader",
3
- "version": "7.4.18",
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/utils": "^9.2.1",
10
+ "@graphql-tools/utils": "10.0.0-alpha-20230515174415-d29a8b3b",
11
11
  "globby": "^11.0.3",
12
12
  "unixify": "^1.0.0",
13
13
  "tslib": "^2.4.0"