@graphql-tools/mock 8.6.7 → 8.6.10-alpha-effcdc7b.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 +6 -1
- package/index.mjs +6 -1
- package/package.json +4 -4
package/index.js
CHANGED
|
@@ -805,7 +805,12 @@ function addMocksToSchema({ schema: schema$1, store: maybeStore, mocks, typePoli
|
|
|
805
805
|
}
|
|
806
806
|
},
|
|
807
807
|
});
|
|
808
|
-
return resolvers
|
|
808
|
+
return resolvers
|
|
809
|
+
? schema.addResolversToSchema({
|
|
810
|
+
schema: schemaWithMocks,
|
|
811
|
+
resolvers: resolvers,
|
|
812
|
+
})
|
|
813
|
+
: schemaWithMocks;
|
|
809
814
|
}
|
|
810
815
|
|
|
811
816
|
/**
|
package/index.mjs
CHANGED
|
@@ -799,7 +799,12 @@ function addMocksToSchema({ schema, store: maybeStore, mocks, typePolicies, reso
|
|
|
799
799
|
}
|
|
800
800
|
},
|
|
801
801
|
});
|
|
802
|
-
return resolvers
|
|
802
|
+
return resolvers
|
|
803
|
+
? addResolversToSchema({
|
|
804
|
+
schema: schemaWithMocks,
|
|
805
|
+
resolvers: resolvers,
|
|
806
|
+
})
|
|
807
|
+
: schemaWithMocks;
|
|
803
808
|
}
|
|
804
809
|
|
|
805
810
|
/**
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-tools/mock",
|
|
3
|
-
"version": "8.6.
|
|
3
|
+
"version": "8.6.10-alpha-effcdc7b.0",
|
|
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"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@graphql-tools/schema": "
|
|
11
|
-
"@graphql-tools/utils": "8.6.
|
|
10
|
+
"@graphql-tools/schema": "9.0.0-alpha-effcdc7b.0",
|
|
11
|
+
"@graphql-tools/utils": "8.6.10",
|
|
12
12
|
"fast-json-stable-stringify": "^2.1.0",
|
|
13
|
-
"tslib": "~2.
|
|
13
|
+
"tslib": "~2.4.0"
|
|
14
14
|
},
|
|
15
15
|
"repository": {
|
|
16
16
|
"type": "git",
|