fairmont-helpers
Advanced tools
Comparing version 1.1.1 to 1.1.2
// Generated by CoffeeScript 1.10.0 | ||
(function() { | ||
var async, call, follow, isFunction, isGeneratorFunction, isObject, isPromise, lift, promise, ref, | ||
var async, call, follow, isFunction, isGeneratorFunction, isObject, isPromise, lift, promise, ref, reject, resolve, unhandled, | ||
slice = [].slice; | ||
@@ -8,2 +8,8 @@ | ||
unhandled = new Map; | ||
process.on("unhandledRejection", function(reason, p) { | ||
return console.warn("Warning: unhandled rejection for", p); | ||
}); | ||
promise = function(executor) { | ||
@@ -13,6 +19,12 @@ return new Promise(executor); | ||
follow = function(x) { | ||
reject = function(x) { | ||
return Promise.reject(x); | ||
}; | ||
resolve = function(x) { | ||
return Promise.resolve(x); | ||
}; | ||
follow = resolve; | ||
lift = function(f) { | ||
@@ -99,4 +111,6 @@ var key, proxy, value; | ||
module.exports = { | ||
promise: promise, | ||
resolve: resolve, | ||
follow: follow, | ||
promise: promise, | ||
reject: reject, | ||
lift: lift, | ||
@@ -103,0 +117,0 @@ async: async, |
{ | ||
"name": "fairmont-helpers", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Functional and reactive programming for JavaScript.", | ||
@@ -5,0 +5,0 @@ "files": [ |
Sorry, the diff of this file is not supported yet
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
39444
914