Comparing version 0.2.0 to 0.2.1
15
index.js
@@ -40,3 +40,3 @@ /*! | ||
return new Promize(function (resolve, reject) { | ||
var promise = new Promize(function (resolve, reject) { | ||
process.once('uncaughtException', reject) | ||
@@ -53,2 +53,4 @@ process.once('unhandledRejection', reject) | ||
}) | ||
return normalizePromise(promise, Promize) | ||
} | ||
@@ -85,1 +87,12 @@ | ||
} | ||
/** | ||
* Inherit and normalize properties | ||
*/ | ||
function normalizePromise (promise, Ctor) { | ||
promise.Prome = Ctor | ||
promise.___customPromise = Ctor.___customPromise | ||
promise.___bluebirdPromise = Ctor.___bluebirdPromise | ||
return promise | ||
} |
{ | ||
"name": "letta", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Let's move to promises! Drop-in replacement for `co@4`, but on steroids. Accepts sync, async and generator functions.", | ||
@@ -22,2 +22,3 @@ "repository": "hybridables/letta", | ||
"mz": "^2.0.0", | ||
"pinkie": "^1.0.0", | ||
"semver": "^5.0.3", | ||
@@ -51,2 +52,2 @@ "simple-get": "^1.4.3" | ||
] | ||
} | ||
} |
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
15493
87
5