@graphql-tools/load
Advanced tools
Comparing version 7.8.14 to 8.0.0-alpha-20230515173601-f70d8382
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.loadFileSync = exports.loadFile = void 0; | ||
const utils_1 = require("@graphql-tools/utils"); | ||
const process_1 = require("process"); | ||
@@ -24,3 +23,3 @@ async function loadFile(pointer, options) { | ||
} | ||
if (error instanceof utils_1.AggregateError) { | ||
if (error instanceof AggregateError) { | ||
for (const errorElement of error.errors) { | ||
@@ -39,3 +38,3 @@ errors.push(errorElement); | ||
} | ||
throw new utils_1.AggregateError(errors, `Failed to find any GraphQL type definitions in: ${pointer};\n - ${errors | ||
throw new AggregateError(errors, `Failed to find any GraphQL type definitions in: ${pointer};\n - ${errors | ||
.map(error => error.message) | ||
@@ -73,3 +72,3 @@ .join('\n - ')}`); | ||
} | ||
if (error instanceof utils_1.AggregateError) { | ||
if (error instanceof AggregateError) { | ||
for (const errorElement of error.errors) { | ||
@@ -88,3 +87,3 @@ errors.push(errorElement); | ||
} | ||
throw new utils_1.AggregateError(errors, `Failed to find any GraphQL type definitions in: ${pointer};\n - ${errors | ||
throw new AggregateError(errors, `Failed to find any GraphQL type definitions in: ${pointer};\n - ${errors | ||
.map(error => error.message) | ||
@@ -91,0 +90,0 @@ .join('\n - ')}`); |
@@ -1,2 +0,1 @@ | ||
import { AggregateError } from '@graphql-tools/utils'; | ||
import { env } from 'process'; | ||
@@ -3,0 +2,0 @@ export async function loadFile(pointer, options) { |
{ | ||
"name": "@graphql-tools/load", | ||
"version": "7.8.14", | ||
"version": "8.0.0-alpha-20230515173601-f70d8382", | ||
"description": "A set of utils for faster development of GraphQL tools", | ||
@@ -10,4 +10,4 @@ "sideEffects": false, | ||
"dependencies": { | ||
"@graphql-tools/utils": "^9.2.1", | ||
"@graphql-tools/schema": "^9.0.18", | ||
"@graphql-tools/utils": "10.0.0-alpha-20230515173601-f70d8382", | ||
"@graphql-tools/schema": "9.0.20-alpha-20230515173601-f70d8382", | ||
"p-limit": "3.1.0", | ||
@@ -14,0 +14,0 @@ "tslib": "^2.4.0" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
80252
1881
2
18
0
+ Added@graphql-tools/merge@8.4.3-alpha-20230515173601-f70d8382(transitive)
+ Added@graphql-tools/schema@9.0.20-alpha-20230515173601-f70d8382(transitive)
+ Added@graphql-tools/utils@10.0.0-alpha-20230515173601-f70d8382(transitive)
- Removed@graphql-tools/merge@8.4.2(transitive)
- Removed@graphql-tools/schema@9.0.19(transitive)
- Removed@graphql-tools/utils@9.2.1(transitive)
Updated@graphql-tools/schema@9.0.20-alpha-20230515173601-f70d8382
Updated@graphql-tools/utils@10.0.0-alpha-20230515173601-f70d8382