@newmo/graphql-codegen-fake-server-client 0.23.1 → 0.23.2

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.
@@ -106,10 +106,10 @@ export type FakeClientRegisterSequenceOptions<TVariables = Record<string, any>>
106
106
  });
107
107
  };
108
108
  const importQueryIdentifierName = (documentName) => {
109
- return `import type { ${(0, convertName_1.convertName)(documentName, config)}Query, ${(0, convertName_1.convertName)(documentName, config)}QueryVariables } from \'${config.typesFile}\';`;
109
+ return `import type { ${(0, convertName_1.convertName)(documentName, config)}Query, ${(0, convertName_1.convertName)(documentName, config)}QueryVariables } from '${config.typesFile}';`;
110
110
  };
111
111
  const importMutationIdentifierName = (documentName) => {
112
- return `import type { ${(0, convertName_1.convertName)(documentName, config)}Mutation, ${(0, convertName_1.convertName)(documentName, config)}MutationVariables } from \'${config.typesFile}\';`;
112
+ return `import type { ${(0, convertName_1.convertName)(documentName, config)}Mutation, ${(0, convertName_1.convertName)(documentName, config)}MutationVariables } from '${config.typesFile}';`;
113
113
  };
114
114
  const importsSection = documents
115
115
  .flatMap((document) => {
@@ -102,7 +102,7 @@ async function fetchWithRetry(
102
102
  statusText: response.statusText,
103
103
  attempt: attempt + 1,
104
104
  maxAttempts,
105
- operationName: JSON.parse(options.body as string)?.operationName,
105
+ body: options.body,
106
106
  sequenceId: (options.headers as any)?.['sequence-id'],
107
107
  };
108
108
 
@@ -144,7 +144,7 @@ async function fetchWithRetry(
144
144
  error: error instanceof Error ? error.message : String(error),
145
145
  attempt: attempt + 1,
146
146
  maxAttempts,
147
- operationName: JSON.parse(options.body as string)?.operationName,
147
+ body: options.body,
148
148
  sequenceId: (options.headers as any)?.['sequence-id'],
149
149
  };
150
150
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newmo/graphql-codegen-fake-server-client",
3
- "version": "0.23.1",
3
+ "version": "0.23.2",
4
4
  "private": false,
5
5
  "description": "GraphQL Codegen plugin for generating a fake server client",
6
6
  "keywords": [
@@ -62,5 +62,5 @@
62
62
  "access": "public",
63
63
  "registry": "https://registry.npmjs.org/"
64
64
  },
65
- "gitHead": "9c06e9666ff8ad8d4ef950c26b5ead905c26ff4e"
65
+ "gitHead": "1b4cb773d37a6ad7197e9a8098d2fccd41047996"
66
66
  }
@@ -177,13 +177,13 @@ export type FakeClientRegisterSequenceOptions<TVariables = Record<string, any>>
177
177
  return `import type { ${convertName(
178
178
  documentName,
179
179
  config,
180
- )}Query, ${convertName(documentName, config)}QueryVariables } from \'${config.typesFile}\';`;
180
+ )}Query, ${convertName(documentName, config)}QueryVariables } from '${config.typesFile}';`;
181
181
  };
182
182
  const importMutationIdentifierName = (documentName: string) => {
183
183
  return `import type { ${convertName(documentName, config)}Mutation, ${convertName(
184
184
  documentName,
185
185
  config,
186
- )}MutationVariables } from \'${config.typesFile}\';`;
186
+ )}MutationVariables } from '${config.typesFile}';`;
187
187
  };
188
188
  const importsSection = documents
189
189
  .flatMap((document) => {
@@ -99,7 +99,7 @@ async function fetchWithRetry(
99
99
  statusText: response.statusText,
100
100
  attempt: attempt + 1,
101
101
  maxAttempts,
102
- operationName: JSON.parse(options.body as string)?.operationName,
102
+ body: options.body,
103
103
  sequenceId: (options.headers as any)?.['sequence-id'],
104
104
  };
105
105
 
@@ -141,7 +141,7 @@ async function fetchWithRetry(
141
141
  error: error instanceof Error ? error.message : String(error),
142
142
  attempt: attempt + 1,
143
143
  maxAttempts,
144
- operationName: JSON.parse(options.body as string)?.operationName,
144
+ body: options.body,
145
145
  sequenceId: (options.headers as any)?.['sequence-id'],
146
146
  };
147
147