@graphql-codegen/cli 2.8.0-alpha-29eb1293b.0 → 2.8.0-alpha-0b48ad1f9.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/cjs/presets.js +5 -1
- package/esm/presets.js +5 -1
- package/package.json +3 -3
package/cjs/presets.js
CHANGED
|
@@ -22,7 +22,11 @@ async function getPresetByName(name, loader) {
|
|
|
22
22
|
return loaded;
|
|
23
23
|
}
|
|
24
24
|
catch (err) {
|
|
25
|
-
if (
|
|
25
|
+
if (
|
|
26
|
+
/** CJS Error code */
|
|
27
|
+
err.code !== 'MODULE_NOT_FOUND' &&
|
|
28
|
+
/** ESM Error code */
|
|
29
|
+
err.code !== 'ERR_MODULE_NOT_FOUND') {
|
|
26
30
|
throw new plugin_helpers_1.DetailedError(`Unable to load preset matching ${name}`, `
|
|
27
31
|
Unable to load preset matching '${name}'.
|
|
28
32
|
Reason:
|
package/esm/presets.js
CHANGED
|
@@ -19,7 +19,11 @@ export async function getPresetByName(name, loader) {
|
|
|
19
19
|
return loaded;
|
|
20
20
|
}
|
|
21
21
|
catch (err) {
|
|
22
|
-
if (
|
|
22
|
+
if (
|
|
23
|
+
/** CJS Error code */
|
|
24
|
+
err.code !== 'MODULE_NOT_FOUND' &&
|
|
25
|
+
/** ESM Error code */
|
|
26
|
+
err.code !== 'ERR_MODULE_NOT_FOUND') {
|
|
23
27
|
throw new DetailedError(`Unable to load preset matching ${name}`, `
|
|
24
28
|
Unable to load preset matching '${name}'.
|
|
25
29
|
Reason:
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-codegen/cli",
|
|
3
|
-
"version": "2.8.0-alpha-
|
|
3
|
+
"version": "2.8.0-alpha-0b48ad1f9.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-0b48ad1f9.0",
|
|
9
|
+
"@graphql-codegen/plugin-helpers": "^2.5.0-alpha-0b48ad1f9.0",
|
|
10
10
|
"@graphql-tools/apollo-engine-loader": "^7.3.1",
|
|
11
11
|
"@graphql-tools/code-file-loader": "^7.3.0",
|
|
12
12
|
"@graphql-tools/git-loader": "^7.2.0",
|