@graphql-tools/load 7.8.14 → 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.
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.loadFileSync = exports.loadFile = void 0;
4
- const utils_1 = require("@graphql-tools/utils");
5
4
  const process_1 = require("process");
6
5
  async function loadFile(pointer, options) {
7
6
  var _a;
@@ -21,7 +20,7 @@ async function loadFile(pointer, options) {
21
20
  if (process_1.env['DEBUG']) {
22
21
  console.error(error);
23
22
  }
24
- if (error instanceof utils_1.AggregateError) {
23
+ if (error instanceof AggregateError) {
25
24
  for (const errorElement of error.errors) {
26
25
  errors.push(errorElement);
27
26
  }
@@ -35,7 +34,7 @@ async function loadFile(pointer, options) {
35
34
  if (errors.length === 1) {
36
35
  throw errors[0];
37
36
  }
38
- throw new utils_1.AggregateError(errors, `Failed to find any GraphQL type definitions in: ${pointer};\n - ${errors
37
+ throw new AggregateError(errors, `Failed to find any GraphQL type definitions in: ${pointer};\n - ${errors
39
38
  .map(error => error.message)
40
39
  .join('\n - ')}`);
41
40
  }
@@ -68,7 +67,7 @@ function loadFileSync(pointer, options) {
68
67
  if (process_1.env['DEBUG']) {
69
68
  console.error(error);
70
69
  }
71
- if (error instanceof utils_1.AggregateError) {
70
+ if (error instanceof AggregateError) {
72
71
  for (const errorElement of error.errors) {
73
72
  errors.push(errorElement);
74
73
  }
@@ -82,7 +81,7 @@ function loadFileSync(pointer, options) {
82
81
  if (errors.length === 1) {
83
82
  throw errors[0];
84
83
  }
85
- throw new utils_1.AggregateError(errors, `Failed to find any GraphQL type definitions in: ${pointer};\n - ${errors
84
+ throw new AggregateError(errors, `Failed to find any GraphQL type definitions in: ${pointer};\n - ${errors
86
85
  .map(error => error.message)
87
86
  .join('\n - ')}`);
88
87
  }
@@ -1,4 +1,3 @@
1
- import { AggregateError } from '@graphql-tools/utils';
2
1
  import { env } from 'process';
3
2
  export async function loadFile(pointer, options) {
4
3
  var _a;
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@graphql-tools/load",
3
- "version": "7.8.14",
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",
11
- "@graphql-tools/schema": "^9.0.18",
10
+ "@graphql-tools/utils": "10.0.0-alpha-20230515174415-d29a8b3b",
11
+ "@graphql-tools/schema": "9.0.20-alpha-20230515174415-d29a8b3b",
12
12
  "p-limit": "3.1.0",
13
13
  "tslib": "^2.4.0"
14
14
  },