blun-king-cli 1.4.0 → 1.5.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.
Files changed (2) hide show
  1. package/bin/blun.js +2 -1
  2. package/package.json +1 -1
package/bin/blun.js CHANGED
@@ -126,7 +126,8 @@ function checkForUpdates() {
126
126
  try {
127
127
  var currentVersion = "1.4.0";
128
128
  try { currentVersion = require(path.join(__dirname, "..", "package.json")).version; } catch(e) {}
129
- var latest = execSync("npm view blun-king-cli version 2>/dev/null", { encoding: "utf8", timeout: 5000 }).trim();
129
+ var nullDev = process.platform === "win32" ? "2>NUL" : "2>/dev/null";
130
+ var latest = execSync("npm view blun-king-cli version " + nullDev, { encoding: "utf8", timeout: 8000, stdio: ["pipe", "pipe", "pipe"] }).trim();
130
131
  if (latest && latest !== currentVersion) {
131
132
  console.log(C.yellow + C.bold + " " + BOX.arrow + " Update available: " + currentVersion + " → " + latest + C.reset);
132
133
  console.log(C.yellow + " npm update -g blun-king-cli" + C.reset);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blun-king-cli",
3
- "version": "1.4.0",
3
+ "version": "1.5.0",
4
4
  "description": "BLUN King CLI — Premium KI Console",
5
5
  "bin": {
6
6
  "blun": "./bin/blun.js"