@graphql-mesh/plugin-mock 0.1.18 → 0.1.19-alpha-20230321145025-cc027190e

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
@@ -2,11 +2,11 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const faker_1 = tslib_1.__importDefault(require("faker"));
5
+ const graphql_1 = require("graphql");
5
6
  const graphql_scalars_1 = require("graphql-scalars");
6
- const mock_1 = require("@graphql-tools/mock");
7
- const utils_1 = require("@graphql-mesh/utils");
8
7
  const string_interpolation_1 = require("@graphql-mesh/string-interpolation");
9
- const graphql_1 = require("graphql");
8
+ const utils_1 = require("@graphql-mesh/utils");
9
+ const mock_1 = require("@graphql-tools/mock");
10
10
  const mockedSchemas = new WeakSet();
11
11
  function useMock(config) {
12
12
  const configIf = config != null && 'if' in config ? config.if : true;
package/esm/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import faker from 'faker';
2
+ import { execute } from 'graphql';
2
3
  import { mocks as graphqlScalarsMocks } from 'graphql-scalars';
3
- import { addMocksToSchema, createMockStore } from '@graphql-tools/mock';
4
- import { loadFromModuleExportExpression } from '@graphql-mesh/utils';
5
4
  import { getInterpolatedStringFactory } from '@graphql-mesh/string-interpolation';
6
- import { execute } from 'graphql';
5
+ import { loadFromModuleExportExpression } from '@graphql-mesh/utils';
6
+ import { addMocksToSchema, createMockStore } from '@graphql-tools/mock';
7
7
  const mockedSchemas = new WeakSet();
8
8
  export default function useMock(config) {
9
9
  const configIf = config != null && 'if' in config ? config.if : true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-mesh/plugin-mock",
3
- "version": "0.1.18",
3
+ "version": "0.1.19-alpha-20230321145025-cc027190e",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
6
  "graphql": "*"
@@ -8,8 +8,8 @@
8
8
  "dependencies": {
9
9
  "@graphql-mesh/cross-helpers": "0.3.3",
10
10
  "@graphql-mesh/string-interpolation": "0.4.2",
11
- "@graphql-mesh/types": "0.91.9",
12
- "@graphql-mesh/utils": "0.43.17",
11
+ "@graphql-mesh/types": "0.91.10-alpha-20230321145025-cc027190e",
12
+ "@graphql-mesh/utils": "0.43.18-alpha-20230321145025-cc027190e",
13
13
  "@graphql-tools/mock": "8.7.18",
14
14
  "@graphql-tools/schema": "9.0.16",
15
15
  "@graphql-tools/utils": "9.2.1",
@@ -1,2 +1,2 @@
1
- import { MeshPluginOptions, YamlConfig, MeshPlugin } from '@graphql-mesh/types';
1
+ import { MeshPlugin, MeshPluginOptions, YamlConfig } from '@graphql-mesh/types';
2
2
  export default function useMock(config: MeshPluginOptions<YamlConfig.MockingConfig>): MeshPlugin<{}>;
@@ -1,2 +1,2 @@
1
- import { MeshPluginOptions, YamlConfig, MeshPlugin } from '@graphql-mesh/types';
1
+ import { MeshPlugin, MeshPluginOptions, YamlConfig } from '@graphql-mesh/types';
2
2
  export default function useMock(config: MeshPluginOptions<YamlConfig.MockingConfig>): MeshPlugin<{}>;