Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rascal

Package Overview
Dependencies
Maintainers
1
Versions
183
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rascal - npm Package Compare versions

Comparing version 0.6.1 to 0.6.2

14

lib/amqp/Subscription.js

@@ -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": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc