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/README.md
CHANGED
|
@@ -98,14 +98,6 @@ We have curated a [migration guide][migration] that should help you migrate your
|
|
|
98
98
|
|
|
99
99
|
Parse Server supports many [3rd Party Authenications][3rd-party-auth]. It is possible to [linkWith][link-with] any 3rd Party Authentication by creating a [custom authentication module][custom-auth-module].
|
|
100
100
|
|
|
101
|
-
## Want to ride the bleeding edge?
|
|
102
|
-
|
|
103
|
-
We recommend using the most recent tagged build published to npm for production. However, you can test not-yet-released versions of the Parse-SDK-JS by referencing specific branches in your `package.json`. For example, to use the master branch:
|
|
104
|
-
|
|
105
|
-
```
|
|
106
|
-
npm install parse-community/Parse-SDK-JS.git#master
|
|
107
|
-
```
|
|
108
|
-
|
|
109
101
|
### Experimenting
|
|
110
102
|
|
|
111
103
|
You can also use your own forks, and work in progress branches by specifying them:
|
package/dist/parse.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,
|
|
@@ -23520,7 +23520,7 @@ function traverse(obj
|
|
|
23520
23520
|
var uuid = null;
|
|
23521
23521
|
uuid = _dereq_('uuid/v4');
|
|
23522
23522
|
module.exports = uuid;
|
|
23523
|
-
},{"uuid/v4":
|
|
23523
|
+
},{"uuid/v4":534}],55:[function(_dereq_,module,exports){
|
|
23524
23524
|
module.exports = _dereq_("core-js-pure/stable/array/from");
|
|
23525
23525
|
},{"core-js-pure/stable/array/from":470}],56:[function(_dereq_,module,exports){
|
|
23526
23526
|
module.exports = _dereq_("core-js-pure/stable/array/is-array");
|
|
@@ -35252,10 +35252,22 @@ function functionBindPolyfill(context) {
|
|
|
35252
35252
|
},{}],530:[function(_dereq_,module,exports){
|
|
35253
35253
|
'use strict';
|
|
35254
35254
|
|
|
35255
|
+
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); }
|
|
35256
|
+
|
|
35255
35257
|
Object.defineProperty(exports, '__esModule', {
|
|
35256
35258
|
value: true
|
|
35257
35259
|
});
|
|
35258
35260
|
|
|
35261
|
+
var safariFix = _dereq_('safari-14-idb-fix');
|
|
35262
|
+
|
|
35263
|
+
function _interopDefaultLegacy(e) {
|
|
35264
|
+
return e && _typeof(e) === 'object' && 'default' in e ? e : {
|
|
35265
|
+
'default': e
|
|
35266
|
+
};
|
|
35267
|
+
}
|
|
35268
|
+
|
|
35269
|
+
var safariFix__default = /*#__PURE__*/_interopDefaultLegacy(safariFix);
|
|
35270
|
+
|
|
35259
35271
|
function promisifyRequest(request) {
|
|
35260
35272
|
return new Promise(function (resolve, reject) {
|
|
35261
35273
|
// @ts-ignore - file size hacks
|
|
@@ -35271,13 +35283,15 @@ function promisifyRequest(request) {
|
|
|
35271
35283
|
}
|
|
35272
35284
|
|
|
35273
35285
|
function createStore(dbName, storeName) {
|
|
35274
|
-
var
|
|
35286
|
+
var dbp = safariFix__default['default']().then(function () {
|
|
35287
|
+
var request = indexedDB.open(dbName);
|
|
35275
35288
|
|
|
35276
|
-
|
|
35277
|
-
|
|
35278
|
-
|
|
35289
|
+
request.onupgradeneeded = function () {
|
|
35290
|
+
return request.result.createObjectStore(storeName);
|
|
35291
|
+
};
|
|
35279
35292
|
|
|
35280
|
-
|
|
35293
|
+
return promisifyRequest(request);
|
|
35294
|
+
});
|
|
35281
35295
|
return function (txMode, callback) {
|
|
35282
35296
|
return dbp.then(function (db) {
|
|
35283
35297
|
return callback(db.transaction(storeName, txMode).objectStore(storeName));
|
|
@@ -35401,6 +35415,23 @@ function del(key) {
|
|
|
35401
35415
|
return promisifyRequest(store.transaction);
|
|
35402
35416
|
});
|
|
35403
35417
|
}
|
|
35418
|
+
/**
|
|
35419
|
+
* Delete multiple keys at once.
|
|
35420
|
+
*
|
|
35421
|
+
* @param keys List of keys to delete.
|
|
35422
|
+
* @param customStore Method to get a custom store. Use with caution (see the docs).
|
|
35423
|
+
*/
|
|
35424
|
+
|
|
35425
|
+
|
|
35426
|
+
function delMany(keys) {
|
|
35427
|
+
var customStore = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultGetStore();
|
|
35428
|
+
return customStore('readwrite', function (store) {
|
|
35429
|
+
keys.forEach(function (key) {
|
|
35430
|
+
return store.delete(key);
|
|
35431
|
+
});
|
|
35432
|
+
return promisifyRequest(store.transaction);
|
|
35433
|
+
});
|
|
35434
|
+
}
|
|
35404
35435
|
/**
|
|
35405
35436
|
* Clear all values in the store.
|
|
35406
35437
|
*
|
|
@@ -35481,6 +35512,7 @@ function entries() {
|
|
|
35481
35512
|
exports.clear = clear;
|
|
35482
35513
|
exports.createStore = createStore;
|
|
35483
35514
|
exports.del = del;
|
|
35515
|
+
exports.delMany = delMany;
|
|
35484
35516
|
exports.entries = entries;
|
|
35485
35517
|
exports.get = get;
|
|
35486
35518
|
exports.getMany = getMany;
|
|
@@ -35491,7 +35523,31 @@ exports.setMany = setMany;
|
|
|
35491
35523
|
exports.update = update;
|
|
35492
35524
|
exports.values = values;
|
|
35493
35525
|
|
|
35494
|
-
},{}],531:[function(_dereq_,module,exports){
|
|
35526
|
+
},{"safari-14-idb-fix":531}],531:[function(_dereq_,module,exports){
|
|
35527
|
+
/**
|
|
35528
|
+
* Work around Safari 14 IndexedDB open bug.
|
|
35529
|
+
*
|
|
35530
|
+
* 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
|
|
35531
|
+
* The only solution is to keep nudging it until it's awake.
|
|
35532
|
+
*/
|
|
35533
|
+
function idbReady() {
|
|
35534
|
+
var isSafari = !navigator.userAgentData &&
|
|
35535
|
+
/Safari\//.test(navigator.userAgent) &&
|
|
35536
|
+
!/Chrom(e|ium)\//.test(navigator.userAgent);
|
|
35537
|
+
// No point putting other browsers or older versions of Safari through this mess.
|
|
35538
|
+
if (!isSafari || !indexedDB.databases)
|
|
35539
|
+
return Promise.resolve();
|
|
35540
|
+
var intervalId;
|
|
35541
|
+
return new Promise(function (resolve) {
|
|
35542
|
+
var tryIdb = function () { return indexedDB.databases().finally(resolve); };
|
|
35543
|
+
intervalId = setInterval(tryIdb, 100);
|
|
35544
|
+
tryIdb();
|
|
35545
|
+
}).finally(function () { return clearInterval(intervalId); });
|
|
35546
|
+
}
|
|
35547
|
+
|
|
35548
|
+
module.exports = idbReady;
|
|
35549
|
+
|
|
35550
|
+
},{}],532:[function(_dereq_,module,exports){
|
|
35495
35551
|
/**
|
|
35496
35552
|
* Convert array of 16 byte values to UUID string format of the form:
|
|
35497
35553
|
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
|
|
@@ -35519,7 +35575,7 @@ function bytesToUuid(buf, offset) {
|
|
|
35519
35575
|
|
|
35520
35576
|
module.exports = bytesToUuid;
|
|
35521
35577
|
|
|
35522
|
-
},{}],
|
|
35578
|
+
},{}],533:[function(_dereq_,module,exports){
|
|
35523
35579
|
// Unique ID creation requires a high quality random # generator. In the
|
|
35524
35580
|
// browser this is a little complicated due to unknown quality of Math.random()
|
|
35525
35581
|
// and inconsistent support for the `crypto` API. We do the best we can via
|
|
@@ -35555,7 +35611,7 @@ if (getRandomValues) {
|
|
|
35555
35611
|
};
|
|
35556
35612
|
}
|
|
35557
35613
|
|
|
35558
|
-
},{}],
|
|
35614
|
+
},{}],534:[function(_dereq_,module,exports){
|
|
35559
35615
|
var rng = _dereq_('./lib/rng');
|
|
35560
35616
|
var bytesToUuid = _dereq_('./lib/bytesToUuid');
|
|
35561
35617
|
|
|
@@ -35586,5 +35642,5 @@ function v4(options, buf, offset) {
|
|
|
35586
35642
|
|
|
35587
35643
|
module.exports = v4;
|
|
35588
35644
|
|
|
35589
|
-
},{"./lib/bytesToUuid":
|
|
35645
|
+
},{"./lib/bytesToUuid":532,"./lib/rng":533}]},{},[18])(18)
|
|
35590
35646
|
});
|