Comparing version 0.6.1 to 0.6.2
@@ -69,9 +69,9 @@ var debug = require('debug')('rascal:Subscription') | ||
function ackOrNack(session, message, err, options, next) { | ||
if (arguments.length === 2) return ackOrNack(session, message, undefined, { strategy: 'fallback' }, _.noop) | ||
if (arguments.length === 3 && _.isFunction(arguments[2])) return ackOrNack(session, message, undefined, { stategy: 'fallback' }, arguments[2]) | ||
if (arguments.length === 3) return ackOrNack(session, message, err, { strategy: 'fallback' }, _.noop) | ||
if (arguments.length === 4 && _.isFunction(arguments[3])) return ackOrNack(session, message, err, { stategy: 'fallback' }, arguments[3]) | ||
if (arguments.length === 4) return ackOrNack(session, message, err, options, _.noop) | ||
if (err) return subscriberError.handle(session, message, options, next) | ||
function ackOrNack(session, message, err, recovery, next) { | ||
if (arguments.length === 2) return ackOrNack(session, message, undefined, undefined, _.noop) | ||
if (arguments.length === 3 && _.isFunction(arguments[2])) return ackOrNack(session, message, undefined, undefined, arguments[2]) | ||
if (arguments.length === 3) return ackOrNack(session, message, err, undefined, _.noop) | ||
if (arguments.length === 4 && _.isFunction(arguments[3])) return ackOrNack(session, message, err, undefined, arguments[3]) | ||
if (arguments.length === 4) return ackOrNack(session, message, err, recovery, _.noop) | ||
if (err) return subscriberError.handle(session, message, recovery || { strategy: 'fallback' }, next) | ||
session._ack(message) | ||
@@ -78,0 +78,0 @@ } |
{ | ||
"name": "rascal", | ||
"version": "0.6.1", | ||
"version": "0.6.2", | ||
"description": "A friendly wrapper around amqplib with (mostly) safe defaults", | ||
@@ -11,2 +11,3 @@ "main": "index.js", | ||
"forward-emitter": "0.0.1", | ||
"husky": "^0.8.0", | ||
"lodash": "^3.6.0", | ||
@@ -22,3 +23,4 @@ "merge-defaults": "^0.2.1", | ||
"test": "mocha --recursive tests", | ||
"test-debug": "mocha --debug-brk --recursive tests" | ||
"test-debug": "mocha --debug-brk --recursive tests", | ||
"prepush": "npm test" | ||
}, | ||
@@ -25,0 +27,0 @@ "keywords": [ |
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
201964
9
+ Addedhusky@^0.8.0
+ Addedhusky@0.8.1(transitive)