blun-king-cli 5.3.0 → 5.3.1
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/blun-cli.js +1 -2
- package/package.json +1 -1
package/blun-cli.js
CHANGED
|
@@ -147,8 +147,7 @@ function printHeader() {
|
|
|
147
147
|
// ── Update Checker ──
|
|
148
148
|
function checkForUpdates() {
|
|
149
149
|
try {
|
|
150
|
-
var currentVersion =
|
|
151
|
-
try { currentVersion = require(path.join(__dirname, "..", "package.json")).version; } catch(e) {}
|
|
150
|
+
var currentVersion = PKG_VERSION;
|
|
152
151
|
var nullDev = process.platform === "win32" ? "2>NUL" : "2>/dev/null";
|
|
153
152
|
var latest = execSync("npm view blun-king-cli version " + nullDev, { encoding: "utf8", timeout: 8000, stdio: ["pipe", "pipe", "pipe"] }).trim();
|
|
154
153
|
if (latest && latest !== currentVersion) {
|