Comparing version 0.1.3 to 0.1.4
@@ -15,5 +15,12 @@ /** | ||
this._failFn = onFail | ||
this._hasContext = false | ||
this._context = undefined | ||
} | ||
Promise.prototype.clearContext = function () { | ||
this._hasContext = false | ||
this._context = undefined | ||
return this | ||
} | ||
/** | ||
@@ -25,2 +32,3 @@ * Set the context for a promise | ||
this._context = context | ||
this._hasContext = true | ||
return this | ||
@@ -216,2 +224,3 @@ } | ||
var i | ||
if (this._hasContext) promise.setContext(this.context) | ||
@@ -218,0 +227,0 @@ if (this._child) { |
{ | ||
"name": "kew" | ||
, "description": "a lightweight promise library for node" | ||
, "version": "0.1.3" | ||
, "version": "0.1.4" | ||
, "homepage": "https://github.com/Obvious/kew" | ||
@@ -6,0 +6,0 @@ , "authors": [ |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
46070
9
977
0