@graphql-tools/apollo-engine-loader 7.3.26 → 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
@@ -48,7 +48,7 @@ class ApolloEngineLoader {
48
48
  const response = await (0, fetch_1.fetch)(...fetchArgs);
49
49
  const { data, errors } = await response.json();
50
50
  if (errors) {
51
- throw new utils_1.AggregateError(errors, 'Introspection from Apollo Engine failed; \n ' + errors.map((e) => e.message).join('\n'));
51
+ throw new AggregateError(errors, 'Introspection from Apollo Engine failed; \n ' + errors.map((e) => e.message).join('\n'));
52
52
  }
53
53
  const source = (0, utils_1.parseGraphQLSDL)(pointer, data.service.schema.document, options);
54
54
  return [source];
@@ -61,7 +61,7 @@ class ApolloEngineLoader {
61
61
  const response = (0, sync_fetch_1.default)(...fetchArgs);
62
62
  const { data, errors } = response.json();
63
63
  if (errors) {
64
- throw new utils_1.AggregateError(errors, 'Introspection from Apollo Engine failed; \n ' + errors.map((e) => e.message).join('\n'));
64
+ throw new AggregateError(errors, 'Introspection from Apollo Engine failed; \n ' + errors.map((e) => e.message).join('\n'));
65
65
  }
66
66
  const source = (0, utils_1.parseGraphQLSDL)(pointer, data.service.schema.document, options);
67
67
  return [source];
package/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { parseGraphQLSDL, AggregateError } from '@graphql-tools/utils';
1
+ import { parseGraphQLSDL } from '@graphql-tools/utils';
2
2
  import { fetch } from '@whatwg-node/fetch';
3
3
  import syncFetch from '@ardatan/sync-fetch';
4
4
  const DEFAULT_APOLLO_ENDPOINT = 'https://engine-graphql.apollographql.com/api/graphql';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-tools/apollo-engine-loader",
3
- "version": "7.3.26",
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": {
@@ -8,7 +8,7 @@
8
8
  },
9
9
  "dependencies": {
10
10
  "@ardatan/sync-fetch": "^0.0.1",
11
- "@graphql-tools/utils": "^9.2.1",
11
+ "@graphql-tools/utils": "10.0.0-alpha-20230515174415-d29a8b3b",
12
12
  "@whatwg-node/fetch": "^0.8.0",
13
13
  "tslib": "^2.4.0"
14
14
  },