@graphql-tools/utils 8.0.1 → 8.0.2

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,3 +1,10 @@
1
- /// <reference lib="es2021.promise" />
1
+ interface AggregateError extends Error {
2
+ errors: any[];
3
+ }
4
+ interface AggregateErrorConstructor {
5
+ new (errors: Iterable<any>, message?: string): AggregateError;
6
+ (errors: Iterable<any>, message?: string): AggregateError;
7
+ readonly prototype: AggregateError;
8
+ }
2
9
  declare let AggregateErrorImpl: AggregateErrorConstructor;
3
10
  export { AggregateErrorImpl as AggregateError };
@@ -1,3 +1,10 @@
1
- /// <reference lib="es2021.promise" />
1
+ interface AggregateError extends Error {
2
+ errors: any[];
3
+ }
4
+ interface AggregateErrorConstructor {
5
+ new (errors: Iterable<any>, message?: string): AggregateError;
6
+ (errors: Iterable<any>, message?: string): AggregateError;
7
+ readonly prototype: AggregateError;
8
+ }
2
9
  declare let AggregateErrorImpl: AggregateErrorConstructor;
3
10
  export { AggregateErrorImpl as AggregateError };
package/es5/index.js CHANGED
@@ -1084,7 +1084,6 @@ function makeDirectiveNodes(schema, directiveValues) {
1084
1084
  return directiveNodes;
1085
1085
  }
1086
1086
 
1087
- /// <reference lib="es2021.promise" />
1088
1087
  exports.AggregateError = globalThis.AggregateError;
1089
1088
  if (typeof exports.AggregateError === 'undefined') {
1090
1089
  var AggregateErrorClass_1 = /** @class */ (function (_super) {
package/es5/index.mjs CHANGED
@@ -1080,7 +1080,6 @@ function makeDirectiveNodes(schema, directiveValues) {
1080
1080
  return directiveNodes;
1081
1081
  }
1082
1082
 
1083
- /// <reference lib="es2021.promise" />
1084
1083
  var AggregateErrorImpl = globalThis.AggregateError;
1085
1084
  if (typeof AggregateErrorImpl === 'undefined') {
1086
1085
  var AggregateErrorClass_1 = /** @class */ (function (_super) {
package/es5/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-tools/utils/es5",
3
- "version": "8.0.1",
3
+ "version": "8.0.2",
4
4
  "description": "Common package containing utils and types for GraphQL tools",
5
5
  "sideEffects": false,
6
6
  "peerDependencies": {
package/index.js CHANGED
@@ -884,7 +884,6 @@ function makeDirectiveNodes(schema, directiveValues) {
884
884
  return directiveNodes;
885
885
  }
886
886
 
887
- /// <reference lib="es2021.promise" />
888
887
  exports.AggregateError = globalThis.AggregateError;
889
888
  if (typeof exports.AggregateError === 'undefined') {
890
889
  class AggregateErrorClass extends Error {
package/index.mjs CHANGED
@@ -880,7 +880,6 @@ function makeDirectiveNodes(schema, directiveValues) {
880
880
  return directiveNodes;
881
881
  }
882
882
 
883
- /// <reference lib="es2021.promise" />
884
883
  let AggregateErrorImpl = globalThis.AggregateError;
885
884
  if (typeof AggregateErrorImpl === 'undefined') {
886
885
  class AggregateErrorClass extends Error {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-tools/utils",
3
- "version": "8.0.1",
3
+ "version": "8.0.2",
4
4
  "description": "Common package containing utils and types for GraphQL tools",
5
5
  "sideEffects": false,
6
6
  "peerDependencies": {