parse 3.4.0 → 3.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -8
- package/dist/parse.js +68 -12
- package/dist/parse.min.js +2 -2
- package/dist/parse.weapp.js +63 -7
- package/dist/parse.weapp.min.js +2 -2
- package/lib/browser/CoreManager.js +1 -1
- package/lib/node/CoreManager.js +1 -1
- package/lib/react-native/CoreManager.js +1 -1
- package/lib/weapp/CoreManager.js +1 -1
- package/package.json +3 -3
package/dist/parse.weapp.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Parse JavaScript SDK v3.4.
|
|
2
|
+
* Parse JavaScript SDK v3.4.1
|
|
3
3
|
*
|
|
4
4
|
* The source tree of this library can be found at
|
|
5
5
|
* https://github.com/ParsePlatform/Parse-SDK-JS
|
|
@@ -699,7 +699,7 @@ var config
|
|
|
699
699
|
SERVER_AUTH_TOKEN: null,
|
|
700
700
|
LIVEQUERY_SERVER_URL: null,
|
|
701
701
|
ENCRYPTED_KEY: null,
|
|
702
|
-
VERSION: 'js' + "3.4.
|
|
702
|
+
VERSION: 'js' + "3.4.1",
|
|
703
703
|
APPLICATION_ID: null,
|
|
704
704
|
JAVASCRIPT_KEY: null,
|
|
705
705
|
MASTER_KEY: null,
|
|
@@ -35433,10 +35433,22 @@ function functionBindPolyfill(context) {
|
|
|
35433
35433
|
},{}],532:[function(_dereq_,module,exports){
|
|
35434
35434
|
'use strict';
|
|
35435
35435
|
|
|
35436
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
35437
|
+
|
|
35436
35438
|
Object.defineProperty(exports, '__esModule', {
|
|
35437
35439
|
value: true
|
|
35438
35440
|
});
|
|
35439
35441
|
|
|
35442
|
+
var safariFix = _dereq_('safari-14-idb-fix');
|
|
35443
|
+
|
|
35444
|
+
function _interopDefaultLegacy(e) {
|
|
35445
|
+
return e && _typeof(e) === 'object' && 'default' in e ? e : {
|
|
35446
|
+
'default': e
|
|
35447
|
+
};
|
|
35448
|
+
}
|
|
35449
|
+
|
|
35450
|
+
var safariFix__default = /*#__PURE__*/_interopDefaultLegacy(safariFix);
|
|
35451
|
+
|
|
35440
35452
|
function promisifyRequest(request) {
|
|
35441
35453
|
return new Promise(function (resolve, reject) {
|
|
35442
35454
|
// @ts-ignore - file size hacks
|
|
@@ -35452,13 +35464,15 @@ function promisifyRequest(request) {
|
|
|
35452
35464
|
}
|
|
35453
35465
|
|
|
35454
35466
|
function createStore(dbName, storeName) {
|
|
35455
|
-
var
|
|
35467
|
+
var dbp = safariFix__default['default']().then(function () {
|
|
35468
|
+
var request = indexedDB.open(dbName);
|
|
35456
35469
|
|
|
35457
|
-
|
|
35458
|
-
|
|
35459
|
-
|
|
35470
|
+
request.onupgradeneeded = function () {
|
|
35471
|
+
return request.result.createObjectStore(storeName);
|
|
35472
|
+
};
|
|
35460
35473
|
|
|
35461
|
-
|
|
35474
|
+
return promisifyRequest(request);
|
|
35475
|
+
});
|
|
35462
35476
|
return function (txMode, callback) {
|
|
35463
35477
|
return dbp.then(function (db) {
|
|
35464
35478
|
return callback(db.transaction(storeName, txMode).objectStore(storeName));
|
|
@@ -35582,6 +35596,23 @@ function del(key) {
|
|
|
35582
35596
|
return promisifyRequest(store.transaction);
|
|
35583
35597
|
});
|
|
35584
35598
|
}
|
|
35599
|
+
/**
|
|
35600
|
+
* Delete multiple keys at once.
|
|
35601
|
+
*
|
|
35602
|
+
* @param keys List of keys to delete.
|
|
35603
|
+
* @param customStore Method to get a custom store. Use with caution (see the docs).
|
|
35604
|
+
*/
|
|
35605
|
+
|
|
35606
|
+
|
|
35607
|
+
function delMany(keys) {
|
|
35608
|
+
var customStore = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultGetStore();
|
|
35609
|
+
return customStore('readwrite', function (store) {
|
|
35610
|
+
keys.forEach(function (key) {
|
|
35611
|
+
return store.delete(key);
|
|
35612
|
+
});
|
|
35613
|
+
return promisifyRequest(store.transaction);
|
|
35614
|
+
});
|
|
35615
|
+
}
|
|
35585
35616
|
/**
|
|
35586
35617
|
* Clear all values in the store.
|
|
35587
35618
|
*
|
|
@@ -35662,6 +35693,7 @@ function entries() {
|
|
|
35662
35693
|
exports.clear = clear;
|
|
35663
35694
|
exports.createStore = createStore;
|
|
35664
35695
|
exports.del = del;
|
|
35696
|
+
exports.delMany = delMany;
|
|
35665
35697
|
exports.entries = entries;
|
|
35666
35698
|
exports.get = get;
|
|
35667
35699
|
exports.getMany = getMany;
|
|
@@ -35672,5 +35704,29 @@ exports.setMany = setMany;
|
|
|
35672
35704
|
exports.update = update;
|
|
35673
35705
|
exports.values = values;
|
|
35674
35706
|
|
|
35707
|
+
},{"safari-14-idb-fix":533}],533:[function(_dereq_,module,exports){
|
|
35708
|
+
/**
|
|
35709
|
+
* Work around Safari 14 IndexedDB open bug.
|
|
35710
|
+
*
|
|
35711
|
+
* Safari has a horrible bug where IDB requests can hang while the browser is starting up. https://bugs.webkit.org/show_bug.cgi?id=226547
|
|
35712
|
+
* The only solution is to keep nudging it until it's awake.
|
|
35713
|
+
*/
|
|
35714
|
+
function idbReady() {
|
|
35715
|
+
var isSafari = !navigator.userAgentData &&
|
|
35716
|
+
/Safari\//.test(navigator.userAgent) &&
|
|
35717
|
+
!/Chrom(e|ium)\//.test(navigator.userAgent);
|
|
35718
|
+
// No point putting other browsers or older versions of Safari through this mess.
|
|
35719
|
+
if (!isSafari || !indexedDB.databases)
|
|
35720
|
+
return Promise.resolve();
|
|
35721
|
+
var intervalId;
|
|
35722
|
+
return new Promise(function (resolve) {
|
|
35723
|
+
var tryIdb = function () { return indexedDB.databases().finally(resolve); };
|
|
35724
|
+
intervalId = setInterval(tryIdb, 100);
|
|
35725
|
+
tryIdb();
|
|
35726
|
+
}).finally(function () { return clearInterval(intervalId); });
|
|
35727
|
+
}
|
|
35728
|
+
|
|
35729
|
+
module.exports = idbReady;
|
|
35730
|
+
|
|
35675
35731
|
},{}]},{},[18])(18)
|
|
35676
35732
|
});
|