commit-agent-cli 0.1.4 → 0.1.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 +15 -9
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -432,20 +432,26 @@ var packageJson = JSON.parse(
|
|
|
432
432
|
);
|
|
433
433
|
var notifier = updateNotifier({
|
|
434
434
|
pkg: packageJson,
|
|
435
|
-
updateCheckInterval: 1e3 * 60 * 60
|
|
436
|
-
// Check once per
|
|
435
|
+
updateCheckInterval: 1e3 * 60 * 60
|
|
436
|
+
// Check once per hour (was 24h)
|
|
437
437
|
});
|
|
438
438
|
if (notifier.update) {
|
|
439
|
-
const currentVersion =
|
|
440
|
-
const latestVersion =
|
|
441
|
-
const command = import_picocolors.default.cyan(`npm install -g ${packageJson.name}`);
|
|
439
|
+
const currentVersion = notifier.update.current;
|
|
440
|
+
const latestVersion = notifier.update.latest;
|
|
442
441
|
console.log("");
|
|
443
|
-
console.log(import_picocolors.default.yellow("\
|
|
444
|
-
console.log(import_picocolors.default.yellow("\u2502") + "
|
|
445
|
-
console.log(import_picocolors.default.yellow("\u2502") + "
|
|
446
|
-
console.log(import_picocolors.default.yellow("\
|
|
442
|
+
console.log(import_picocolors.default.yellow("\u256D\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256E"));
|
|
443
|
+
console.log(import_picocolors.default.yellow("\u2502") + " " + import_picocolors.default.yellow("\u2502"));
|
|
444
|
+
console.log(import_picocolors.default.yellow("\u2502") + " " + import_picocolors.default.bold("New version of commit-cli is available!") + " " + import_picocolors.default.yellow("\u2502"));
|
|
445
|
+
console.log(import_picocolors.default.yellow("\u2502") + " " + import_picocolors.default.yellow("\u2502"));
|
|
446
|
+
console.log(import_picocolors.default.yellow("\u2502") + " Current: " + import_picocolors.default.dim(currentVersion) + " \u2192 Latest: " + import_picocolors.default.green(import_picocolors.default.bold(latestVersion)) + " " + import_picocolors.default.yellow("\u2502"));
|
|
447
|
+
console.log(import_picocolors.default.yellow("\u2502") + " " + import_picocolors.default.yellow("\u2502"));
|
|
448
|
+
console.log(import_picocolors.default.yellow("\u2502") + " " + import_picocolors.default.dim("Update after you finish by running:") + " " + import_picocolors.default.yellow("\u2502"));
|
|
449
|
+
console.log(import_picocolors.default.yellow("\u2502") + " " + import_picocolors.default.cyan(import_picocolors.default.bold(`npm install -g ${packageJson.name}@latest`)) + " " + import_picocolors.default.yellow("\u2502"));
|
|
450
|
+
console.log(import_picocolors.default.yellow("\u2502") + " " + import_picocolors.default.yellow("\u2502"));
|
|
451
|
+
console.log(import_picocolors.default.yellow("\u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256F"));
|
|
447
452
|
console.log("");
|
|
448
453
|
}
|
|
454
|
+
notifier.notify({ defer: false, isGlobal: true });
|
|
449
455
|
var CONFIG_PATH = join2(homedir(), ".commit-cli.json");
|
|
450
456
|
async function getStoredKey() {
|
|
451
457
|
try {
|