@graphql-codegen/cli 2.5.0-alpha-fc06eb8e7.0 → 2.5.0-alpha-c9cbc7d69.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 +7 -4
- package/index.js +7 -4
- package/index.mjs +7 -4
- package/package.json +3 -3
package/bin.js
CHANGED
|
@@ -995,10 +995,13 @@ async function executeCodegen(input) {
|
|
|
995
995
|
title: 'Load GraphQL documents',
|
|
996
996
|
task: wrapTask(async () => {
|
|
997
997
|
debugLog(`[CLI] Loading Documents`);
|
|
998
|
-
|
|
999
|
-
const
|
|
1000
|
-
|
|
1001
|
-
|
|
998
|
+
// get different cache for shared docs and output specific docs
|
|
999
|
+
const results = await Promise.all([rootDocuments, outputSpecificDocuments].map(docs => {
|
|
1000
|
+
const hash = JSON.stringify(docs);
|
|
1001
|
+
return documentsLoadingCache.load(hash);
|
|
1002
|
+
}));
|
|
1003
|
+
const documents = [];
|
|
1004
|
+
results.forEach(source => documents.push(...source.documents));
|
|
1002
1005
|
if (documents.length > 0) {
|
|
1003
1006
|
outputDocuments.push(...documents);
|
|
1004
1007
|
}
|
package/index.js
CHANGED
|
@@ -913,10 +913,13 @@ async function executeCodegen(input) {
|
|
|
913
913
|
title: 'Load GraphQL documents',
|
|
914
914
|
task: wrapTask(async () => {
|
|
915
915
|
debugLog(`[CLI] Loading Documents`);
|
|
916
|
-
|
|
917
|
-
const
|
|
918
|
-
|
|
919
|
-
|
|
916
|
+
// get different cache for shared docs and output specific docs
|
|
917
|
+
const results = await Promise.all([rootDocuments, outputSpecificDocuments].map(docs => {
|
|
918
|
+
const hash = JSON.stringify(docs);
|
|
919
|
+
return documentsLoadingCache.load(hash);
|
|
920
|
+
}));
|
|
921
|
+
const documents = [];
|
|
922
|
+
results.forEach(source => documents.push(...source.documents));
|
|
920
923
|
if (documents.length > 0) {
|
|
921
924
|
outputDocuments.push(...documents);
|
|
922
925
|
}
|
package/index.mjs
CHANGED
|
@@ -886,10 +886,13 @@ async function executeCodegen(input) {
|
|
|
886
886
|
title: 'Load GraphQL documents',
|
|
887
887
|
task: wrapTask(async () => {
|
|
888
888
|
debugLog(`[CLI] Loading Documents`);
|
|
889
|
-
|
|
890
|
-
const
|
|
891
|
-
|
|
892
|
-
|
|
889
|
+
// get different cache for shared docs and output specific docs
|
|
890
|
+
const results = await Promise.all([rootDocuments, outputSpecificDocuments].map(docs => {
|
|
891
|
+
const hash = JSON.stringify(docs);
|
|
892
|
+
return documentsLoadingCache.load(hash);
|
|
893
|
+
}));
|
|
894
|
+
const documents = [];
|
|
895
|
+
results.forEach(source => documents.push(...source.documents));
|
|
893
896
|
if (documents.length > 0) {
|
|
894
897
|
outputDocuments.push(...documents);
|
|
895
898
|
}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-codegen/cli",
|
|
3
|
-
"version": "2.5.0-alpha-
|
|
3
|
+
"version": "2.5.0-alpha-c9cbc7d69.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.5.0-alpha-
|
|
9
|
-
"@graphql-codegen/plugin-helpers": "2.4.0-alpha-
|
|
8
|
+
"@graphql-codegen/core": "2.5.0-alpha-c9cbc7d69.0",
|
|
9
|
+
"@graphql-codegen/plugin-helpers": "2.4.0-alpha-c9cbc7d69.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",
|