@envelop/testing 5.0.0 → 5.0.2-alpha-20221014125414-4a8038f2

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
@@ -1,11 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.collectAsyncIteratorValues = exports.assertStreamExecutionValue = exports.assertSingleExecutionValue = exports.createTestkit = exports.createSpiedPlugin = exports.useGraphQLJSEngine = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const GraphQLJS = tslib_1.__importStar(require("graphql"));
4
6
  const graphql_1 = require("graphql");
5
7
  const core_1 = require("@envelop/core");
6
8
  const utils_1 = require("@graphql-tools/utils");
7
9
  const useGraphQLJSEngine = () => {
8
- return (0, core_1.useEngine)({ parse: graphql_1.parse, validate: graphql_1.validate, execute: graphql_1.execute, subscribe: graphql_1.subscribe });
10
+ return (0, core_1.useEngine)(GraphQLJS);
9
11
  };
10
12
  exports.useGraphQLJSEngine = useGraphQLJSEngine;
11
13
  // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
package/esm/index.js CHANGED
@@ -1,8 +1,9 @@
1
- import { getOperationAST, GraphQLError, print, execute, parse, subscribe, validate, } from 'graphql';
1
+ import * as GraphQLJS from 'graphql';
2
+ import { getOperationAST, GraphQLError, print } from 'graphql';
2
3
  import { useSchema, envelop, isAsyncIterable, useEngine } from '@envelop/core';
3
4
  import { mapSchema as cloneSchema, isDocumentNode } from '@graphql-tools/utils';
4
5
  export const useGraphQLJSEngine = () => {
5
- return useEngine({ parse, validate, execute, subscribe });
6
+ return useEngine(GraphQLJS);
6
7
  };
7
8
  // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
8
9
  export function createSpiedPlugin() {
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@envelop/testing",
3
- "version": "5.0.0",
3
+ "version": "5.0.2-alpha-20221014125414-4a8038f2",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
- "@envelop/core": "^3.0.0",
7
- "@envelop/types": "^2.4.0",
6
+ "@envelop/core": "3.0.2-alpha-20221014125414-4a8038f2",
7
+ "@envelop/types": "^3.0.0",
8
8
  "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0"
9
9
  },
10
10
  "dependencies": {