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

ironium

Package Overview
Dependencies
Maintainers
2
Versions
123
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ironium - npm Package Compare versions

Comparing version 4.0.0-rc.1 to 4.0.0-rc.2

14

lib/iron_mq.js

@@ -7,5 +7,2 @@ 'use strict';

const requestAsync = Bluebird.promisify(request);
module.exports = class IronMQ {

@@ -32,5 +29,8 @@ constructor(config) {

.catch(function(error) {
if (error.message === 'Queue not found')
return [];
else
// IronMQ treats an unexisting queue as an error.
// Expose as empty queue instead.
if (error.message === 'Queue not found') {
return Bluebird.delay(wait * 1000)
.then(() => []);
} else
throw error;

@@ -75,3 +75,3 @@ });

};
return requestAsync(req)
return Bluebird.promisify(request)(req)
.then(function(res) {

@@ -78,0 +78,0 @@ if (res.statusCode >= 400)

@@ -329,4 +329,4 @@ 'use strict';

} else {
debug('%s out of %s jobs running, nothing to do', this._activeJobs, config.concurrency);
return Bluebird.delay(10).then(() => []);
debug('%s out of %s %s jobs running, nothing to do', this._activeJobs, config.concurrency, this.name);
return Bluebird.delay(500).then(() => []);
}

@@ -333,0 +333,0 @@ })

{
"name": "ironium",
"version": "4.0.0-rc.1",
"version": "4.0.0-rc.2",
"scripts": {

@@ -5,0 +5,0 @@ "lint": "eslint .",

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