Skip to content

Commit

Permalink
Upgraded localForage from v1.6.0 to v1.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jlchereau committed Apr 17, 2018
1 parent 303d681 commit 8da2ec8
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
14 changes: 7 additions & 7 deletions test/vendor/localforage.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
localForage -- Offline Storage, Improved
Version 1.6.0
Version 1.7.1
https://localforage.github.io/localForage
(c) 2013-2017 Mozilla, Apache License 2.0
*/
Expand Down Expand Up @@ -90,7 +90,7 @@ var REJECTED = ['REJECTED'];
var FULFILLED = ['FULFILLED'];
var PENDING = ['PENDING'];

module.exports = Promise;
module.exports = exports = Promise;

function Promise(resolver) {
if (typeof resolver !== 'function') {
Expand Down Expand Up @@ -196,7 +196,7 @@ handlers.reject = function (self, error) {
function getThen(obj) {
// Make sure we only access the accessor once as required by the spec
var then = obj && obj.then;
if (obj && (typeof obj === 'object' || typeof obj === 'function') && typeof then === 'function') {
if (obj && typeof obj === 'object' && typeof then === 'function') {
return function appyThen() {
then.apply(obj, arguments);
};
Expand Down Expand Up @@ -244,21 +244,21 @@ function tryCatch(func, value) {
return out;
}

Promise.resolve = resolve;
exports.resolve = resolve;
function resolve(value) {
if (value instanceof this) {
return value;
}
return handlers.resolve(new this(INTERNAL), value);
}

Promise.reject = reject;
exports.reject = reject;
function reject(reason) {
var promise = new this(INTERNAL);
return handlers.reject(promise, reason);
}

Promise.all = all;
exports.all = all;
function all(iterable) {
var self = this;
if (Object.prototype.toString.call(iterable) !== '[object Array]') {
Expand Down Expand Up @@ -297,7 +297,7 @@ function all(iterable) {
}
}

Promise.race = race;
exports.race = race;
function race(iterable) {
var self = this;
if (Object.prototype.toString.call(iterable) !== '[object Array]') {
Expand Down
Loading

0 comments on commit 8da2ec8

Please sign in to comment.