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.6.2 to 1.6.3

2

bower.json
{
"name": "contra",
"description": "Asynchronous flow control with a functional taste to it",
"version": "1.6.2",
"version": "1.6.3",
"homepage": "https://github.com/bevacqua/contra",

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

/**
* contra - Asynchronous flow control with a functional taste to it
* @version v1.6.2
* @version v1.6.3
* @link https://github.com/bevacqua/contra

@@ -13,3 +13,3 @@ * @license MIT

var CONCURRENT = Infinity;
var getKeys = Object.keys;
function noop () {}

@@ -37,7 +37,7 @@ function a (o) { return Object.prototype.toString.call(o) === '[object Array]'; }

if (si) {
tick = setImmediate;
tick = function (fn) { setImmediate(fn); };
} else if (typeof process !== undef && process.nextTick) {
tick = process.nextTick;
} else {
tick = setTimeout;
tick = function (fn) { setTimeout(fn, 0); };
}

@@ -74,3 +74,3 @@

var q = _queue(worker, concurrency);
var keys = getKeys(tasks);
var keys = Object.keys(tasks);
var results = a(tasks) ? [] : {};

@@ -99,3 +99,3 @@ q.unshift(keys);

if (args.length === 3 && typeof concurrency !== 'number') { done = iterator; iterator = concurrency; concurrency = CONCURRENT; }
var keys = getKeys(collection);
var keys = Object.keys(collection);
var tasks = a(collection) ? [] : {};

@@ -135,3 +135,3 @@ keys.forEach(function insert (key) {

var filtered = {};
getKeys(collection).forEach(function omapper (key) {
Object.keys(collection).forEach(function omapper (key) {
if (exists(null, key)) { filtered[key] = collection[key]; }

@@ -138,0 +138,0 @@ });

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

// contra@v1.6.2, MIT licensed. https://github.com/bevacqua/contra
!function(n,t,r){"use strict";function e(){}function u(t){return"[object Array]"===n.prototype.toString.call(t)}function i(n,t){return Array.prototype.slice.call(n,t)}function o(n,t,r){n&&y(function(){n.apply(r||null,t||[])})}function f(n){function t(){r||(r=!0,(n||e).apply(null,arguments))}var r;return t.discard=function(){r=!0},t}function c(n,t,r){var e=n.shift();return e?(r&&r.discard(),o(t,[e]),!0):void 0}function a(){var n=i(arguments),t=n.shift();return function(){var r=i(arguments);t.apply(t,n.concat(r))}}function s(n,t){function r(){var t=i(arguments),u=n.shift();if(u){if(c(t,e))return;t.push(f(r)),o(u,t)}else o(e,arguments)}var e=f(t);r()}function l(n,t,r){function e(t,r){function e(){var n=i(arguments);c(n,a)||(p[t]=n.shift(),r())}o(n[t],[e])}r||(r=t,t=P);var a=f(r),s=g(e,t),l=k(n),p=u(n)?[]:{};s.unshift(l),s.on("drain",function(){a(null,p)})}function p(n,t){l(n,x,t)}function d(n,t,r){var e=function(r,e,i,o){var f=arguments;2===f.length&&(i=e,e=P),3===f.length&&"number"!=typeof e&&(o=i,i=e,e=P);var c=k(r),a=u(r)?[]:{};c.forEach(function(n){a[n]=function(t){3===i.length?i(r[n],n,t):i(r[n],t)}}),l(a,n||e,t?t(r,o):o)};return r||(e.series=d(x,t,!0)),e}function h(n){function t(n,t){return function(n){t(n)}}return d(n,t)}function v(n){function t(n,t){return function(r,e){function i(n,t){return!!e[t]}function o(){var t={};return k(n).forEach(function(r){i(null,r)&&(t[r]=n[r])}),t}return r?void t(r):void t(null,u(e)?n.filter(i):o())}}return d(n,t)}function m(n,t){var e=t||{},u={};return n===r&&(n={}),n.on=function(n,t){u[n]?u[n].push(t):u[n]=[t]},n.once=function(t,r){r._once=!0,n.on(t,r)},n.off=function(n,t){var r=u[n];r&&r.splice(r.indexOf(t),1)},n.emit=function(){var n=i(arguments),t=n.shift(),r=u[t];if("error"===t&&!r)throw 1===n.length?n[0]:n;r&&(u[t]=r.filter(function(t){return e.async?o(t,n):t.apply(null,n),!t._once}))},n}function g(t,r){function e(n,t,r){var e=u(t)?t:[t];e.forEach(function(t){l[n]({t:t,done:r})}),o(c)}function c(){if(!(s||p>=d)){if(!l.length)return void(0===p&&h.emit("drain"));p++;var n=l.pop();t(n.t,f(a.bind(null,n))),o(c)}}function a(n){p--,o(n.done,i(arguments,1)),o(c)}var s,l=[],p=0,d=r||1,h=m({push:e.bind(null,"push"),unshift:e.bind(null,"unshift"),pause:function(){s=!0},resume:function(){s=!1,o(c)},pending:l});return n.defineProperty&&!n.definePropertyPartial&&n.defineProperty(h,"length",{get:function(){return l.length}}),h}var y,b=""+r,x=1,P=1/0,k=n.keys,E="function"==typeof setImmediate;y=E?setImmediate:typeof process!==b&&process.nextTick?process.nextTick:setTimeout;var T={curry:a,concurrent:l,series:p,waterfall:s,each:h(),map:d(),filter:v(),queue:g,emitter:m};typeof module!==b&&module.exports?module.exports=T:t.contra=T}(Object,this);
// contra@v1.6.3, MIT licensed. https://github.com/bevacqua/contra
!function(n,t,r){"use strict";function e(){}function u(t){return"[object Array]"===n.prototype.toString.call(t)}function i(n,t){return Array.prototype.slice.call(n,t)}function o(n,t,r){n&&g(function(){n.apply(r||null,t||[])})}function f(n){function t(){r||(r=!0,(n||e).apply(null,arguments))}var r;return t.discard=function(){r=!0},t}function c(n,t,r){var e=n.shift();return e?(r&&r.discard(),o(t,[e]),!0):void 0}function a(){var n=i(arguments),t=n.shift();return function(){var r=i(arguments);t.apply(t,n.concat(r))}}function s(n,t){function r(){var t=i(arguments),u=n.shift();if(u){if(c(t,e))return;t.push(f(r)),o(u,t)}else o(e,arguments)}var e=f(t);r()}function l(t,r,e){function a(n,r){function e(){var t=i(arguments);c(t,s)||(d[n]=t.shift(),r())}o(t[n],[e])}e||(e=r,r=x);var s=f(e),l=y(a,r),p=n.keys(t),d=u(t)?[]:{};l.unshift(p),l.on("drain",function(){s(null,d)})}function p(n,t){l(n,k,t)}function d(t,r,e){var i=function(e,i,o,f){var c=arguments;2===c.length&&(o=i,i=x),3===c.length&&"number"!=typeof i&&(f=o,o=i,i=x);var a=n.keys(e),s=u(e)?[]:{};a.forEach(function(n){s[n]=function(t){3===o.length?o(e[n],n,t):o(e[n],t)}}),l(s,t||i,r?r(e,f):f)};return e||(i.series=d(k,r,!0)),i}function h(n){function t(n,t){return function(n){t(n)}}return d(n,t)}function v(t){function r(t,r){return function(e,i){function o(n,t){return!!i[t]}function f(){var r={};return n.keys(t).forEach(function(n){o(null,n)&&(r[n]=t[n])}),r}return e?void r(e):void r(null,u(i)?t.filter(o):f())}}return d(t,r)}function m(n,t){var e=t||{},u={};return n===r&&(n={}),n.on=function(n,t){u[n]?u[n].push(t):u[n]=[t]},n.once=function(t,r){r._once=!0,n.on(t,r)},n.off=function(n,t){var r=u[n];r&&r.splice(r.indexOf(t),1)},n.emit=function(){var n=i(arguments),t=n.shift(),r=u[t];if("error"===t&&!r)throw 1===n.length?n[0]:n;r&&(u[t]=r.filter(function(t){return e.async?o(t,n):t.apply(null,n),!t._once}))},n}function y(t,r){function e(n,t,r){var e=u(t)?t:[t];e.forEach(function(t){l[n]({t:t,done:r})}),o(c)}function c(){if(!(s||p>=d)){if(!l.length)return void(0===p&&h.emit("drain"));p++;var n=l.pop();t(n.t,f(a.bind(null,n))),o(c)}}function a(n){p--,o(n.done,i(arguments,1)),o(c)}var s,l=[],p=0,d=r||1,h=m({push:e.bind(null,"push"),unshift:e.bind(null,"unshift"),pause:function(){s=!0},resume:function(){s=!1,o(c)},pending:l});return n.defineProperty&&!n.definePropertyPartial&&n.defineProperty(h,"length",{get:function(){return l.length}}),h}var g,b=""+r,k=1,x=1/0,P="function"==typeof setImmediate;g=P?function(n){setImmediate(n)}:typeof process!==b&&process.nextTick?process.nextTick:function(n){setTimeout(n,0)};var E={curry:a,concurrent:l,series:p,waterfall:s,each:h(),map:d(),filter:v(),queue:y,emitter:m};typeof module!==b&&module.exports?module.exports=E:t.contra=E}(Object,this);
/**
* contra - Asynchronous flow control with a functional taste to it
* @version v1.6.2
* @version v1.6.3
* @link https://github.com/bevacqua/contra

@@ -5,0 +5,0 @@ * @license MIT

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

// contra@v1.6.2, MIT licensed. https://github.com/bevacqua/contra
// contra@v1.6.3, MIT licensed. https://github.com/bevacqua/contra
!function(t,r){"use strict";if(r.prototype.forEach||(r.prototype.forEach=function(t,r){if(void 0===this||null===this||"function"!=typeof t)throw new TypeError;for(var o=this,n=o.length,e=0;n>e;e++)e in o&&t.call(r,o[e],e,o)}),r.prototype.indexOf||(r.prototype.indexOf=function(t,r){if(void 0===this||null===this)throw new TypeError;var o=this.length;for(r=+r||0,1/0===Math.abs(r)?r=0:0>r&&(r+=o,0>r&&(r=0));o>r;r++)if(this[r]===t)return r;return-1}),r.prototype.filter||(r.prototype.filter=function(t,r){var o=[];return this.forEach(function(n,e,i){t.call(r,n,e,i)&&o.push(n)},r),o}),Function.prototype.bind||(Function.prototype.bind=function(t){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var o=r.prototype.slice.call(arguments,1),n=this,e=function(){},i=function(){var i=this instanceof e&&t?this:t,p=o.concat(r.prototype.slice.call(arguments));return n.apply(i,p)};return e.prototype=this.prototype,i.prototype=new e,i}),t.keys||(t.keys=function(t){var r=[];for(var o in t)t.hasOwnProperty(o)&&r.push(o);return r}),t.defineProperty)try{t.defineProperty({},"x",{})}catch(o){t.definePropertyPartial=!0}}(Object,Array);
{
"name": "contra",
"description": "Asynchronous flow control with a functional taste to it",
"version": "1.6.2",
"version": "1.6.3",
"homepage": "https://github.com/bevacqua/contra",

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

@@ -7,3 +7,3 @@ (function (Object, root, undefined) {

var CONCURRENT = Infinity;
var getKeys = Object.keys;
function noop () {}

@@ -31,7 +31,7 @@ function a (o) { return Object.prototype.toString.call(o) === '[object Array]'; }

if (si) {
tick = setImmediate;
tick = function (fn) { setImmediate(fn); };
} else if (typeof process !== undef && process.nextTick) {
tick = process.nextTick;
} else {
tick = setTimeout;
tick = function (fn) { setTimeout(fn, 0); };
}

@@ -68,3 +68,3 @@

var q = _queue(worker, concurrency);
var keys = getKeys(tasks);
var keys = Object.keys(tasks);
var results = a(tasks) ? [] : {};

@@ -93,3 +93,3 @@ q.unshift(keys);

if (args.length === 3 && typeof concurrency !== 'number') { done = iterator; iterator = concurrency; concurrency = CONCURRENT; }
var keys = getKeys(collection);
var keys = Object.keys(collection);
var tasks = a(collection) ? [] : {};

@@ -129,3 +129,3 @@ keys.forEach(function insert (key) {

var filtered = {};
getKeys(collection).forEach(function omapper (key) {
Object.keys(collection).forEach(function omapper (key) {
if (exists(null, key)) { filtered[key] = collection[key]; }

@@ -132,0 +132,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