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 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, error: _3, errors: _4, ...prevExtra } = mockPrev ?? {};
467
+ const { variables: _1, data: _2, ...prevExtra } = mockPrev ?? {};
468
468
  const mockPatch = patch;
469
- const { variables: _5, data: _6, error: _7, errors: _8, ...patchExtra } = mockPatch ?? {};
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphql-data-generator",
3
- "version": "0.4.0-alpha.10",
3
+ "version": "0.4.0-alpha.11",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/voces/graphql-data-generator.git"
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, error: _3, errors: _4, ...prevExtra } = mockPrev ?? {};
471
+ const { variables: _1, data: _2, ...prevExtra } = mockPrev ?? {};
472
472
  const mockPatch = patch;
473
- const { variables: _5, data: _6, error: _7, errors: _8, ...patchExtra } = mockPatch ?? {};
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"