nightmare-swiftly
Advanced tools
Comparing version 0.0.5 to 0.0.6
n.n.n / 2014-04-12 | ||
n.n.n / 2014-04-13 | ||
================== | ||
* fixing url mapping and require exec | ||
* fixing history | ||
0.0.5 / 2014-04-12 | ||
================== | ||
* viewport improves screenshots if you need em | ||
@@ -6,0 +12,0 @@ * fixing history |
20
index.js
var exec = require('child_process').exec; | ||
/** | ||
@@ -96,9 +98,13 @@ * Login to a Swiftly account. | ||
.evaluate(function () { | ||
var urls = document.querySelectorAll('.attachment__actions__download') | ||
.map(function (link) { | ||
return link.href; | ||
}) | ||
.filter(function (url) { | ||
return url.indexOf('deliveries') > 0; | ||
}); | ||
var els = []; | ||
var all = document.querySelectorAll('.attachment__actions__download'); | ||
for (var i = 0; i < all.length; i++) { | ||
els.push(all[i]); | ||
} | ||
var urls = els.map(function (link) { | ||
return link.href; | ||
}) | ||
.filter(function (url) { | ||
return url.indexOf('deliveries') > 0; | ||
}); | ||
return urls; | ||
@@ -105,0 +111,0 @@ }, function (urls) { |
{ | ||
"name": "nightmare-swiftly", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"author": "Segment.io", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
5939
119
1