Socket
Socket
Sign inDemoInstall

contra

Package Overview
Dependencies
0
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.21 to 1.0.22

2

bower.json
{
"name": "contra",
"description": "Asynchronous flow control with a `_` taste to it",
"version": "1.0.21",
"version": "1.0.22",
"homepage": "https://github.com/bevacqua/contra",

@@ -6,0 +6,0 @@ "author": {

@@ -202,5 +202,8 @@ (function (Object) {

pause: function () { paused = true; },
resume: function () { paused = false; labor(); }
resume: function () { paused = false; labor(); },
pending: q
};
Object.defineProperty(qq, 'length', { get: function () { return q.length; } });
if (Object.defineProperty) {
Object.defineProperty(qq, 'length', { get: function () { return q.length; } });
}
return qq;

@@ -207,0 +210,0 @@ };

@@ -1,1 +0,1 @@

!function(n){"use strict";function t(t){return"[object Array]"===n.prototype.toString.call(t)}function r(n){return Array.prototype.slice.call(n)}function u(n,t,r){n&&m(function(){n.apply(r||null,t||[])})}function e(n){function t(){r||(r=!0,n.apply(null,arguments))}var r;return t.discard=function(){r=!0},t}function i(n,t,r){var e=n.shift();return e?(r&&r.discard(),u(t,[e]),!0):void 0}function o(){var n=r(arguments),t=n.shift();return function(){var u=r(arguments);t.apply(t,n.concat(u))}}function f(n,t){function o(){var f=e(t);return e(function(){var t=r(arguments),e=n.shift();if(e){if(i(t,f))return;t.push(o()),u(e,t)}else u(f,arguments)})}o()()}function c(o,f){function c(){return e(function(){var n=l.shift(),t=r(arguments),e=o[n];if(a){if(i(t,s))return;p[a]=t.shift()}a=n,e?u(e,[c()]):u(s,[null,p])})}var a,s=e(f),l=n.keys(o),p=t(o)?[]:{};c()()}function a(o,f){function c(n){var t=e(function(){var e=r(arguments);i(e,a,t)||(l[n]=e.shift(),++p===h&&u(a,[null,l]))});return t}var a=e(f),s=n.keys(o),l=t(o)?[]:{},p=0,h=s.length;s.forEach(function(n){u(o[n],[c(n)])})}function s(r,u){return function(e,i,o){var f=n.keys(e),c=t(e)?[]:{};f.forEach(function(n){c[n]=function(t){i(e[n],t)}}),r(c,u?u(e,o):o)}}function l(n){function t(n,t){return function(n){t(n)}}return s(n,t)}function p(r){function u(r,u){return function(e,i){function o(n,t){return!!i[t]}function f(){var t={};return n.keys(r).forEach(function(n){o(null,n)&&(t[n]=r[n])}),t}return e?void u(e):void u(null,t(i)?r.filter(o):f())}}return s(r,u)}function h(n){var t=this,e={};return n.on=function(n,t){e[n]?e[n].push(t):e[n]=[t]},n.emit=function(){var n=r(arguments),i=n.shift(),o=e[i];if("error"===i&&!o)throw 1===n.length?n[0]:n;o&&o.forEach(function(r){u(r,n,t)})},n}var m,v="function"==typeof setImmediate;m="undefined"!=typeof process&&process.nextTick?v?setImmediate:process.nextTick:v?function(n){setImmediate(n)}:function(n){setTimeout(n,0)};var d=function(r,i){function o(n,r,e){var i=r?"unshift":"push",o=t(n)?n:[n];o.forEach(function(n){s[i]({t:n,done:e})}),u(f)}function f(){if(!(a||l>=p)&&s.length){l++;var n=s.pop();r(n.t,e(c.bind(null,n)))}}function c(n,t){l--,u(n.done,[t]),u(f)}var a,s=[],l=0,p=i||1,h={push:function(n,t){o(n,!1,t)},unshift:function(n,t){o(n,!0,t)},pause:function(){a=!0},resume:function(){a=!1,f()}};return n.defineProperty(h,"length",{get:function(){return s.length}}),h},y={apply:o,concurrent:a,series:c,waterfall:f,each:l(a),map:s(a),filter:p(a),queue:d,emitter:h};y.each.series=l(c),y.map.series=s(c),y.filter.series=p(c),"undefined"!=typeof module&&module.exports?module.exports=y:window.contra=y}(Object);
!function(n){"use strict";function t(t){return"[object Array]"===n.prototype.toString.call(t)}function r(n){return Array.prototype.slice.call(n)}function e(n,t,r){n&&d(function(){n.apply(r||null,t||[])})}function u(n){function t(){r||(r=!0,n.apply(null,arguments))}var r;return t.discard=function(){r=!0},t}function i(n,t,r){var u=n.shift();return u?(r&&r.discard(),e(t,[u]),!0):void 0}function o(){var n=r(arguments),t=n.shift();return function(){var e=r(arguments);t.apply(t,n.concat(e))}}function f(n,t){function o(){var f=u(t);return u(function(){var t=r(arguments),u=n.shift();if(u){if(i(t,f))return;t.push(o()),e(u,t)}else e(f,arguments)})}o()()}function c(o,f){function c(){return u(function(){var n=l.shift(),t=r(arguments),u=o[n];if(a){if(i(t,s))return;p[a]=t.shift()}a=n,u?e(u,[c()]):e(s,[null,p])})}var a,s=u(f),l=n.keys(o),p=t(o)?[]:{};c()()}function a(o,f){function c(n){var t=u(function(){var u=r(arguments);i(u,a,t)||(l[n]=u.shift(),++p===h&&e(a,[null,l]))});return t}var a=u(f),s=n.keys(o),l=t(o)?[]:{},p=0,h=s.length;s.forEach(function(n){e(o[n],[c(n)])})}function s(r,e){return function(u,i,o){var f=n.keys(u),c=t(u)?[]:{};f.forEach(function(n){c[n]=function(t){i(u[n],t)}}),r(c,e?e(u,o):o)}}function l(n){function t(n,t){return function(n){t(n)}}return s(n,t)}function p(r){function e(r,e){return function(u,i){function o(n,t){return!!i[t]}function f(){var t={};return n.keys(r).forEach(function(n){o(null,n)&&(t[n]=r[n])}),t}return u?void e(u):void e(null,t(i)?r.filter(o):f())}}return s(r,e)}function h(n){var t=this,u={};return n.on=function(n,t){u[n]?u[n].push(t):u[n]=[t]},n.emit=function(){var n=r(arguments),i=n.shift(),o=u[i];if("error"===i&&!o)throw 1===n.length?n[0]:n;o&&o.forEach(function(r){e(r,n,t)})},n}var d,m="function"==typeof setImmediate;d="undefined"!=typeof process&&process.nextTick?m?setImmediate:process.nextTick:m?function(n){setImmediate(n)}:function(n){setTimeout(n,0)};var v=function(r,i){function o(n,r,u){var i=r?"unshift":"push",o=t(n)?n:[n];o.forEach(function(n){s[i]({t:n,done:u})}),e(f)}function f(){if(!(a||l>=p)&&s.length){l++;var n=s.pop();r(n.t,u(c.bind(null,n)))}}function c(n,t){l--,e(n.done,[t]),e(f)}var a,s=[],l=0,p=i||1,h={push:function(n,t){o(n,!1,t)},unshift:function(n,t){o(n,!0,t)},pause:function(){a=!0},resume:function(){a=!1,f()},pending:s};return n.defineProperty&&n.defineProperty(h,"length",{get:function(){return s.length}}),h},y={apply:o,concurrent:a,series:c,waterfall:f,each:l(a),map:s(a),filter:p(a),queue:v,emitter:h};y.each.series=l(c),y.map.series=s(c),y.filter.series=p(c),"undefined"!=typeof module&&module.exports?module.exports=y:window.contra=y}(Object);
{
"name": "contra",
"description": "Asynchronous flow control with a `_` taste to it",
"version": "1.0.21",
"version": "1.0.22",
"homepage": "https://github.com/bevacqua/contra",

@@ -57,2 +57,3 @@ "author": {

"safari": [
4,
5.1,

@@ -59,0 +60,0 @@ 6

@@ -260,5 +260,6 @@ ![contra.png][logo]

- `unshift(job)` Array of jobs or an individual job object. Add jobs to the top of the queue, resume processing. Optional callback to run when each job is completed
- `length` Property. Jobs that haven't started processing yet
- `pause` Stop processing jobs. Those already being processed will run to completion
- `resume` Start processing jobs again
- `pending` Property. Jobs that haven't started processing yet
- `length` Short-hand for `pending.length`, only works if getters can be defined
- `pause()` Stop processing jobs. Those already being processed will run to completion
- `resume()` Start processing jobs again

@@ -265,0 +266,0 @@ ```js

@@ -202,5 +202,8 @@ (function (Object) {

pause: function () { paused = true; },
resume: function () { paused = false; labor(); }
resume: function () { paused = false; labor(); },
pending: q
};
Object.defineProperty(qq, 'length', { get: function () { return q.length; } });
if (Object.defineProperty) {
Object.defineProperty(qq, 'length', { get: function () { return q.length; } });
}
return qq;

@@ -207,0 +210,0 @@ };

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc