graphql-data-generator 0.4.0-alpha.10 → 0.4.0-alpha.11
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/esm/proxy.js +2 -2
- package/package.json +1 -1
- package/script/proxy.js +2 -2
package/esm/proxy.js
CHANGED
|
@@ -464,9 +464,9 @@ export const _proxy = (definitions, scalars, path, patches, { prev, resolvedType
|
|
|
464
464
|
}
|
|
465
465
|
case Kind.OPERATION_DEFINITION: {
|
|
466
466
|
const mockPrev = prev;
|
|
467
|
-
const { variables: _1, data: _2,
|
|
467
|
+
const { variables: _1, data: _2, ...prevExtra } = mockPrev ?? {};
|
|
468
468
|
const mockPatch = patch;
|
|
469
|
-
const { variables:
|
|
469
|
+
const { variables: _3, data: _4, error: _5, errors: _6, ...patchExtra } = mockPatch ?? {};
|
|
470
470
|
const mock = { ...prevExtra, ...patchExtra, data: null };
|
|
471
471
|
// const patch = patches[patches.length - 1] as Patch<Mock> | undefined;
|
|
472
472
|
const variablePatch = typeof mockPatch?.variables === "function"
|
package/package.json
CHANGED
package/script/proxy.js
CHANGED
|
@@ -468,9 +468,9 @@ const _proxy = (definitions, scalars, path, patches, { prev, resolvedType = reso
|
|
|
468
468
|
}
|
|
469
469
|
case graphql_1.Kind.OPERATION_DEFINITION: {
|
|
470
470
|
const mockPrev = prev;
|
|
471
|
-
const { variables: _1, data: _2,
|
|
471
|
+
const { variables: _1, data: _2, ...prevExtra } = mockPrev ?? {};
|
|
472
472
|
const mockPatch = patch;
|
|
473
|
-
const { variables:
|
|
473
|
+
const { variables: _3, data: _4, error: _5, errors: _6, ...patchExtra } = mockPatch ?? {};
|
|
474
474
|
const mock = { ...prevExtra, ...patchExtra, data: null };
|
|
475
475
|
// const patch = patches[patches.length - 1] as Patch<Mock> | undefined;
|
|
476
476
|
const variablePatch = typeof mockPatch?.variables === "function"
|