min-wd
Advanced tools
Comparing version 0.4.4 to 0.4.5
@@ -34,3 +34,8 @@ /* | ||
process.stderr.write('\n'); | ||
process.stderr.write(indent(body.replace(/^\s+$/gm, ''))); | ||
try { | ||
var parsed = JSON.parse(body); | ||
process.stderr.write(indent(parsed.value.message) + '\n'); | ||
} catch (e) { | ||
process.stderr.write(indent(body.replace(/^\s+$/gm, ''))); | ||
} | ||
process.stderr.write('\n'); | ||
@@ -37,0 +42,0 @@ } |
@@ -12,7 +12,10 @@ /* | ||
module.exports = function () { | ||
return through(function write(data) { | ||
this.queue('require("min-wd");'); | ||
this.queue(data); | ||
}); | ||
module.exports = function (file) { | ||
if (file.match(/\.js$/)) { | ||
return through(function write(data) { | ||
this.queue('require("min-wd");'); | ||
this.queue(data); | ||
}); | ||
} | ||
return through(); | ||
}; |
{ | ||
"name": "min-wd", | ||
"version": "0.4.4", | ||
"version": "0.4.5", | ||
"description": "Minimal WebDriver that pipes stdin to browsers", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
15231
424