@lightsparkdev/lightspark-cli
Advanced tools
+6
-0
| # @lightsparkdev/lightspark-cli | ||
| ## 0.0.6 | ||
| ### Patch Changes | ||
| - 88a8994: Fix version retrieval for global installs | ||
| ## 0.0.5 | ||
@@ -4,0 +10,0 @@ |
+1
-1
@@ -18,3 +18,3 @@ import { BitcoinNetwork } from "@lightsparkdev/lightspark-sdk"; | ||
| export const getPackageVersion = () => { | ||
| const packageJson = JSON.parse(fs.readFileSync(process.cwd() + "/package.json", "utf8")); | ||
| const packageJson = JSON.parse(fs.readFileSync(new URL("../package.json", import.meta.url), "utf8")); | ||
| return packageJson?.version; | ||
@@ -21,0 +21,0 @@ }; |
+1
-1
| { | ||
| "name": "@lightsparkdev/lightspark-cli", | ||
| "version": "0.0.5", | ||
| "version": "0.0.6", | ||
| "description": "CLI for the Lightspark JS sdk", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
+1
-1
@@ -29,3 +29,3 @@ import type { LightsparkClient } from "@lightsparkdev/lightspark-sdk"; | ||
| const packageJson = JSON.parse( | ||
| fs.readFileSync(process.cwd() + "/package.json", "utf8") | ||
| fs.readFileSync(new URL("../package.json", import.meta.url), "utf8") | ||
| ); | ||
@@ -32,0 +32,0 @@ return packageJson?.version; |
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
324629
0.03%