compromise
Advanced tools
Comparing version 0.1.0 to 0.1.1
/** | ||
* @license | ||
* compromise 0.1.0 https://github.com/jnewman/compromise/blob/master/LICENSE.txt | ||
* Build time: 2013-07-23A01:07:21 | ||
* compromise 0.1.1 https://github.com/jnewman/compromise/blob/master/LICENSE.txt | ||
* Build time: 2013-07-23A09:07:02 | ||
*/ | ||
;!function(a,b){"function"==typeof define&&define.amd?define(["underscore","q"],b):"object"==typeof exports?module.exports=b(require("underscore"),require("q")):window.compromise=b(_,Q)}(this,function(a,b){"use strict";return function(c,d,e){var f=a.tail(arguments);return e=a.isBoolean(a.last(f))?f.pop():!1,function(){for(var d=a.map(f,function(d){return function(e){var f=b.defer(),g=function(b){b?f.reject(b):f.resolve(a.tail(arguments))},h=a.isFunction(d)?d:c[d];return h.apply(c,e.concat(g)),f.promise}}),g=0,h=d.length,i=[],j=null,k=null;h>g;++g)k=d[g],j=i[g]=j?j.then(k):k(a.toArray(arguments));return b.all(i).then(function(b){var c=a.last(b);return e?c:c[0]})}}}); |
{ | ||
"name": "compromise", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Compose (function(): Promise)es and auto lift non-promise returners to allow queued IO w/o all the boilerplate.", | ||
@@ -43,2 +43,6 @@ "author": "Joshua Newman <joshua.l.newman@gmail.com>", | ||
}, | ||
"dependencies": { | ||
"q": "~0.9", | ||
"underscore": "~1.5" | ||
}, | ||
"devDependencies": { | ||
@@ -45,0 +49,0 @@ "chai": "~1.7", |
@@ -1,6 +0,3 @@ | ||
# Compromise | ||
[![Build Status](https://api.travis-ci.org/jnewman/compromise.png?branch=master)](https://travis-ci.org/jnewman/compromise) | ||
# Compromise [![Build Status](https://api.travis-ci.org/jnewman/compromise.png?branch=master)](https://travis-ci.org/jnewman/compromise) [![Browser Support](https://ci.testling.com/jnewman/compromise.png)](https://ci.testling.com/jnewman/compromise) | ||
[![Browser Support](https://ci.testling.com/jnewman/compromise.png)](https://ci.testling.com/jnewman/compromise) | ||
Allows composition of functions that require a callback. Assumes the callbacks are node style e.g.,: | ||
@@ -7,0 +4,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19333
2
35
+ Addedq@~0.9
+ Addedunderscore@~1.5
+ Addedq@0.9.7(transitive)
+ Addedunderscore@1.5.2(transitive)