promise.prototype.finally
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -0,1 +1,5 @@ | ||
2.0.1 / 2016-09-27 | ||
================= | ||
* [Fix] functions in IE 9-11 don’t have a `name` property (#3) | ||
2.0.0 / 2016-08-21 | ||
@@ -2,0 +6,0 @@ ================= |
@@ -41,6 +41,9 @@ 'use strict'; | ||
}; | ||
if (Object.getOwnPropertyDescriptor && Object.getOwnPropertyDescriptor(promiseFinally, 'name').configurable) { | ||
Object.defineProperty(promiseFinally, 'name', { configurable: true, value: 'finally' }); | ||
if (Object.getOwnPropertyDescriptor) { | ||
var descriptor = Object.getOwnPropertyDescriptor(promiseFinally, 'name'); | ||
if (descriptor && descriptor.configurable) { | ||
Object.defineProperty(promiseFinally, 'name', { configurable: true, value: 'finally' }); | ||
} | ||
} | ||
module.exports = promiseFinally; |
{ | ||
"name": "promise.prototype.finally", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"author": "Jordan Harband", | ||
@@ -52,3 +52,3 @@ "contributors": [ | ||
"define-properties": "^1.1.2", | ||
"es-abstract": "^1.6.0", | ||
"es-abstract": "^1.6.1", | ||
"function-bind": "^1.1.0" | ||
@@ -58,9 +58,9 @@ }, | ||
"@es-shims/api": "^1.2.0", | ||
"@ljharb/eslint-config": "^6.0.0", | ||
"@ljharb/eslint-config": "^8.0.0", | ||
"covert": "^1.1.0", | ||
"es6-shim": "^0.35.1", | ||
"eslint": "^3.0.1", | ||
"nsp": "^2.5.0", | ||
"eslint": "^3.6.1", | ||
"nsp": "^2.6.1", | ||
"tape": "^4.6.0", | ||
"safe-publish-latest": "^1.0.1" | ||
"safe-publish-latest": "^1.1.0" | ||
}, | ||
@@ -67,0 +67,0 @@ "testling": { |
@@ -5,4 +5,2 @@ 'use strict'; | ||
// var define = require('define-properties'); | ||
// var hasSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol'; | ||
@@ -15,3 +13,3 @@ | ||
t.skip('onFinally arguments', function (st) { | ||
t.test('onFinally arguments', function (st) { | ||
st.plan(2); | ||
@@ -18,0 +16,0 @@ |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
22801
18
309
0
Updatedes-abstract@^1.6.1