Comparing version 0.32.2 to 0.32.3
@@ -105,3 +105,3 @@ "use strict"; | ||
function bumpAsync(prj, versionFile, stage, release) { | ||
var _a, _b; | ||
var _a, _b, _c, _d; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
@@ -142,2 +142,9 @@ if (stage) | ||
const cfg0 = JSON.parse(fs.readFileSync(fn, "utf8")); | ||
if (((_b = (_a = cfg0 === null || cfg0 === void 0 ? void 0 : cfg0.codal) === null || _a === void 0 ? void 0 : _a.libraries) === null || _b === void 0 ? void 0 : _b.length) == 1) { | ||
const lib = cfg0.codal.libraries[0]; | ||
if (lib.endsWith("#v" + cfg0.version)) { | ||
mkc.debug(`updating codal library in ${fn}`); | ||
cfg0.codal.libraries[0] = lib.replace(/#.*/, "#v" + newV); | ||
} | ||
} | ||
cfg0.version = newV; | ||
@@ -160,3 +167,3 @@ mkc.debug(`updating ${fn}`); | ||
}); | ||
const url = (_a = urlinfo === null || urlinfo === void 0 ? void 0 : urlinfo.toString("utf8")) === null || _a === void 0 ? void 0 : _a.trim(); | ||
const url = (_c = urlinfo === null || urlinfo === void 0 ? void 0 : urlinfo.toString("utf8")) === null || _c === void 0 ? void 0 : _c.trim(); | ||
if (url) { | ||
@@ -167,3 +174,3 @@ const slug = url.replace(/.*github\.com\//i, ""); | ||
const res = yield (0, downloader_1.httpGetJsonAsync)("https://makecode.com/api/gh/" + slug + "/refs?nocache=1"); | ||
const sha = (_b = res === null || res === void 0 ? void 0 : res.refs) === null || _b === void 0 ? void 0 : _b["refs/tags/" + newTag]; | ||
const sha = (_d = res === null || res === void 0 ? void 0 : res.refs) === null || _d === void 0 ? void 0 : _d["refs/tags/" + newTag]; | ||
mkc.debug(`refreshed ${newV} -> ${sha}`); | ||
@@ -170,0 +177,0 @@ } |
{ | ||
"name": "makecode", | ||
"version": "0.32.2", | ||
"version": "0.32.3", | ||
"description": "MakeCode (PXT) - web-cached build tool", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
212729
3214