Socket
Book a DemoSign in
Socket

strc

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

strc - npm Package Compare versions

Package version was removed
This package version has been unpublished, mostly likely due to security reasons
Comparing version
2.1.0-test.1
to
2.1.0-test.3
+24
-7
dist/windows/install.js

@@ -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);
});
{
"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