Skip to content

Commit

Permalink
Updated to 7.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorhakes committed Apr 5, 2018
1 parent ccf7b5d commit 34e699d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

### 7.1.2

* Fixed bug in Node JS Promise polyfill

### 7.1.0

* Added Promise.prototype.finally
Expand Down
6 changes: 3 additions & 3 deletions dist/polyfill.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ Promise._unhandledRejectionFn = function _unhandledRejectionFn(err) {
}
};

var global = (function() {
var globalNS = (function() {
// the only reliable means to get the global object is
// `Function('return this')()`
// However, this causes CSP violations in Chrome apps.
Expand All @@ -259,8 +259,8 @@ var global = (function() {
throw new Error('unable to locate global object');
})();

if (!global.Promise) {
global.Promise = Promise;
if (!globalNS.Promise) {
globalNS.Promise = Promise;
}

})));
2 changes: 1 addition & 1 deletion dist/polyfill.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "promise-polyfill",
"version": "7.1.1",
"version": "7.1.2",
"description": "Lightweight promise polyfill. A+ compliant",
"main": "lib/index.js",
"jsnext:main": "src/index.js",
Expand Down

0 comments on commit 34e699d

Please sign in to comment.