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

contra

Package Overview
Dependencies
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

contra - npm Package Compare versions

Comparing version 1.6.3 to 1.6.4

2

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

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

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

# 1.6.4 Context Emission
- `λ.emitter` properly sets `this` to the event emitter object
# 1.6.1 Much Synchronous

@@ -2,0 +6,0 @@

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

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

evt[type] = et.filter(function emitter (listen) {
if (opts.async) { debounce(listen, args); } else { listen.apply(null, args); }
if (opts.async) { debounce(listen, args, thing); } else { listen.apply(thing, args); }
return !listen._once;

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

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

// 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@v1.6.4, 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 t=i(arguments),r=t.shift(),f=u[r];if("error"===r&&!f)throw 1===t.length?t[0]:t;f&&(u[r]=f.filter(function(r){return e.async?o(r,t,n):r.apply(n,t),!r._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.3
* @version v1.6.4
* @link https://github.com/bevacqua/contra

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

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

// contra@v1.6.3, MIT licensed. https://github.com/bevacqua/contra
// contra@v1.6.4, 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.3",
"version": "1.6.4",
"homepage": "https://github.com/bevacqua/contra",

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

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

evt[type] = et.filter(function emitter (listen) {
if (opts.async) { debounce(listen, args); } else { listen.apply(null, args); }
if (opts.async) { debounce(listen, args, thing); } else { listen.apply(thing, args); }
return !listen._once;

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

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