@envelop/graphql-middleware 3.3.3-alpha-329be36.0 → 3.3.3-alpha-d8adbb6.0
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/index.js +3 -1
- package/index.mjs +3 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -8,7 +8,9 @@ const graphqlMiddlewareAppliedTransformSymbol = Symbol('graphqlMiddleware.applie
|
|
|
8
8
|
const useGraphQLMiddleware = (middlewares) => {
|
|
9
9
|
return {
|
|
10
10
|
onSchemaChange({ schema, replaceSchema }) {
|
|
11
|
-
|
|
11
|
+
var _a;
|
|
12
|
+
// @ts-expect-error See https://github.com/graphql/graphql-js/pull/3511 - remove this comments once merged
|
|
13
|
+
if ((_a = schema.extensions) === null || _a === void 0 ? void 0 : _a[graphqlMiddlewareAppliedTransformSymbol]) {
|
|
12
14
|
return;
|
|
13
15
|
}
|
|
14
16
|
if (middlewares.length > 0) {
|
package/index.mjs
CHANGED
|
@@ -4,7 +4,9 @@ const graphqlMiddlewareAppliedTransformSymbol = Symbol('graphqlMiddleware.applie
|
|
|
4
4
|
const useGraphQLMiddleware = (middlewares) => {
|
|
5
5
|
return {
|
|
6
6
|
onSchemaChange({ schema, replaceSchema }) {
|
|
7
|
-
|
|
7
|
+
var _a;
|
|
8
|
+
// @ts-expect-error See https://github.com/graphql/graphql-js/pull/3511 - remove this comments once merged
|
|
9
|
+
if ((_a = schema.extensions) === null || _a === void 0 ? void 0 : _a[graphqlMiddlewareAppliedTransformSymbol]) {
|
|
8
10
|
return;
|
|
9
11
|
}
|
|
10
12
|
if (middlewares.length > 0) {
|