amqplib-retry
Advanced tools
Comparing version 1.1.8-0-node-upgrade.0 to 1.1.8-node-upgrade.0
@@ -1,2 +0,2 @@ | ||
"use strict";function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor)}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return _typeof(key)==="symbol"?key:String(key)}function _toPrimitive(input,hint){if(_typeof(input)!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined){var res=prim.call(input,hint||"default");if(_typeof(res)!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.")}return(hint==="string"?String:Number)(input)}var config=require("./config");var Promise=require("bluebird");var Initializer=/*#__PURE__*/function(){function Initializer(channel,clientQueueName,failureQueueName){_classCallCheck(this,Initializer);this.channel=channel;this.clientQueueName=clientQueueName;this.failureQueueName=failureQueueName}_createClass(Initializer,[{key:"initialize",value:function initialize(){var self=this;return Promise["try"](function(){return Promise.all([self.channel.assertQueue(config.delayQueueName,{durable:true,arguments:{"x-dead-letter-exchange":config.exchangeName,"x-dead-letter-routing-key":config.readyRouteKey}}),self.channel.assertQueue(config.readyQueueName,{durable:true}),self.channel.checkQueue(self.clientQueueName),self.channel.checkQueue(self.failureQueueName),self.channel.assertExchange(config.exchangeName,"direct",{durable:true})])}).then(function(){return self.channel.bindQueue(config.readyQueueName,config.exchangeName,config.readyRouteKey)}).then(function(){self.isInitialized=true})}}]);return Initializer}();module.exports=Initializer; | ||
"use strict";function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor)}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return typeof key==="symbol"?key:String(key)}function _toPrimitive(input,hint){if(typeof input!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined){var res=prim.call(input,hint||"default");if(typeof res!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.")}return(hint==="string"?String:Number)(input)}var config=require("./config");var Promise=require("bluebird");var Initializer=/*#__PURE__*/function(){function Initializer(channel,clientQueueName,failureQueueName){_classCallCheck(this,Initializer);this.channel=channel;this.clientQueueName=clientQueueName;this.failureQueueName=failureQueueName}_createClass(Initializer,[{key:"initialize",value:function initialize(){var self=this;return Promise["try"](function(){return Promise.all([self.channel.assertQueue(config.delayQueueName,{durable:true,arguments:{"x-dead-letter-exchange":config.exchangeName,"x-dead-letter-routing-key":config.readyRouteKey}}),self.channel.assertQueue(config.readyQueueName,{durable:true}),self.channel.checkQueue(self.clientQueueName),self.channel.checkQueue(self.failureQueueName),self.channel.assertExchange(config.exchangeName,"direct",{durable:true})])}).then(function(){return self.channel.bindQueue(config.readyQueueName,config.exchangeName,config.readyRouteKey)}).then(function(){self.isInitialized=true})}}]);return Initializer}();module.exports=Initializer; | ||
//# sourceMappingURL=initializer.js.map |
@@ -1,2 +0,2 @@ | ||
"use strict";function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor)}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return _typeof(key)==="symbol"?key:String(key)}function _toPrimitive(input,hint){if(_typeof(input)!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined){var res=prim.call(input,hint||"default");if(_typeof(res)!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.")}return(hint==="string"?String:Number)(input)}var config=require("./config");var Promise=require("bluebird");var ReadyQueueConsumer=/*#__PURE__*/function(){function ReadyQueueConsumer(channel){_classCallCheck(this,ReadyQueueConsumer);this.channel=channel}_createClass(ReadyQueueConsumer,[{key:"start",value:function start(){var self=this;return self.channel.consume(config.readyQueueName,function(msg){return Promise["try"](function(){var targetQueueName=msg.properties.headers._targetQueue;var properties=msg.properties.headers._originalProperties;return self.channel.sendToQueue(targetQueueName,Buffer.from(msg.content),properties)}).then(function(){return self.channel.ack(msg)})["catch"](function(err){console.error("Error: while trying to process message from ready queue. err: "+err+", msg: "+JSON.stringify(msg));self.channel.nack(msg)})})}}]);return ReadyQueueConsumer}();module.exports=ReadyQueueConsumer; | ||
"use strict";function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor)}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return typeof key==="symbol"?key:String(key)}function _toPrimitive(input,hint){if(typeof input!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined){var res=prim.call(input,hint||"default");if(typeof res!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.")}return(hint==="string"?String:Number)(input)}var config=require("./config");var Promise=require("bluebird");var ReadyQueueConsumer=/*#__PURE__*/function(){function ReadyQueueConsumer(channel){_classCallCheck(this,ReadyQueueConsumer);this.channel=channel}_createClass(ReadyQueueConsumer,[{key:"start",value:function start(){var self=this;return self.channel.consume(config.readyQueueName,function(msg){return Promise["try"](function(){var targetQueueName=msg.properties.headers._targetQueue;var properties=msg.properties.headers._originalProperties;return self.channel.sendToQueue(targetQueueName,Buffer.from(msg.content),properties)}).then(function(){return self.channel.ack(msg)})["catch"](function(err){console.error("Error: while trying to process message from ready queue. err: "+err+", msg: "+JSON.stringify(msg));self.channel.nack(msg)})})}}]);return ReadyQueueConsumer}();module.exports=ReadyQueueConsumer; | ||
//# sourceMappingURL=ready_queue_consumer.js.map |
{ | ||
"name": "amqplib-retry", | ||
"version": "1.1.8-0-node-upgrade.0", | ||
"version": "1.1.8-node-upgrade.0", | ||
"description": "Retry failed attempts to consume a message, with increasing delays between each attempt.", | ||
@@ -27,19 +27,24 @@ "author": "Lanetix <engineering@lanetix.com> (https://github.com/lanetix/)", | ||
"prepublish": "npm run compile", | ||
"test": "c8 --clean true -r text -r lcov mocha --timeout 10000 --recursive --exit" | ||
"test": "c8 --clean true -r text -r lcov mocha --timeout 10000 --recursive --exit", | ||
"check-for-update": "ncu", | ||
"update-package": "ncu -u && npm install", | ||
"prepare": "husky install" | ||
}, | ||
"dependencies": { | ||
"amqplib": "^0.10.3", | ||
"bluebird": "^3.7.2", | ||
"underscore": "^1.13.6" | ||
"amqplib": "0.10.3", | ||
"bluebird": "3.7.2", | ||
"underscore": "1.13.6" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.20.7", | ||
"@babel/preset-env": "^7.20.2", | ||
"eslint": "^8.31.0", | ||
"eslint-config-standard": "^17.0.0", | ||
"eslint-plugin-promise": "^6.1.1", | ||
"mocha": "^10.2.0", | ||
"c8": "^7.12.0", | ||
"should": "^13.2.3", | ||
"sinon": "^15.0.1" | ||
"@babel/cli": "7.22.6", | ||
"@babel/preset-env": "7.22.7", | ||
"c8": "8.0.0", | ||
"eslint": "^8.44.0", | ||
"eslint-config-standard": "17.1.0", | ||
"eslint-plugin-promise": "6.1.1", | ||
"husky": "8.0.3", | ||
"mocha": "10.2.0", | ||
"npm-check-updates": "16.10.13", | ||
"should": "13.2.3", | ||
"sinon": "15.2.0" | ||
}, | ||
@@ -46,0 +51,0 @@ "babel": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
29824
20
0
11
73
+ Addedamqplib@0.10.3(transitive)
+ Addedunderscore@1.13.6(transitive)
- Removedamqplib@0.10.4(transitive)
- Removedunderscore@1.13.7(transitive)
Updatedamqplib@0.10.3
Updatedbluebird@3.7.2
Updatedunderscore@1.13.6