Comparing version 5.2.7 to 5.2.8
{ | ||
"name": "zeromq", | ||
"version": "5.2.7", | ||
"version": "5.2.8", | ||
"description": "ZeroMQ for node.js", | ||
@@ -5,0 +5,0 @@ "main": "index", |
@@ -17,24 +17,11 @@ var download = require("./download").download; | ||
console.log("Building libzmq for " + process.platform); | ||
try { | ||
const child = spawnSync(scriptPath, [ZMQ, ARCH], { | ||
cwd: process.cwd(), | ||
env: process.env, | ||
stdio: ['inherit', 'inherit', 'pipe'], | ||
encoding: 'utf-8', | ||
}); | ||
if (child.stderr) { | ||
return console.log(Error(child.stderr)) | ||
} | ||
if (child.status !== 0) { | ||
return console.error("child process exited with code " + child.status); | ||
} | ||
} catch(e) { | ||
return console.error(e) | ||
const child = spawnSync("/bin/sh", [scriptPath, ZMQ, ARCH], { | ||
stdio: ['inherit', 'inherit', 'inherit'], | ||
}); | ||
if (!child.status) { | ||
return console.error("child process exited with code " + child.status); | ||
} | ||
const message = "Succesfully build libzmq on " + Date(); | ||
try { | ||
fs.writeFileSync(path.join(zmqDir, "BUILD_SUCCESS"), message) | ||
} catch(err) { | ||
console.error(err.message); | ||
}; | ||
fs.writeFileSync(path.join(zmqDir, "BUILD_SUCCESS"), message) | ||
} | ||
@@ -110,4 +97,8 @@ | ||
} | ||
buildZMQ(SCRIPT_PATH, DIR_NAME); | ||
try { | ||
buildZMQ(SCRIPT_PATH, DIR_NAME); | ||
} catch (err) { | ||
handleError(err); | ||
} | ||
}); | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
5
39776854
843