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

apw

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apw - npm Package Compare versions

Comparing version 0.3.13 to 0.3.14

.jshintrc

15

lib/workers.js

@@ -216,3 +216,3 @@ var Q = require('q'),

onError = function(err) {
_this.onJobFinished(job.id, err);
_this.onJobFinished(job.id, true, err);
};

@@ -232,6 +232,7 @@

* @param {String} id Job ID.
* @param {Object} err Error, if any.
* @param {Boolean} fail True, if job failed.
* @param {Object} [err] Optional reason of failure.
* @returns {Workers} Chainable API.
*/
onJobFinished: function(id, err) {
onJobFinished: function(id, fail, err) {
var listeners = this.jobPlanFinishListeners[id] || {},

@@ -247,5 +248,5 @@ plan, defer;

err? plan.onJobFail(id) : plan.onJobDone(id);
fail? plan.onJobFail(id) : plan.onJobDone(id);
if (err || plan.allDone()) this.terminatePlan(planId, err);
if (fail || plan.allDone()) this.terminatePlan(planId, fail, err);
}

@@ -256,3 +257,3 @@

terminatePlan: function(planId, err) {
terminatePlan: function(planId, fail, err) {
this.removePlan(planId);

@@ -262,3 +263,3 @@ this.removePlanFinishListener(planId);

var defer = this.getDefer(planId, true);
err? defer.reject(err) : defer.resolve();
fail? defer.reject(err) : defer.resolve();
},

@@ -265,0 +266,0 @@

{
"name": "apw",
"version": "0.3.13",
"version": "0.3.14",
"homepage": "http://github.com/bem/apw",

@@ -5,0 +5,0 @@ "author": "Sergey Kryzhanovsky <skryzhanovsky@ya.ru> (http://github.com/afelix)",

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