desktop-screenshot
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -7,15 +7,13 @@ module.exports = function(options, callback) { | ||
childProcess.exec(path.join(__dirname, "bin", "nircmdc.exe") + " savescreenshot " + options.output, function(error, stdout, stderr) { | ||
if(stderr) | ||
callback(stderr, null); | ||
else { | ||
try { | ||
fs.statSync(options.output); | ||
callback(null, options); // callback with options, in case options added | ||
} | ||
catch (error) { | ||
callback("file_not_found", null); | ||
} | ||
var nircmd = childProcess.spawn(path.join(__dirname, "bin", "nircmd.exe"), ["savescreenshot", options.output]); | ||
nircmd.on('close', function(code, signal) { | ||
try { | ||
fs.statSync(options.output); | ||
callback(null, options); // callback with options, in case options added | ||
} | ||
catch(error) { | ||
callback("file_not_found", null); | ||
} | ||
}); | ||
}; |
{ | ||
"name": "desktop-screenshot", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "Cross-platform screenshot module, using external tools", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
52802
148