Comparing version 1.4.2 to 1.4.3
const chromedriver = require('chromedriver'); | ||
const Promise = require('bluebird'); | ||
const cp = require('child_process'); | ||
@@ -7,7 +8,9 @@ module.exports = function () { | ||
.then(() => { | ||
return chromedriver.start(); | ||
const p = cp.spawn(chromedriver.path, [], { detached: true }); | ||
process.on('exit', () => { p.kill(); }); | ||
return p; | ||
}) | ||
.disposer(() => { | ||
return chromedriver.stop(); | ||
.disposer((p) => { | ||
p.kill(); | ||
}); | ||
}; |
{ | ||
"name": "timeliner", | ||
"version": "1.4.2", | ||
"version": "1.4.3", | ||
"description": "Automated Browser Timeline Analyser", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
25139
453
1