@graphql-codegen/cli 2.7.0-alpha-252a8d50d.0 → 2.7.0-alpha-d6c7238c0.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.
- package/bin.js +1 -1
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/package.json +3 -3
package/bin.js
CHANGED
|
@@ -804,7 +804,7 @@ function hashSchema(schema) {
|
|
|
804
804
|
function addHashToSchema(schemaPromise) {
|
|
805
805
|
return schemaPromise.then(schema => {
|
|
806
806
|
// It's consumed later on. The general purpose is to use it for caching.
|
|
807
|
-
if (schema.extensions) {
|
|
807
|
+
if (!schema.extensions) {
|
|
808
808
|
schema.extensions = {};
|
|
809
809
|
}
|
|
810
810
|
schema.extensions['hash'] = hashSchema(schema);
|
package/index.js
CHANGED
|
@@ -722,7 +722,7 @@ function hashSchema(schema) {
|
|
|
722
722
|
function addHashToSchema(schemaPromise) {
|
|
723
723
|
return schemaPromise.then(schema => {
|
|
724
724
|
// It's consumed later on. The general purpose is to use it for caching.
|
|
725
|
-
if (schema.extensions) {
|
|
725
|
+
if (!schema.extensions) {
|
|
726
726
|
schema.extensions = {};
|
|
727
727
|
}
|
|
728
728
|
schema.extensions['hash'] = hashSchema(schema);
|
package/index.mjs
CHANGED
|
@@ -695,7 +695,7 @@ function hashSchema(schema) {
|
|
|
695
695
|
function addHashToSchema(schemaPromise) {
|
|
696
696
|
return schemaPromise.then(schema => {
|
|
697
697
|
// It's consumed later on. The general purpose is to use it for caching.
|
|
698
|
-
if (schema.extensions) {
|
|
698
|
+
if (!schema.extensions) {
|
|
699
699
|
schema.extensions = {};
|
|
700
700
|
}
|
|
701
701
|
schema.extensions['hash'] = hashSchema(schema);
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-codegen/cli",
|
|
3
|
-
"version": "2.7.0-alpha-
|
|
3
|
+
"version": "2.7.0-alpha-d6c7238c0.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/core": "2.6.0-alpha-
|
|
9
|
-
"@graphql-codegen/plugin-helpers": "2.5.0-alpha-
|
|
8
|
+
"@graphql-codegen/core": "2.6.0-alpha-d6c7238c0.0",
|
|
9
|
+
"@graphql-codegen/plugin-helpers": "2.5.0-alpha-d6c7238c0.0",
|
|
10
10
|
"@graphql-tools/apollo-engine-loader": "^7.0.5",
|
|
11
11
|
"@graphql-tools/code-file-loader": "^7.0.6",
|
|
12
12
|
"@graphql-tools/git-loader": "^7.0.5",
|