Comparing version 0.3.3 to 0.3.4
@@ -21,2 +21,4 @@ 'use strict'; | ||
runTask.off('error', onError); | ||
runTask.off('abort', onEnd); | ||
runTask.off('end', onEnd); | ||
resolve(result); | ||
@@ -26,5 +28,7 @@ }; | ||
runTask.off('end', onEnd); | ||
runTask.off('abort', onEnd); | ||
reject(error); | ||
}; | ||
runTask.once('end', onEnd); | ||
runTask.once('abort', onEnd); | ||
runTask.once('error', onError); | ||
@@ -31,0 +35,0 @@ runTask(task, payload || {}); |
@@ -23,3 +23,3 @@ 'use strict'; | ||
t.test('Arnie', function (t) { | ||
t.plan(5); | ||
t.plan(6); | ||
@@ -78,2 +78,12 @@ // t.assert(serverless, 'should expose: const serverless = require(arnie/serverless)') | ||
var abort = [function (_ref5) { | ||
var execution = _ref5.execution; | ||
return _promise2.default.resolve(execution.abort()); | ||
}, function () { | ||
t.fail('should not continue'); | ||
}]; | ||
arnie(abort, inititalData).then(function (output) { | ||
t.pass('should end when aborting execution'); | ||
}); | ||
var expectedError = new Error('error'); | ||
@@ -80,0 +90,0 @@ arnie([function () { |
{ | ||
"name": "arnie", | ||
"version": "0.3.3", | ||
"version": "0.3.4", | ||
"description": "Action hero for backends", | ||
@@ -33,3 +33,3 @@ "main": "index.js", | ||
"fresh": "^0.5.0", | ||
"function-tree": "0.5.0-b-alpha.d6efd5f3", | ||
"function-tree": "0.5.0-b-alpha.c8499f18", | ||
"get-value": "^2.0.6", | ||
@@ -36,0 +36,0 @@ "koa-is-json": "^1.0.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
210688
1521
+ Addedfunction-tree@0.5.0-b-alpha.c8499f18(transitive)
- Removedfunction-tree@0.5.0-b-alpha.d6efd5f3(transitive)