promzard
Advanced tools
Comparing version 0.1.4 to 0.1.5
@@ -5,3 +5,3 @@ { | ||
"description": "prompting wizardly", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "url": "git://github.com/isaacs/promzard" |
@@ -80,3 +80,4 @@ module.exports = promzard | ||
}.bind(this)) | ||
var res = fn.apply(this.ctx, args) | ||
try { var res = fn.apply(this.ctx, args) } | ||
catch (er) { this.emit('error', er) } | ||
if (res && | ||
@@ -184,3 +185,3 @@ typeof res === 'object' && | ||
} else if (typeof v === 'function') { | ||
return v.call(this.ctx, function (er, res) { | ||
try { return v.call(this.ctx, function (er, res) { | ||
if (er) | ||
@@ -193,3 +194,4 @@ return this.emit('error', this.error = er) | ||
L.call(this) | ||
}.bind(this)) | ||
}.bind(this)) } | ||
catch (er) { this.emit('error', er) } | ||
} | ||
@@ -210,4 +212,5 @@ } | ||
cb = function (cb) { return function (er, data) { | ||
return cb(er, tx(data)) | ||
}}(cb) | ||
try { return cb(er, tx(data)) } | ||
catch (er) { this.emit('error', er) } | ||
}}(cb).bind(this) | ||
} | ||
@@ -214,0 +217,0 @@ |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
24672
635
1