nodewebkit
Advanced tools
Comparing version
{ | ||
"name": "nodewebkit", | ||
"version": "0.7.5", | ||
"version": "0.8.0", | ||
"description": "A installer for node-webkit", | ||
@@ -9,3 +9,3 @@ "bin": { | ||
"scripts": { | ||
"postinstall": "scripts/install.js" | ||
"postinstall": "node scripts/install.js" | ||
}, | ||
@@ -12,0 +12,0 @@ "author": "Kyle Robinson Young", |
@@ -10,3 +10,3 @@ #!/usr/bin/env node | ||
var version = require('../package.json').version; | ||
var version = require('../package.json').version.slice(0, 5); | ||
var url = false; | ||
@@ -40,3 +40,7 @@ | ||
var dest = path.resolve(__dirname, '..', 'nodewebkit'); | ||
var finished = false; | ||
zipfile.on('finish', function() { | ||
if (finished) return; | ||
finished = true; | ||
console.log('Finish downloading. Extracting...'); | ||
@@ -59,2 +63,5 @@ | ||
}); | ||
zipfile.on('close', function() { | ||
zipfile.emit('finish'); | ||
}); | ||
@@ -61,0 +68,0 @@ // Download! |
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
4965
3.03%56
12%