@graphql-tools/stitching-directives 3.1.21-alpha-8b003d550d757d9f556d48288423f6ec263b8cb3 → 3.1.21-alpha-f26fa68c0d2acf43425f232ba8b587d9735299ac
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/CHANGELOG.md +7 -3
- package/dist/index.cjs +3 -3
- package/dist/index.js +3 -3
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
@@ -1,11 +1,15 @@
|
|
1
1
|
# @graphql-tools/stitching-directives
|
2
2
|
|
3
|
-
## 3.1.21-alpha-
|
3
|
+
## 3.1.21-alpha-f26fa68c0d2acf43425f232ba8b587d9735299ac
|
4
4
|
|
5
5
|
### Patch Changes
|
6
6
|
|
7
|
-
-
|
8
|
-
|
7
|
+
- [#269](https://github.com/graphql-hive/gateway/pull/269) [`03024b7`](https://github.com/graphql-hive/gateway/commit/03024b74fd203ca91aeaf6c0b4011efd1bd7e68a) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates:
|
8
|
+
|
9
|
+
- Updated dependency [`@graphql-tools/utils@^10.6.2` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.6.2) (from `^10.6.0`, in `dependencies`)
|
10
|
+
|
11
|
+
- Updated dependencies [[`7df2215`](https://github.com/graphql-hive/gateway/commit/7df2215abd309dc1dfd91f4ec91ce975f3982c62), [`03024b7`](https://github.com/graphql-hive/gateway/commit/03024b74fd203ca91aeaf6c0b4011efd1bd7e68a)]:
|
12
|
+
- @graphql-tools/delegate@10.2.6-alpha-f26fa68c0d2acf43425f232ba8b587d9735299ac
|
9
13
|
|
10
14
|
## 3.1.20
|
11
15
|
|
package/dist/index.cjs
CHANGED
@@ -756,13 +756,13 @@ function generateKeyFn(mergedTypeResolverInfo) {
|
|
756
756
|
function generateArgsFromKeysFn(mergedTypeResolverInfo) {
|
757
757
|
const { expansions, args } = mergedTypeResolverInfo;
|
758
758
|
return function generateArgsFromKeys(keys) {
|
759
|
-
const newArgs =
|
759
|
+
const newArgs = { ...args };
|
760
760
|
if (expansions) {
|
761
761
|
for (const expansion of expansions) {
|
762
762
|
const mappingInstructions = expansion.mappingInstructions;
|
763
763
|
const expanded = [];
|
764
764
|
for (const key of keys) {
|
765
|
-
let newValue =
|
765
|
+
let newValue = {};
|
766
766
|
for (const { destinationPath, sourcePath } of mappingInstructions) {
|
767
767
|
if (destinationPath.length) {
|
768
768
|
addProperty(
|
@@ -785,7 +785,7 @@ function generateArgsFromKeysFn(mergedTypeResolverInfo) {
|
|
785
785
|
function generateArgsFn(mergedTypeResolverInfo) {
|
786
786
|
const { mappingInstructions, args, usedProperties } = mergedTypeResolverInfo;
|
787
787
|
return function generateArgs(originalResult) {
|
788
|
-
const newArgs =
|
788
|
+
const newArgs = { ...args };
|
789
789
|
const filteredResult = getProperties(originalResult, usedProperties);
|
790
790
|
if (mappingInstructions) {
|
791
791
|
for (const mappingInstruction of mappingInstructions) {
|
package/dist/index.js
CHANGED
@@ -754,13 +754,13 @@ function generateKeyFn(mergedTypeResolverInfo) {
|
|
754
754
|
function generateArgsFromKeysFn(mergedTypeResolverInfo) {
|
755
755
|
const { expansions, args } = mergedTypeResolverInfo;
|
756
756
|
return function generateArgsFromKeys(keys) {
|
757
|
-
const newArgs =
|
757
|
+
const newArgs = { ...args };
|
758
758
|
if (expansions) {
|
759
759
|
for (const expansion of expansions) {
|
760
760
|
const mappingInstructions = expansion.mappingInstructions;
|
761
761
|
const expanded = [];
|
762
762
|
for (const key of keys) {
|
763
|
-
let newValue =
|
763
|
+
let newValue = {};
|
764
764
|
for (const { destinationPath, sourcePath } of mappingInstructions) {
|
765
765
|
if (destinationPath.length) {
|
766
766
|
addProperty(
|
@@ -783,7 +783,7 @@ function generateArgsFromKeysFn(mergedTypeResolverInfo) {
|
|
783
783
|
function generateArgsFn(mergedTypeResolverInfo) {
|
784
784
|
const { mappingInstructions, args, usedProperties } = mergedTypeResolverInfo;
|
785
785
|
return function generateArgs(originalResult) {
|
786
|
-
const newArgs =
|
786
|
+
const newArgs = { ...args };
|
787
787
|
const filteredResult = getProperties(originalResult, usedProperties);
|
788
788
|
if (mappingInstructions) {
|
789
789
|
for (const mappingInstruction of mappingInstructions) {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@graphql-tools/stitching-directives",
|
3
|
-
"version": "3.1.21-alpha-
|
3
|
+
"version": "3.1.21-alpha-f26fa68c0d2acf43425f232ba8b587d9735299ac",
|
4
4
|
"type": "module",
|
5
5
|
"description": "A set of utils for faster development of GraphQL tools",
|
6
6
|
"repository": {
|
@@ -38,12 +38,12 @@
|
|
38
38
|
"graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0"
|
39
39
|
},
|
40
40
|
"dependencies": {
|
41
|
-
"@graphql-tools/delegate": "10.2.6-alpha-
|
42
|
-
"@graphql-tools/utils": "^10.6.
|
41
|
+
"@graphql-tools/delegate": "10.2.6-alpha-f26fa68c0d2acf43425f232ba8b587d9735299ac",
|
42
|
+
"@graphql-tools/utils": "^10.6.2",
|
43
43
|
"tslib": "^2.4.0"
|
44
44
|
},
|
45
45
|
"devDependencies": {
|
46
|
-
"@graphql-tools/schema": "^10.0.
|
46
|
+
"@graphql-tools/schema": "^10.0.11",
|
47
47
|
"graphql": "^16.9.0",
|
48
48
|
"pkgroll": "2.5.1"
|
49
49
|
},
|