Socket
Socket
Sign inDemoInstall

compromise

Package Overview
Dependencies
Maintainers
1
Versions
169
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

compromise - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

4

dist/compromise.min.js
/**
* @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 @@

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