@graphql-mesh/transform-rate-limit 1.0.0-alpha-20230424113259-560b18922 → 1.0.0-alpha-20230522105300-fe9c79867
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 +1 -2
- package/esm/index.js +0 -1
- package/package.json +5 -5
package/cjs/index.js
CHANGED
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const graphql_1 = require("graphql");
|
|
4
4
|
const cross_helpers_1 = require("@graphql-mesh/cross-helpers");
|
|
5
5
|
const string_interpolation_1 = require("@graphql-mesh/string-interpolation");
|
|
6
|
-
const utils_1 = require("@graphql-tools/utils");
|
|
7
6
|
class RateLimitTransform {
|
|
8
7
|
constructor(options) {
|
|
9
8
|
this.pathRateLimitDef = new Map();
|
|
@@ -71,7 +70,7 @@ class RateLimitTransform {
|
|
|
71
70
|
throw errors[0];
|
|
72
71
|
}
|
|
73
72
|
else if (errors.length > 0) {
|
|
74
|
-
throw new
|
|
73
|
+
throw new AggregateError(errors);
|
|
75
74
|
}
|
|
76
75
|
}
|
|
77
76
|
this.errors.set(delegationContext, errors);
|
package/esm/index.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { GraphQLError, TypeInfo, visit, visitWithTypeInfo } from 'graphql';
|
|
2
2
|
import { process } from '@graphql-mesh/cross-helpers';
|
|
3
3
|
import { stringInterpolator } from '@graphql-mesh/string-interpolation';
|
|
4
|
-
import { AggregateError } from '@graphql-tools/utils';
|
|
5
4
|
export default class RateLimitTransform {
|
|
6
5
|
constructor(options) {
|
|
7
6
|
this.pathRateLimitDef = new Map();
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-mesh/transform-rate-limit",
|
|
3
|
-
"version": "1.0.0-alpha-
|
|
3
|
+
"version": "1.0.0-alpha-20230522105300-fe9c79867",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
|
-
"@graphql-mesh/cross-helpers": "
|
|
7
|
-
"@graphql-mesh/types": "1.0.0-alpha-
|
|
8
|
-
"@graphql-mesh/utils": "1.0.0-alpha-
|
|
6
|
+
"@graphql-mesh/cross-helpers": "0.4.0-alpha-20230522105300-fe9c79867",
|
|
7
|
+
"@graphql-mesh/types": "1.0.0-alpha-20230522105300-fe9c79867",
|
|
8
|
+
"@graphql-mesh/utils": "1.0.0-alpha-20230522105300-fe9c79867",
|
|
9
9
|
"@graphql-tools/utils": "^9.2.1",
|
|
10
10
|
"graphql": "*",
|
|
11
11
|
"tslib": "^2.4.0"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@graphql-mesh/string-interpolation": "
|
|
14
|
+
"@graphql-mesh/string-interpolation": "0.5.0-alpha-20230522105300-fe9c79867"
|
|
15
15
|
},
|
|
16
16
|
"repository": {
|
|
17
17
|
"type": "git",
|