@@ -10,5 +10,6 @@ #!/usr/bin/env node | ||
| const __dirname$2 = path.dirname(fileURLToPath(import.meta.url)); | ||
| const confirmPs1 = path.resolve(__dirname$2, "./ui/confirm.ps1"); | ||
| const welcomePs1 = path.resolve(__dirname$2, "./ui/welcome.ps1"); | ||
| path.resolve(__dirname$2, "./ui/compress.ps1"); | ||
| const uiDir = path.resolve(__dirname$2, "./windows/ui"); | ||
| const confirmPs1 = path.resolve(uiDir, "./confirm.ps1"); | ||
| const welcomePs1 = path.resolve(uiDir, "./welcome.ps1"); | ||
| path.resolve(uiDir, "./compress.ps1"); | ||
@@ -72,2 +73,12 @@ function confirm(title, text, repo, site) { | ||
| function message(title, message, icon = 'Error') { | ||
| const psCommand = `powershell -Command "[System.Reflection.Assembly]::LoadWithPartialName('System.Windows.Forms'); [System.Windows.Forms.MessageBox]::Show('${message}', '${title}', [System.Windows.Forms.MessageBoxButtons]::OK, [System.Windows.Forms.MessageBoxIcon]::${icon})"`; | ||
| try { | ||
| execSync(psCommand); | ||
| } catch (error) { | ||
| console.error(error); | ||
| } | ||
| } | ||
| if (process.platform !== "win32") { | ||
@@ -104,3 +115,3 @@ process.exit(0); | ||
| const localPkg = path.join(installDir, "pkg"); | ||
| const localBin = path.join(localPkg, "bin"); | ||
| const localBin = path.join(localPkg, "dist"); // ,"bin"); | ||
| const localCfg = path.join(installDir, "default.justc"); | ||
@@ -110,3 +121,3 @@ const localVbs = path.join(installDir, "jssc.vbs"); | ||
| const pkgRoot = path.resolve(__dirname$1, "../../"); | ||
| const cliPath = path.resolve(localBin, "./index.js"); | ||
| const cliPath = path.resolve(localBin, "./cli.js"); // ,"./index.js"); | ||
| const cfgPath = path.resolve(localBin, "./windows/default.justc"); | ||
@@ -158,3 +169,7 @@ const vbsPath = path.resolve(localBin, "./windows/jssc.vbs"); | ||
| await downloadIcon(); | ||
| try { | ||
| await downloadIcon(); | ||
| } catch (err) { | ||
| throw new Error('Failed to download icon:', err.message, '\n' + err.trace); | ||
| } | ||
@@ -226,4 +241,6 @@ let e = [false, undefined]; | ||
| repo, site)) setup().catch(err => { | ||
| console.error("Installation failed:", err.message); | ||
| const e = "Installation failed: " + err.message; | ||
| console.error(e, '\n' + err.trace); | ||
| message(name__, e); | ||
| process.exit(1); | ||
| }); |
+1
-1
| { | ||
| "name": "strc", | ||
| "version": "2.1.0-test.1", | ||
| "version": "2.1.0-test.3", | ||
| "description": "JavaScript String Compressor - lossless string compression algorithm", | ||
@@ -5,0 +5,0 @@ "main": "dist/jssc.cjs", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Network access
Supply chain riskThis module accesses the network.
Found 2 instances in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Unpublished package
Supply chain riskPackage version was not found on the registry. It may exist on a different registry and need to be configured to pull from that registry.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 3 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 2 instances in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Unpopular package
QualityThis package is not very popular.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 3 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
1135944
3.44%30512
2.74%0
-100%0
-100%11
10%