parse 6.0.0-alpha.2 → 6.1.0-alpha.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 -2
- package/dist/parse.js +14 -25
- package/dist/parse.min.js +2 -2
- package/dist/parse.weapp.js +14 -25
- package/dist/parse.weapp.min.js +2 -2
- package/lib/browser/CoreManager.js +1 -1
- package/lib/browser/Parse.js +10 -21
- package/lib/browser/ParseObject.js +2 -2
- package/lib/node/CoreManager.js +1 -1
- package/lib/node/Parse.js +10 -19
- package/lib/node/ParseObject.js +2 -2
- package/lib/react-native/CoreManager.js +1 -1
- package/lib/react-native/Parse.js +3 -5
- package/lib/react-native/ParseObject.js +2 -2
- package/lib/weapp/CoreManager.js +1 -1
- package/lib/weapp/Parse.js +10 -21
- package/lib/weapp/ParseObject.js +2 -2
- package/package.json +15 -15
package/dist/parse.weapp.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Parse JavaScript SDK v6.
|
|
2
|
+
* Parse JavaScript SDK v6.1.0-alpha.1
|
|
3
3
|
*
|
|
4
4
|
* The source tree of this library can be found at
|
|
5
5
|
* https://github.com/ParsePlatform/Parse-SDK-JS
|
|
@@ -354,7 +354,7 @@ const config = {
|
|
|
354
354
|
SERVER_AUTH_TOKEN: null,
|
|
355
355
|
LIVEQUERY_SERVER_URL: null,
|
|
356
356
|
ENCRYPTED_KEY: null,
|
|
357
|
-
VERSION: 'js' + "6.
|
|
357
|
+
VERSION: 'js' + "6.1.0-alpha.1",
|
|
358
358
|
APPLICATION_ID: null,
|
|
359
359
|
JAVASCRIPT_KEY: null,
|
|
360
360
|
MASTER_KEY: null,
|
|
@@ -3322,8 +3322,8 @@ _Object$defineProperty(exports, "__esModule", {
|
|
|
3322
3322
|
});
|
|
3323
3323
|
exports.default = void 0;
|
|
3324
3324
|
var _promise = _interopRequireDefault(_dereq_("@babel/runtime-corejs3/core-js-stable/promise"));
|
|
3325
|
-
var
|
|
3326
|
-
var
|
|
3325
|
+
var _decode = _interopRequireDefault(_dereq_("./decode"));
|
|
3326
|
+
var _encode = _interopRequireDefault(_dereq_("./encode"));
|
|
3327
3327
|
var _CryptoController = _interopRequireDefault(_dereq_("./CryptoController"));
|
|
3328
3328
|
var _EventuallyQueue = _interopRequireDefault(_dereq_("./EventuallyQueue"));
|
|
3329
3329
|
var _IndexedDBStorageController = _interopRequireDefault(_dereq_("./IndexedDBStorageController"));
|
|
@@ -3384,20 +3384,11 @@ function _interopRequireWildcard(e, r) {
|
|
|
3384
3384
|
}
|
|
3385
3385
|
return n.default = e, t && t.set(e, n), n;
|
|
3386
3386
|
}
|
|
3387
|
-
/**
|
|
3388
|
-
* Contains all Parse API classes and functions.
|
|
3389
|
-
*
|
|
3390
|
-
* @static
|
|
3391
|
-
* @global
|
|
3392
|
-
* @class
|
|
3393
|
-
* @hideconstructor
|
|
3394
|
-
*/
|
|
3395
|
-
|
|
3396
3387
|
const Parse = {
|
|
3397
3388
|
ACL: _ParseACL.default,
|
|
3398
|
-
Analytics
|
|
3389
|
+
Analytics,
|
|
3399
3390
|
AnonymousUtils: _AnonymousUtils.default,
|
|
3400
|
-
Cloud
|
|
3391
|
+
Cloud,
|
|
3401
3392
|
CLP: _ParseCLP.default,
|
|
3402
3393
|
CoreManager: _CoreManager.default,
|
|
3403
3394
|
Config: _ParseConfig.default,
|
|
@@ -3418,7 +3409,7 @@ const Parse = {
|
|
|
3418
3409
|
AddUnique: ParseOp.AddUniqueOp,
|
|
3419
3410
|
Relation: ParseOp.RelationOp
|
|
3420
3411
|
},
|
|
3421
|
-
Push
|
|
3412
|
+
Push,
|
|
3422
3413
|
Query: _ParseQuery.default,
|
|
3423
3414
|
Relation: _ParseRelation.default,
|
|
3424
3415
|
Role: _ParseRole.default,
|
|
@@ -3629,10 +3620,10 @@ const Parse = {
|
|
|
3629
3620
|
},
|
|
3630
3621
|
// We attempt to match the signatures of the legacy versions of these methods
|
|
3631
3622
|
_decode(_, value) {
|
|
3632
|
-
return (0,
|
|
3623
|
+
return (0, _decode.default)(value);
|
|
3633
3624
|
},
|
|
3634
3625
|
_encode(value, _, disallowObjects) {
|
|
3635
|
-
return (0,
|
|
3626
|
+
return (0, _encode.default)(value, disallowObjects);
|
|
3636
3627
|
},
|
|
3637
3628
|
_getInstallationId() {
|
|
3638
3629
|
return _CoreManager.default.getInstallationController().currentInstallationId();
|
|
@@ -3645,17 +3636,15 @@ const Parse = {
|
|
|
3645
3636
|
* @param [ms] Milliseconds to ping the server. Default 2000ms
|
|
3646
3637
|
* @static
|
|
3647
3638
|
*/
|
|
3648
|
-
enableLocalDatastore() {
|
|
3649
|
-
let polling = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
|
|
3650
|
-
let ms = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2000;
|
|
3639
|
+
enableLocalDatastore(polling, ms) {
|
|
3651
3640
|
if (!this.applicationId) {
|
|
3652
3641
|
console.log("'enableLocalDataStore' must be called after 'initialize'");
|
|
3653
3642
|
return;
|
|
3654
3643
|
}
|
|
3655
3644
|
if (!this.LocalDatastore.isEnabled) {
|
|
3656
3645
|
this.LocalDatastore.isEnabled = true;
|
|
3657
|
-
if (polling) {
|
|
3658
|
-
_CoreManager.default.getEventuallyQueue().poll(ms);
|
|
3646
|
+
if (polling || typeof polling === 'undefined') {
|
|
3647
|
+
_CoreManager.default.getEventuallyQueue().poll(ms || 2000);
|
|
3659
3648
|
}
|
|
3660
3649
|
}
|
|
3661
3650
|
},
|
|
@@ -7676,8 +7665,8 @@ class ParseObject {
|
|
|
7676
7665
|
return new _ParseError.default(_ParseError.default.OTHER_CAUSE, 'ACL must be a Parse ACL.');
|
|
7677
7666
|
}
|
|
7678
7667
|
for (const key in attrs) {
|
|
7679
|
-
if (!/^[A-Za-
|
|
7680
|
-
return new _ParseError.default(_ParseError.default.INVALID_KEY_NAME, `Invalid key name:
|
|
7668
|
+
if (!/^[A-Za-z_][0-9A-Za-z_.]*$/.test(key)) {
|
|
7669
|
+
return new _ParseError.default(_ParseError.default.INVALID_KEY_NAME, `Invalid key name: ${key}`);
|
|
7681
7670
|
}
|
|
7682
7671
|
}
|
|
7683
7672
|
return false;
|