pulumi 3.247.0 → 3.249.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/lib/download.js +3 -3
- package/package.json +1 -1
package/lib/download.js
CHANGED
|
@@ -56,9 +56,9 @@ async function installCLI(
|
|
|
56
56
|
|
|
57
57
|
// fetchLatestVersion returns the latest stable Pulumi release version string.
|
|
58
58
|
async function fetchLatestVersion(fetchText = defaultFetchText) {
|
|
59
|
-
const text = await fetchText("https://api.
|
|
60
|
-
const {
|
|
61
|
-
return
|
|
59
|
+
const text = await fetchText("https://api.pulumi.com/api/cli/version");
|
|
60
|
+
const { latestVersion } = JSON.parse(text);
|
|
61
|
+
return latestVersion.replace(/^v/, "");
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
module.exports = { installCLI, fetchLatestVersion };
|