contra
Advanced tools
Comparing version 1.4.3 to 1.4.4
{ | ||
"name": "contra", | ||
"description": "Asynchronous flow control with a functional taste to it", | ||
"version": "1.4.3", | ||
"version": "1.4.4", | ||
"homepage": "https://github.com/bevacqua/contra", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -1,10 +0,14 @@ | ||
# 1.4.3 | ||
# 1.4.4 `<head>` | ||
- Distribution file headers | ||
# 1.4.3 Wonderboy | ||
- Source code readability | ||
# 1.4.0 | ||
# 1.4.0 Baseball Cap | ||
- Added optional _concurrency cap_ argument to remaining concurrent methods: `filter`, `map`, `each` | ||
# 1.3.0 | ||
# 1.3.0 Queue Up! | ||
@@ -20,3 +24,3 @@ - Concurrent methods now use a queue internally | ||
# 1.2.2 | ||
# 1.2.2 Polyglot | ||
@@ -23,0 +27,0 @@ - Polyfill for `Array.prototype.indexOf` added to `contra.shim.js` |
@@ -0,1 +1,7 @@ | ||
/** | ||
* contra - Asynchronous flow control with a functional taste to it | ||
* @version v1.4.3 | ||
* @link https://github.com/bevacqua/contra | ||
* @license MIT | ||
*/ | ||
(function (Object, root) { | ||
@@ -2,0 +8,0 @@ 'use strict'; |
@@ -0,1 +1,2 @@ | ||
// contra@v1.4.3, MIT licensed. https://github.com/bevacqua/contra | ||
!function(n,t){"use strict";function e(t){return"[object Array]"===n.prototype.toString.call(t)}function r(n,t){return Array.prototype.slice.call(n,t)}function u(n,t,e){n&&v(function(){n.apply(e||null,t||[])})}function i(n){function t(){e||(e=!0,n.apply(null,arguments))}var e;return t.discard=function(){e=!0},t}function o(n,t,e){var r=n.shift();return r?(e&&e.discard(),u(t,[r]),!0):void 0}function f(){var n=r(arguments),t=n.shift();return function(){var e=r(arguments);t.apply(t,n.concat(e))}}function c(n,t){function e(){var f=i(t);return i(function(){var t=r(arguments),i=n.shift();if(i){if(o(t,f))return;t.push(e()),u(i,t)}else u(f,arguments)})}e()()}function a(t,f,c){function a(n,e){function i(){var t=r(arguments);o(t,s)||(m[n]=t.shift(),e())}u(t[n],[i])}c||(c=f,f=k);var s=i(c),l=h(a,f),p=n.keys(t),m=e(t)?[]:{};l.unshift(p),l.on("drain",function(){s(null,m)})}function s(n,t){a(n,y,t)}function l(t,r){return function(u,i,o,f){2===arguments.length&&(o=i,i=k),3===arguments.length&&"number"!=typeof i&&(f=o,o=i,i=k);var c=n.keys(u),s=e(u)?[]:{};c.forEach(function(n){s[n]=function(t){o(u[n],t)}}),a(s,t||i,r?r(u,f):f)}}function p(n){function t(n,t){return function(n){t(n)}}return l(n,t)}function m(t){function r(t,r){return function(u,i){function o(n,t){return!!i[t]}function f(){var e={};return n.keys(t).forEach(function(n){o(null,n)&&(e[n]=t[n])}),e}return u?void r(u):void r(null,e(i)?t.filter(o):f())}}return l(t,r)}function d(n){var t={};return n.on=function(n,e){t[n]?t[n].push(e):t[n]=[e]},n.once=function(t,e){e._once=!0,n.on(t,e)},n.off=function(n,e){var r=t[n];r&&r.splice(r.indexOf(e),1)},n.emit=function(){var n=r(arguments),e=n.shift(),i=t[e];if("error"===e&&!i)throw 1===n.length?n[0]:n;i&&(t[e]=i.filter(function(t){return u(t,n),!t._once}))},n}function h(t,o){function f(n){var t=n?"unshift":"push";return function(n,r){var i=e(n)?n:[n];i.forEach(function(n){l[t]({t:n,done:r})}),u(c)}}function c(){if(!(s||m!==k&&p>=m)){if(!l.length)return void(0===p&&h.emit("drain"));p++;var n=l.pop();t(n.t,i(a.bind(null,n))),u(c)}}function a(n){p--,u(n.done,r(arguments,1)),u(c)}var s,l=[],p=0,m=o||1,h=d({push:f(!1),unshift:f(!0),pause:function(){s=!0},resume:function(){s=!1,u(c)},pending:l});return n.defineProperty&&!n.definePropertyPartial&&n.defineProperty(h,"length",{get:function(){return l.length}}),h}var v,g="undefined",y=1,k=1/0,x="function"==typeof setImmediate;v=typeof process!==g&&process.nextTick?x?setImmediate:process.nextTick:x?function(n){setImmediate(n)}:function(n){setTimeout(n,0)};var b={curry:f,concurrent:a,series:s,waterfall:c,each:p(),map:l(),filter:m(),queue:h,emitter:d};b.each.series=p(y),b.map.series=l(y),b.filter.series=m(y),typeof module!==g&&module.exports?module.exports=b:t.contra=b}(Object,this); |
@@ -0,1 +1,7 @@ | ||
/** | ||
* contra - Asynchronous flow control with a functional taste to it | ||
* @version v1.4.3 | ||
* @link https://github.com/bevacqua/contra | ||
* @license MIT | ||
*/ | ||
(function (Object, Array) { | ||
@@ -2,0 +8,0 @@ 'use strict'; |
@@ -0,1 +1,2 @@ | ||
// contra@v1.4.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); |
'use strict'; | ||
var pkg = require('./package.json'); | ||
var gulp = require('gulp'); | ||
@@ -10,5 +11,19 @@ var bump = require('gulp-bump'); | ||
var rename = require('gulp-rename'); | ||
var header = require('gulp-header'); | ||
var uglify = require('gulp-uglify'); | ||
var size = require('gulp-size'); | ||
var extended = [ | ||
'/**', | ||
' * <%= pkg.name %> - <%= pkg.description %>', | ||
' * @version v<%= pkg.version %>', | ||
' * @link <%= pkg.homepage %>', | ||
' * @license <%= pkg.license %>', | ||
' */', | ||
'' | ||
].join('\n'); | ||
var succint = '// <%= pkg.name %>@v<%= pkg.version %>, <%= pkg.license %> licensed. <%= pkg.homepage %>\n'; | ||
gulp.task('lint', function () { | ||
@@ -32,5 +47,7 @@ return gulp.src('./src/*.js') | ||
return gulp.src('./src/contra.shim.js') | ||
.pipe(header(extended, { pkg : pkg } )) | ||
.pipe(gulp.dest('./dist')) | ||
.pipe(rename('contra.shim.min.js')) | ||
.pipe(uglify()) | ||
.pipe(header(succint, { pkg : pkg } )) | ||
.pipe(size()) | ||
@@ -42,5 +59,7 @@ .pipe(gulp.dest('./dist')); | ||
return gulp.src('./src/contra.js') | ||
.pipe(header(extended, { pkg : pkg } )) | ||
.pipe(gulp.dest('./dist')) | ||
.pipe(rename('contra.min.js')) | ||
.pipe(uglify()) | ||
.pipe(header(succint, { pkg : pkg } )) | ||
.pipe(size()) | ||
@@ -47,0 +66,0 @@ .pipe(gulp.dest('./dist')); |
{ | ||
"name": "contra", | ||
"description": "Asynchronous flow control with a functional taste to it", | ||
"version": "1.4.3", | ||
"version": "1.4.4", | ||
"homepage": "https://github.com/bevacqua/contra", | ||
@@ -82,3 +82,5 @@ "author": { | ||
}, | ||
"dependencies": {}, | ||
"dependencies": { | ||
"gulp-header": "^1.0.2" | ||
}, | ||
"devDependencies": { | ||
@@ -85,0 +87,0 @@ "assert": "~1.1.0", |
230907
6768
1
+ Addedgulp-header@^1.0.2
+ Addedconcat-with-sourcemaps@1.1.0(transitive)
+ Addedcore-util-is@1.0.3(transitive)
+ Addedgulp-header@1.8.12(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedisarray@1.0.0(transitive)
+ Addedlodash._reinterpolate@3.0.0(transitive)
+ Addedlodash.template@4.5.0(transitive)
+ Addedlodash.templatesettings@4.2.0(transitive)
+ Addedprocess-nextick-args@2.0.1(transitive)
+ Addedreadable-stream@2.3.8(transitive)
+ Addedsafe-buffer@5.1.2(transitive)
+ Addedsource-map@0.6.1(transitive)
+ Addedstring_decoder@1.1.1(transitive)
+ Addedthrough2@2.0.5(transitive)
+ Addedutil-deprecate@1.0.2(transitive)
+ Addedxtend@4.0.2(transitive)