actions-up 1.7.0 ā 1.8.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/dist/cli/index.js
CHANGED
|
@@ -60,7 +60,7 @@ function run() {
|
|
|
60
60
|
}
|
|
61
61
|
console.info(pc.yellow(`\nš Updating ${e.length} actions...\n`)), await applyUpdates(e), console.info(pc.green("\nā Updates applied successfully!"));
|
|
62
62
|
} else {
|
|
63
|
-
let o = await promptUpdateSelection(
|
|
63
|
+
let o = await promptUpdateSelection(x, { showAge: c.minAge > 0 });
|
|
64
64
|
if (!o || o.length === 0) {
|
|
65
65
|
console.info(pc.gray("\nNo updates applied"));
|
|
66
66
|
return;
|
|
@@ -27,8 +27,11 @@ async function applyUpdates(n) {
|
|
|
27
27
|
console.error(`Invalid SHA format: ${e.latestSha}`);
|
|
28
28
|
continue;
|
|
29
29
|
}
|
|
30
|
-
let a =
|
|
31
|
-
i = i.replace(
|
|
30
|
+
let a = String.raw`['"]?\buses\b['"]?\s*:\s*`, o = String.raw`(?:^[^\S\n]*(?:-[^\S\n]*)?|[{\[,][^\S\n]*)` + a, s = new RegExp(String.raw`(?<prefix>${o})` + String.raw`(?<quote>['"]?)` + String.raw`(?<name>${n})@${r}` + String.raw`\k<quote>` + String.raw`(?<after>[ \t\]}{,]*)` + String.raw`(?<comment>[^\S\r\n]*#[^\r\n]*)?`, "gm");
|
|
31
|
+
i = i.replace(s, (t, ...n) => {
|
|
32
|
+
let i = n.at(-3), a = n.at(-2), o = n.at(-1), s = a.indexOf("\n", i + t.length), c = (s === -1 ? a.slice(i + t.length) : a.slice(i + t.length, s)).trim().length > 0, l = o.after.endsWith(" ") ? "" : " ", u = c && !o.comment && r !== "" ? "" : `${l}# ${e.latestVersion}`;
|
|
33
|
+
return `${`${o.prefix}${o.quote}${o.name}`}@${`${e.latestSha}${o.quote}${o.after}${u}`}`;
|
|
34
|
+
});
|
|
32
35
|
}
|
|
33
36
|
await writeFile(n, i, "utf8");
|
|
34
37
|
});
|
package/dist/package.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const version = "1.
|
|
1
|
+
const version = "1.8.0";
|
|
2
2
|
export { version };
|