@graphql-codegen/cli 2.6.5-alpha-43974d1af.0 → 2.6.5-alpha-2f4ab8fa6.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 +10 -11
- package/index.js +10 -11
- package/index.mjs +10 -11
- package/package.json +4 -4
package/bin.js
CHANGED
|
@@ -1855,17 +1855,16 @@ function addIntrospection(config) {
|
|
|
1855
1855
|
|
|
1856
1856
|
async function runCli(cmd) {
|
|
1857
1857
|
await ensureGraphQlPackage();
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
}
|
|
1858
|
+
if (cmd === 'init') {
|
|
1859
|
+
return init();
|
|
1860
|
+
}
|
|
1861
|
+
const context = await createContext();
|
|
1862
|
+
try {
|
|
1863
|
+
return await generate(context);
|
|
1864
|
+
}
|
|
1865
|
+
catch (error) {
|
|
1866
|
+
await lifecycleHooks(context.getConfig().hooks).onError(error.toString());
|
|
1867
|
+
throw error;
|
|
1869
1868
|
}
|
|
1870
1869
|
}
|
|
1871
1870
|
async function ensureGraphQlPackage() {
|
package/index.js
CHANGED
|
@@ -1856,17 +1856,16 @@ function addIntrospection(config) {
|
|
|
1856
1856
|
|
|
1857
1857
|
async function runCli(cmd) {
|
|
1858
1858
|
await ensureGraphQlPackage();
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
}
|
|
1859
|
+
if (cmd === 'init') {
|
|
1860
|
+
return init();
|
|
1861
|
+
}
|
|
1862
|
+
const context = await createContext();
|
|
1863
|
+
try {
|
|
1864
|
+
return await generate(context);
|
|
1865
|
+
}
|
|
1866
|
+
catch (error) {
|
|
1867
|
+
await lifecycleHooks(context.getConfig().hooks).onError(error.toString());
|
|
1868
|
+
throw error;
|
|
1870
1869
|
}
|
|
1871
1870
|
}
|
|
1872
1871
|
async function ensureGraphQlPackage() {
|
package/index.mjs
CHANGED
|
@@ -1829,17 +1829,16 @@ function addIntrospection(config) {
|
|
|
1829
1829
|
|
|
1830
1830
|
async function runCli(cmd) {
|
|
1831
1831
|
await ensureGraphQlPackage();
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
}
|
|
1832
|
+
if (cmd === 'init') {
|
|
1833
|
+
return init();
|
|
1834
|
+
}
|
|
1835
|
+
const context = await createContext();
|
|
1836
|
+
try {
|
|
1837
|
+
return await generate(context);
|
|
1838
|
+
}
|
|
1839
|
+
catch (error) {
|
|
1840
|
+
await lifecycleHooks(context.getConfig().hooks).onError(error.toString());
|
|
1841
|
+
throw error;
|
|
1843
1842
|
}
|
|
1844
1843
|
}
|
|
1845
1844
|
async function ensureGraphQlPackage() {
|
package/package.json
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-codegen/cli",
|
|
3
|
-
"version": "2.6.5-alpha-
|
|
3
|
+
"version": "2.6.5-alpha-2f4ab8fa6.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
8
|
"@graphql-codegen/core": "2.5.1",
|
|
9
9
|
"@graphql-codegen/plugin-helpers": "^2.4.1",
|
|
10
|
-
"@graphql-tools/apollo-engine-loader": "^7.
|
|
10
|
+
"@graphql-tools/apollo-engine-loader": "^7.3.1",
|
|
11
11
|
"@graphql-tools/code-file-loader": "^7.0.6",
|
|
12
12
|
"@graphql-tools/git-loader": "^7.0.5",
|
|
13
13
|
"@graphql-tools/github-loader": "^7.0.5",
|
|
14
14
|
"@graphql-tools/graphql-file-loader": "^7.0.5",
|
|
15
15
|
"@graphql-tools/json-file-loader": "^7.1.2",
|
|
16
16
|
"@graphql-tools/load": "^7.3.0",
|
|
17
|
-
"@graphql-tools/prisma-loader": "^7.
|
|
18
|
-
"@graphql-tools/url-loader": "^7.
|
|
17
|
+
"@graphql-tools/prisma-loader": "^7.2.2",
|
|
18
|
+
"@graphql-tools/url-loader": "^7.12.1",
|
|
19
19
|
"@graphql-tools/utils": "^8.1.1",
|
|
20
20
|
"ansi-escapes": "^4.3.1",
|
|
21
21
|
"chalk": "^4.1.0",
|