@graphql-tools/mock 8.7.2 → 8.7.3-alpha-20220809192840-c5b336bd
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/MockStore.js +1 -1
- package/cjs/addMocksToSchema.js +1 -1
- package/cjs/mockServer.js +1 -1
- package/esm/MockStore.js +1 -1
- package/esm/addMocksToSchema.js +1 -1
- package/esm/mockServer.js +1 -1
- package/package.json +4 -6
- package/typings/MockStore.d.cts +1 -1
- package/typings/MockStore.d.ts +1 -1
- package/typings/addMocksToSchema.d.cts +1 -1
- package/typings/addMocksToSchema.d.ts +1 -1
- package/typings/pagination.d.cts +1 -1
- package/typings/pagination.d.ts +1 -1
- package/typings/types.d.cts +1 -1
- package/typings/types.d.ts +1 -1
- package/typings/utils.d.cts +1 -1
- package/typings/utils.d.ts +1 -1
package/cjs/MockStore.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createMockStore = exports.MockStore = exports.defaultMocks = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const graphql_1 = require("graphql");
|
|
5
|
+
const graphql_1 = require("@graphql-tools/graphql");
|
|
6
6
|
const fast_json_stable_stringify_1 = tslib_1.__importDefault(require("fast-json-stable-stringify"));
|
|
7
7
|
const types_js_1 = require("./types.js");
|
|
8
8
|
const utils_js_1 = require("./utils.js");
|
package/cjs/addMocksToSchema.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.addMocksToSchema = void 0;
|
|
4
|
-
const graphql_1 = require("graphql");
|
|
4
|
+
const graphql_1 = require("@graphql-tools/graphql");
|
|
5
5
|
const utils_1 = require("@graphql-tools/utils");
|
|
6
6
|
const schema_1 = require("@graphql-tools/schema");
|
|
7
7
|
const types_js_1 = require("./types.js");
|
package/cjs/mockServer.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.mockServer = void 0;
|
|
4
|
-
const graphql_1 = require("graphql");
|
|
4
|
+
const graphql_1 = require("@graphql-tools/graphql");
|
|
5
5
|
const schema_1 = require("@graphql-tools/schema");
|
|
6
6
|
const addMocksToSchema_js_1 = require("./addMocksToSchema.js");
|
|
7
7
|
/**
|
package/esm/MockStore.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GraphQLString, isObjectType, isScalarType, getNullableType, isListType, isEnumType, isAbstractType, isCompositeType, isNullableType, isInterfaceType, } from 'graphql';
|
|
1
|
+
import { GraphQLString, isObjectType, isScalarType, getNullableType, isListType, isEnumType, isAbstractType, isCompositeType, isNullableType, isInterfaceType, } from '@graphql-tools/graphql';
|
|
2
2
|
import stringify from 'fast-json-stable-stringify';
|
|
3
3
|
import { isRef, assertIsRef, isRecord, } from './types.js';
|
|
4
4
|
import { uuidv4, randomListLength, takeRandom, makeRef } from './utils.js';
|
package/esm/addMocksToSchema.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defaultFieldResolver, isUnionType, GraphQLUnionType, GraphQLInterfaceType, isSchema, } from 'graphql';
|
|
1
|
+
import { defaultFieldResolver, isUnionType, GraphQLUnionType, GraphQLInterfaceType, isSchema, } from '@graphql-tools/graphql';
|
|
2
2
|
import { mapSchema, MapperKind } from '@graphql-tools/utils';
|
|
3
3
|
import { addResolversToSchema } from '@graphql-tools/schema';
|
|
4
4
|
import { isRef } from './types.js';
|
package/esm/mockServer.js
CHANGED
package/package.json
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-tools/mock",
|
|
3
|
-
"version": "8.7.
|
|
3
|
+
"version": "8.7.3-alpha-20220809192840-c5b336bd",
|
|
4
4
|
"description": "A set of utils for faster development of GraphQL tools",
|
|
5
5
|
"sideEffects": false,
|
|
6
|
-
"peerDependencies": {
|
|
7
|
-
"graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0"
|
|
8
|
-
},
|
|
9
6
|
"dependencies": {
|
|
10
|
-
"@graphql-tools/schema": "9.0.
|
|
11
|
-
"@graphql-tools/utils": "8.9.
|
|
7
|
+
"@graphql-tools/schema": "9.0.1-alpha-20220809192840-c5b336bd",
|
|
8
|
+
"@graphql-tools/utils": "8.9.2-alpha-20220809192840-c5b336bd",
|
|
9
|
+
"@graphql-tools/graphql": "0.1.0-alpha-20220809192840-c5b336bd",
|
|
12
10
|
"fast-json-stable-stringify": "^2.1.0",
|
|
13
11
|
"tslib": "^2.4.0"
|
|
14
12
|
},
|
package/typings/MockStore.d.cts
CHANGED
package/typings/MockStore.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GraphQLSchema } from 'graphql';
|
|
1
|
+
import { GraphQLSchema } from '@graphql-tools/graphql';
|
|
2
2
|
import { IResolvers } from '@graphql-tools/utils';
|
|
3
3
|
import { IMockStore, IMocks, TypePolicy } from './types.cjs';
|
|
4
4
|
declare type IMockOptions<TResolvers = IResolvers> = {
|
package/typings/pagination.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IFieldResolver } from '@graphql-tools/utils';
|
|
2
|
-
import { GraphQLResolveInfo } from 'graphql';
|
|
2
|
+
import { GraphQLResolveInfo } from '@graphql-tools/graphql';
|
|
3
3
|
import { IMockStore, Ref } from './types.cjs';
|
|
4
4
|
export declare type AllNodesFn<TContext, TArgs extends RelayPaginationParams> = (parent: Ref, args: TArgs, context: TContext, info: GraphQLResolveInfo) => Ref[];
|
|
5
5
|
export declare type RelayStylePaginationMockOptions<TContext, TArgs extends RelayPaginationParams> = {
|
package/typings/pagination.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IFieldResolver } from '@graphql-tools/utils';
|
|
2
|
-
import { GraphQLResolveInfo } from 'graphql';
|
|
2
|
+
import { GraphQLResolveInfo } from '@graphql-tools/graphql';
|
|
3
3
|
import { IMockStore, Ref } from './types.js';
|
|
4
4
|
export declare type AllNodesFn<TContext, TArgs extends RelayPaginationParams> = (parent: Ref, args: TArgs, context: TContext, info: GraphQLResolveInfo) => Ref[];
|
|
5
5
|
export declare type RelayStylePaginationMockOptions<TContext, TArgs extends RelayPaginationParams> = {
|
package/typings/types.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IResolvers } from '@graphql-tools/utils';
|
|
2
|
-
import { ExecutionResult, GraphQLSchema } from 'graphql';
|
|
2
|
+
import { ExecutionResult, GraphQLSchema } from '@graphql-tools/graphql';
|
|
3
3
|
export declare type IMockFn = () => unknown;
|
|
4
4
|
export declare type IScalarMock = unknown | IMockFn;
|
|
5
5
|
export declare type ITypeMock = () => {
|
package/typings/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IResolvers } from '@graphql-tools/utils';
|
|
2
|
-
import { ExecutionResult, GraphQLSchema } from 'graphql';
|
|
2
|
+
import { ExecutionResult, GraphQLSchema } from '@graphql-tools/graphql';
|
|
3
3
|
export declare type IMockFn = () => unknown;
|
|
4
4
|
export declare type IScalarMock = unknown | IMockFn;
|
|
5
5
|
export declare type ITypeMock = () => {
|
package/typings/utils.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GraphQLObjectType, GraphQLSchema } from 'graphql';
|
|
1
|
+
import { GraphQLObjectType, GraphQLSchema } from '@graphql-tools/graphql';
|
|
2
2
|
import { Ref, KeyTypeConstraints } from './types.cjs';
|
|
3
3
|
export declare function uuidv4(): string;
|
|
4
4
|
export declare const randomListLength: () => number;
|
package/typings/utils.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GraphQLObjectType, GraphQLSchema } from 'graphql';
|
|
1
|
+
import { GraphQLObjectType, GraphQLSchema } from '@graphql-tools/graphql';
|
|
2
2
|
import { Ref, KeyTypeConstraints } from './types.js';
|
|
3
3
|
export declare function uuidv4(): string;
|
|
4
4
|
export declare const randomListLength: () => number;
|