@graphql-tools/url-loader 7.17.3 → 7.17.4-alpha-20230124200430-4bebc8cc

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 CHANGED
@@ -160,7 +160,7 @@ class UrlLoader {
160
160
  request.operationType = request.operationType || ((_a = (0, utils_1.getOperationASTFromRequest)(request)) === null || _a === void 0 ? void 0 : _a.operation);
161
161
  if (request.operationType === 'subscription' &&
162
162
  (0, executor_http_1.isLiveQueryOperationDefinitionNode)((0, utils_1.getOperationASTFromRequest)(request))) {
163
- request.operationType = graphql_1.OperationTypeNode.SUBSCRIPTION;
163
+ request.operationType = 'subscription';
164
164
  }
165
165
  if (request.operationType === 'subscription') {
166
166
  return subscriptionExecutor$;
package/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { buildASTSchema, buildSchema, OperationTypeNode } from 'graphql';
1
+ import { buildASTSchema, buildSchema } from 'graphql';
2
2
  import { parseGraphQLSDL, getOperationASTFromRequest, } from '@graphql-tools/utils';
3
3
  import { schemaFromExecutor, wrapSchema } from '@graphql-tools/wrap';
4
4
  import WebSocket from 'isomorphic-ws';
@@ -156,7 +156,7 @@ export class UrlLoader {
156
156
  request.operationType = request.operationType || ((_a = getOperationASTFromRequest(request)) === null || _a === void 0 ? void 0 : _a.operation);
157
157
  if (request.operationType === 'subscription' &&
158
158
  isLiveQueryOperationDefinitionNode(getOperationASTFromRequest(request))) {
159
- request.operationType = OperationTypeNode.SUBSCRIPTION;
159
+ request.operationType = 'subscription';
160
160
  }
161
161
  if (request.operationType === 'subscription') {
162
162
  return subscriptionExecutor$;
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@graphql-tools/url-loader",
3
- "version": "7.17.3",
3
+ "version": "7.17.4-alpha-20230124200430-4bebc8cc",
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/delegate": "9.0.22",
10
+ "@graphql-tools/delegate": "9.0.23-alpha-20230124200430-4bebc8cc",
11
11
  "@graphql-tools/executor-http": "0.1.1",
12
12
  "@graphql-tools/executor-graphql-ws": "0.0.7",
13
13
  "@graphql-tools/executor-legacy-ws": "0.0.6",
14
14
  "@graphql-tools/utils": "9.1.4",
15
- "@graphql-tools/wrap": "9.3.1",
15
+ "@graphql-tools/wrap": "9.3.2-alpha-20230124200430-4bebc8cc",
16
16
  "@ardatan/sync-fetch": "0.0.1",
17
17
  "@whatwg-node/fetch": "^0.6.0",
18
18
  "@types/ws": "^8.0.0",