@graphql-tools/git-loader 7.3.0 → 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
@@ -138,7 +138,7 @@ class GitLoader {
138
138
  if (process_1.env['DEBUG']) {
139
139
  console.error(error);
140
140
  }
141
- if (error instanceof utils_1.AggregateError) {
141
+ if (error instanceof AggregateError) {
142
142
  for (const errorElement of error.errors) {
143
143
  errors.push(errorElement);
144
144
  }
@@ -151,7 +151,7 @@ class GitLoader {
151
151
  if (errors.length === 1) {
152
152
  throw errors[0];
153
153
  }
154
- throw new utils_1.AggregateError(errors, `Reading from ${pointer} failed ; \n ` + errors.map((e) => e.message).join('\n'));
154
+ throw new AggregateError(errors, `Reading from ${pointer} failed ; \n ` + errors.map((e) => e.message).join('\n'));
155
155
  }
156
156
  return finalResult;
157
157
  }
@@ -203,7 +203,7 @@ class GitLoader {
203
203
  if (process_1.env['DEBUG']) {
204
204
  console.error(error);
205
205
  }
206
- if (error instanceof utils_1.AggregateError) {
206
+ if (error instanceof AggregateError) {
207
207
  for (const errorElement of error.errors) {
208
208
  errors.push(errorElement);
209
209
  }
@@ -216,7 +216,7 @@ class GitLoader {
216
216
  if (errors.length === 1) {
217
217
  throw errors[0];
218
218
  }
219
- throw new utils_1.AggregateError(errors, `Reading from ${pointer} failed ; \n ` + errors.map((e) => e.message).join('\n'));
219
+ throw new AggregateError(errors, `Reading from ${pointer} failed ; \n ` + errors.map((e) => e.message).join('\n'));
220
220
  }
221
221
  return finalResult;
222
222
  }
package/esm/index.js CHANGED
@@ -4,7 +4,7 @@ import unixify from 'unixify';
4
4
  import { loadFromGit, loadFromGitSync, readTreeAtRef, readTreeAtRefSync } from './load-git.js';
5
5
  import { parse as handleStuff } from './parse.js';
6
6
  import { parse } from 'graphql';
7
- import { asArray, AggregateError } from '@graphql-tools/utils';
7
+ import { asArray } from '@graphql-tools/utils';
8
8
  import isGlob from 'is-glob';
9
9
  import { env } from 'process';
10
10
  // git:branch:path/to/file
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@graphql-tools/git-loader",
3
- "version": "7.3.0",
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/graphql-tag-pluck": "7.5.2",
11
- "@graphql-tools/utils": "^9.2.1",
10
+ "@graphql-tools/graphql-tag-pluck": "7.5.3-alpha-20230515174415-d29a8b3b",
11
+ "@graphql-tools/utils": "10.0.0-alpha-20230515174415-d29a8b3b",
12
12
  "is-glob": "4.0.3",
13
13
  "micromatch": "^4.0.4",
14
14
  "tslib": "^2.4.0",