@graphql-codegen/cli 2.9.2-alpha-3adb19f71.0 → 2.10.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.
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getLatestVersion = void 0;
|
|
4
|
-
const
|
|
4
|
+
const fetch_1 = require("@whatwg-node/fetch");
|
|
5
5
|
/**
|
|
6
6
|
* Fetches the version directly from the registry instead of depending on
|
|
7
7
|
* an ESM only module as latest-version does.
|
|
8
8
|
* @param packageName
|
|
9
9
|
*/
|
|
10
10
|
async function getLatestVersion(packageName) {
|
|
11
|
-
return (0,
|
|
11
|
+
return (0, fetch_1.fetch)(`https://unpkg.com/${packageName}/package.json`)
|
|
12
12
|
.then(res => res.json())
|
|
13
13
|
.then(pkg => pkg.version);
|
|
14
14
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-codegen/cli",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.10.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
|
},
|
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
"@graphql-tools/prisma-loader": "^7.2.2",
|
|
18
18
|
"@graphql-tools/url-loader": "^7.12.1",
|
|
19
19
|
"@graphql-tools/utils": "^8.8.0",
|
|
20
|
+
"@whatwg-node/fetch": "^0.0.2",
|
|
20
21
|
"ansi-escapes": "^4.3.1",
|
|
21
22
|
"chalk": "^4.1.0",
|
|
22
23
|
"chokidar": "^3.5.2",
|
|
23
24
|
"cosmiconfig": "^7.0.0",
|
|
24
|
-
"cross-undici-fetch": "^0.4.11",
|
|
25
25
|
"debounce": "^1.2.0",
|
|
26
26
|
"detect-indent": "^6.0.0",
|
|
27
27
|
"graphql-config": "^4.3.1",
|