@graphql-codegen/core 2.6.0-alpha-967b742ba.0 → 2.6.0-alpha-7c50b8781.0

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.
Files changed (3) hide show
  1. package/index.js +1 -1
  2. package/index.mjs +1 -1
  3. package/package.json +2 -2
package/index.js CHANGED
@@ -163,7 +163,7 @@ async function codegen(options) {
163
163
  }));
164
164
  const rules = graphql.specifiedRules.filter(rule => !ignored.some(ignoredRule => rule.name.startsWith(ignoredRule)));
165
165
  const schemaHash = extractHashFromSchema(schemaInstance);
166
- if (!schemaHash || !options.cache || !documents.some(d => typeof d.hash !== 'string')) {
166
+ if (!schemaHash || !options.cache || documents.some(d => typeof d.hash !== 'string')) {
167
167
  return utils.validateGraphQlDocuments(schemaInstance, [...documents, ...fragments], rules);
168
168
  }
169
169
  const cacheKey = [schemaHash]
package/index.mjs CHANGED
@@ -159,7 +159,7 @@ async function codegen(options) {
159
159
  }));
160
160
  const rules = specifiedRules.filter(rule => !ignored.some(ignoredRule => rule.name.startsWith(ignoredRule)));
161
161
  const schemaHash = extractHashFromSchema(schemaInstance);
162
- if (!schemaHash || !options.cache || !documents.some(d => typeof d.hash !== 'string')) {
162
+ if (!schemaHash || !options.cache || documents.some(d => typeof d.hash !== 'string')) {
163
163
  return validateGraphQlDocuments(schemaInstance, [...documents, ...fragments], rules);
164
164
  }
165
165
  const cacheKey = [schemaHash]
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@graphql-codegen/core",
3
- "version": "2.6.0-alpha-967b742ba.0",
3
+ "version": "2.6.0-alpha-7c50b8781.0",
4
4
  "peerDependencies": {
5
5
  "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"
6
6
  },
7
7
  "dependencies": {
8
- "@graphql-codegen/plugin-helpers": "2.5.0-alpha-967b742ba.0",
8
+ "@graphql-codegen/plugin-helpers": "2.5.0-alpha-7c50b8781.0",
9
9
  "@graphql-tools/schema": "^8.1.2",
10
10
  "@graphql-tools/utils": "^8.1.1",
11
11
  "tslib": "~2.3.0"