@freesyntax/notch-cli 0.4.6 → 0.4.7

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -3332,8 +3332,8 @@ import os3 from "os";
3332
3332
  import chalk7 from "chalk";
3333
3333
  var CACHE_FILE = path13.join(os3.homedir(), ".notch", "update-check.json");
3334
3334
  var CHECK_INTERVAL = 24 * 60 * 60 * 1e3;
3335
- var PACKAGE_NAME = "notch-cli";
3336
- var REGISTRY_URL = `https://registry.npmjs.org/${PACKAGE_NAME}/latest`;
3335
+ var PACKAGE_NAME = "@freesyntax/notch-cli";
3336
+ var REGISTRY_URL = `https://registry.npmjs.org/${encodeURIComponent(PACKAGE_NAME)}/latest`;
3337
3337
  async function checkForUpdates(currentVersion) {
3338
3338
  try {
3339
3339
  const cache = await loadCache();
@@ -3373,7 +3373,7 @@ function isNewer(latest, current) {
3373
3373
  return false;
3374
3374
  }
3375
3375
  function formatUpdateMessage(current, latest) {
3376
- return chalk7.yellow(` Update available: ${current} -> ${latest}. Run: npm update -g ${PACKAGE_NAME}
3376
+ return chalk7.yellow(` Update available: ${current} \u2192 ${latest}. Run: npm install -g ${PACKAGE_NAME}@latest
3377
3377
  `);
3378
3378
  }
3379
3379
  async function loadCache() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@freesyntax/notch-cli",
3
- "version": "0.4.6",
3
+ "version": "0.4.7",
4
4
  "description": "Notch CLI — AI-powered coding assistant by Driftrail",
5
5
  "type": "module",
6
6
  "bin": {