@graphql-codegen/gql-tag-operations 1.5.2 → 1.5.3

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/cjs/index.js CHANGED
@@ -23,6 +23,9 @@ const plugin = (_, __, { sourcesWithOperations, useTypeImports, augmentedModuleN
23
23
  ...getGqlOverloadChunk(sourcesWithOperations, gqlTagName, 'lookup', emitLegacyCommonJSImports),
24
24
  ].join(''));
25
25
  }
26
+ else {
27
+ code.push('const documents = [];');
28
+ }
26
29
  code.push([
27
30
  `\n`,
28
31
  `export function ${gqlTagName}(source: string): unknown;\n`,
package/esm/index.js CHANGED
@@ -20,6 +20,9 @@ export const plugin = (_, __, { sourcesWithOperations, useTypeImports, augmented
20
20
  ...getGqlOverloadChunk(sourcesWithOperations, gqlTagName, 'lookup', emitLegacyCommonJSImports),
21
21
  ].join(''));
22
22
  }
23
+ else {
24
+ code.push('const documents = [];');
25
+ }
23
26
  code.push([
24
27
  `\n`,
25
28
  `export function ${gqlTagName}(source: string): unknown;\n`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-codegen/gql-tag-operations",
3
- "version": "1.5.2",
3
+ "version": "1.5.3",
4
4
  "description": "GraphQL Code Generator plugin for generating a typed gql tag function",
5
5
  "peerDependencies": {
6
6
  "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0"