@getcodesentinel/codesentinel 1.17.4 → 1.17.5
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/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3448,6 +3448,9 @@ var parseNpmViewVersionOutput = (output) => {
|
|
|
3448
3448
|
}
|
|
3449
3449
|
return null;
|
|
3450
3450
|
};
|
|
3451
|
+
var renderUpdateInProgressMessage = (packageName) => `Updating CodeSentinel via \`npm install -g ${packageName}\`...
|
|
3452
|
+
`;
|
|
3453
|
+
var renderUpdateSuccessMessage = () => "\u{1F389} Update ran successfully! Please restart CodeSentinel.\n";
|
|
3451
3454
|
var readCache = async () => {
|
|
3452
3455
|
try {
|
|
3453
3456
|
const raw = await readFile2(UPDATE_CACHE_PATH, "utf8");
|
|
@@ -3566,8 +3569,7 @@ var promptInstall = async (packageName, latestVersion, currentVersion) => {
|
|
|
3566
3569
|
}
|
|
3567
3570
|
clearPromptArea();
|
|
3568
3571
|
if (choice === "install") {
|
|
3569
|
-
stderr.write(`${ANSI.yellow}
|
|
3570
|
-
`);
|
|
3572
|
+
stderr.write(`${ANSI.yellow}${renderUpdateInProgressMessage(packageName)}${ANSI.reset}`);
|
|
3571
3573
|
} else {
|
|
3572
3574
|
stderr.write("\n");
|
|
3573
3575
|
}
|
|
@@ -3636,9 +3638,7 @@ var checkForCliUpdates = async (input) => {
|
|
|
3636
3638
|
}
|
|
3637
3639
|
const installed = await installLatestVersion(input.packageName);
|
|
3638
3640
|
if (installed) {
|
|
3639
|
-
stderr.write(
|
|
3640
|
-
"CodeSentinel updated to latest version. Rerun your command to use the new version.\n"
|
|
3641
|
-
);
|
|
3641
|
+
stderr.write(renderUpdateSuccessMessage());
|
|
3642
3642
|
process.exit(0);
|
|
3643
3643
|
} else {
|
|
3644
3644
|
stderr.write(
|