Skip to content

Commit 7e8f76b

Browse files
committed
chore(dist): add dist files from updated rollup
1 parent fbe4af5 commit 7e8f76b

File tree

2 files changed

+407
-391
lines changed

2 files changed

+407
-391
lines changed

dist/localforage-observable.es6.js

Lines changed: 30 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,29 @@
11
import localforage from 'localforage';
22
import window from 'window';
33

4-
var babelHelpers = {};
5-
babelHelpers.typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
4+
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
65
return typeof obj;
76
} : function (obj) {
8-
return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj;
7+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
98
};
109

11-
babelHelpers.classCallCheck = function (instance, Constructor) {
10+
11+
12+
13+
14+
15+
16+
17+
18+
19+
20+
var classCallCheck = function (instance, Constructor) {
1221
if (!(instance instanceof Constructor)) {
1322
throw new TypeError("Cannot call a class as a function");
1423
}
1524
};
1625

17-
babelHelpers.createClass = function () {
26+
var createClass = function () {
1827
function defineProperties(target, props) {
1928
for (var i = 0; i < props.length; i++) {
2029
var descriptor = props[i];
@@ -32,8 +41,6 @@ babelHelpers.createClass = function () {
3241
};
3342
}();
3443

35-
babelHelpers;
36-
3744
// thanks AngularJS
3845
function isDate(value) {
3946
return toString.call(value) === '[object Date]';
@@ -60,8 +67,8 @@ function equals(o1, o2) {
6067
if (o1 === o2) return true;
6168
if (o1 === null || o2 === null) return false;
6269
if (o1 !== o1 && o2 !== o2) return true; // NaN === NaN
63-
var t1 = typeof o1 === 'undefined' ? 'undefined' : babelHelpers.typeof(o1),
64-
t2 = typeof o2 === 'undefined' ? 'undefined' : babelHelpers.typeof(o2),
70+
var t1 = typeof o1 === 'undefined' ? 'undefined' : _typeof(o1),
71+
t2 = typeof o2 === 'undefined' ? 'undefined' : _typeof(o2),
6572
length,
6673
key,
6774
keySet;
@@ -108,13 +115,13 @@ var ObservableLibraryMethods = ['clear',
108115

109116
var LocalForageObservableWrapper = function () {
110117
function LocalForageObservableWrapper(options, subscriptionObserver) {
111-
babelHelpers.classCallCheck(this, LocalForageObservableWrapper);
118+
classCallCheck(this, LocalForageObservableWrapper);
112119

113120
this.options = options;
114121
this.subscriptionObserver = subscriptionObserver;
115122
}
116123

117-
babelHelpers.createClass(LocalForageObservableWrapper, [{
124+
createClass(LocalForageObservableWrapper, [{
118125
key: 'hasMethodFilterOptions',
119126
value: function hasMethodFilterOptions() {
120127
if (this.options) {
@@ -134,10 +141,10 @@ var LocalForageObservableWrapper = function () {
134141
this.subscriptionObserver.next(publishObject);
135142
} catch (e) {/* */}
136143
} else if (publishObject.fail && typeof this.subscriptionObserver.error === 'function') {
137-
try {
138-
this.subscriptionObserver.error(publishObject);
139-
} catch (e) {/* */}
140-
}
144+
try {
145+
this.subscriptionObserver.error(publishObject);
146+
} catch (e) {/* */}
147+
}
141148
}
142149
}]);
143150
return LocalForageObservableWrapper;
@@ -165,13 +172,13 @@ var inited = false;
165172

166173
var StorageEventObserver = function () {
167174
function StorageEventObserver(localforageInstance) {
168-
babelHelpers.classCallCheck(this, StorageEventObserver);
175+
classCallCheck(this, StorageEventObserver);
169176

170177
this.localforageInstance = localforageInstance;
171178
this._onStorageEventBinded = this._onStorageEvent.bind(this);
172179
}
173180

174-
babelHelpers.createClass(StorageEventObserver, [{
181+
createClass(StorageEventObserver, [{
175182
key: 'setup',
176183
value: function setup() {
177184
if (!isSupported || inited) {
@@ -344,7 +351,7 @@ function wireUpMethods(localforageInstance) {
344351
}
345352
}
346353

347-
function setup(localforageInstance) {
354+
function setup$1(localforageInstance) {
348355
if (!localforageInstance._observables) {
349356
localforageInstance._observables = {
350357
callDetection: [],
@@ -360,7 +367,7 @@ function setup(localforageInstance) {
360367

361368
function configObservables(options) {
362369
var localforageInstance = this;
363-
setup(localforageInstance);
370+
setup$1(localforageInstance);
364371

365372
if (!options) {
366373
return;
@@ -382,7 +389,7 @@ function configObservables(options) {
382389

383390
function localforageObservable(options) {
384391
var localforageInstance = this;
385-
setup(localforageInstance);
392+
setup$1(localforageInstance);
386393

387394
var localforageObservablesList = options && options.changeDetection === false ? localforageInstance._observables.callDetection : localforageInstance._observables.changeDetection;
388395

@@ -407,9 +414,9 @@ localforageObservable.factory = function (subscribeFn) {
407414
return new Observable(subscribeFn);
408415
};
409416

410-
function extendPrototype(localforage) {
417+
function extendPrototype(localforage$$1) {
411418
try {
412-
var localforagePrototype = Object.getPrototypeOf(localforage);
419+
var localforagePrototype = Object.getPrototypeOf(localforage$$1);
413420
if (localforagePrototype) {
414421
localforagePrototype.newObservable = localforageObservable;
415422
localforagePrototype.configObservables = configObservables;
@@ -421,4 +428,4 @@ function extendPrototype(localforage) {
421428

422429
var extendPrototypeResult = extendPrototype(localforage);
423430

424-
export { localforageObservable, extendPrototype, extendPrototypeResult };
431+
export { localforageObservable, extendPrototype, extendPrototypeResult };

0 commit comments

Comments
 (0)