parse 5.0.0 → 5.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/dist/parse.js +15 -13
- package/dist/parse.min.js +2 -2
- package/dist/parse.weapp.js +15 -13
- package/dist/parse.weapp.min.js +2 -2
- package/lib/browser/CoreManager.js +1 -1
- package/lib/browser/ParseObject.js +8 -5
- package/lib/browser/ParseUser.js +1 -6
- package/lib/browser/RESTController.js +4 -0
- package/lib/node/CoreManager.js +1 -1
- package/lib/node/ParseObject.js +8 -5
- package/lib/node/ParseUser.js +1 -6
- package/lib/node/RESTController.js +4 -0
- package/lib/react-native/CoreManager.js +1 -1
- package/lib/react-native/ParseObject.js +8 -5
- package/lib/react-native/ParseUser.js +1 -6
- package/lib/react-native/RESTController.js +3 -0
- package/lib/weapp/CoreManager.js +1 -1
- package/lib/weapp/ParseObject.js +8 -5
- package/lib/weapp/ParseUser.js +1 -6
- package/lib/weapp/RESTController.js +4 -0
- package/package.json +2 -2
package/dist/parse.weapp.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Parse JavaScript SDK v5.0.
|
|
2
|
+
* Parse JavaScript SDK v5.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
|
|
@@ -557,7 +557,7 @@ var config /*: Config & { [key: string]: mixed }*/ = {
|
|
|
557
557
|
SERVER_AUTH_TOKEN: null,
|
|
558
558
|
LIVEQUERY_SERVER_URL: null,
|
|
559
559
|
ENCRYPTED_KEY: null,
|
|
560
|
-
VERSION: 'js' + "5.0.
|
|
560
|
+
VERSION: 'js' + "5.1.0-alpha.1",
|
|
561
561
|
APPLICATION_ID: null,
|
|
562
562
|
JAVASCRIPT_KEY: null,
|
|
563
563
|
MASTER_KEY: null,
|
|
@@ -9339,14 +9339,17 @@ var ParseObject = /*#__PURE__*/function () {
|
|
|
9339
9339
|
attrs[arg1] = arg2;
|
|
9340
9340
|
options = arg3;
|
|
9341
9341
|
}
|
|
9342
|
+
options = options || {};
|
|
9342
9343
|
if (attrs) {
|
|
9343
|
-
var
|
|
9344
|
-
|
|
9345
|
-
|
|
9344
|
+
var validationError;
|
|
9345
|
+
options.error = function (_, validation) {
|
|
9346
|
+
validationError = validation;
|
|
9347
|
+
};
|
|
9348
|
+
var success = this.set(attrs, options);
|
|
9349
|
+
if (!success) {
|
|
9350
|
+
return _promise.default.reject(validationError);
|
|
9346
9351
|
}
|
|
9347
|
-
this.set(attrs, options);
|
|
9348
9352
|
}
|
|
9349
|
-
options = options || {};
|
|
9350
9353
|
var saveOptions = {};
|
|
9351
9354
|
if (options.hasOwnProperty('useMasterKey')) {
|
|
9352
9355
|
saveOptions.useMasterKey = !!options.useMasterKey;
|
|
@@ -16172,13 +16175,8 @@ var ParseUser = /*#__PURE__*/function (_ParseObject) {
|
|
|
16172
16175
|
if (typeof password !== 'string') {
|
|
16173
16176
|
return _promise.default.reject(new _ParseError.default(_ParseError.default.OTHER_CAUSE, 'Password must be a string.'));
|
|
16174
16177
|
}
|
|
16175
|
-
options = options || {};
|
|
16176
|
-
var verificationOption = {};
|
|
16177
|
-
if (options.hasOwnProperty('useMasterKey')) {
|
|
16178
|
-
verificationOption.useMasterKey = options.useMasterKey;
|
|
16179
|
-
}
|
|
16180
16178
|
var controller = _CoreManager.default.getUserController();
|
|
16181
|
-
return controller.verifyPassword(username, password,
|
|
16179
|
+
return controller.verifyPassword(username, password, options || {});
|
|
16182
16180
|
}
|
|
16183
16181
|
|
|
16184
16182
|
/**
|
|
@@ -16783,6 +16781,7 @@ var uuidv4 = _dereq_('./uuid');
|
|
|
16783
16781
|
progress?: any,
|
|
16784
16782
|
context?: any,
|
|
16785
16783
|
usePost?: boolean,
|
|
16784
|
+
ignoreEmailVerification?: boolean,
|
|
16786
16785
|
};*/
|
|
16787
16786
|
/*:: export type FullOptions = {
|
|
16788
16787
|
success?: any,
|
|
@@ -16999,6 +16998,9 @@ var RESTController = {
|
|
|
16999
16998
|
throw new Error('Cannot use the Master Key, it has not been provided.');
|
|
17000
16999
|
}
|
|
17001
17000
|
}
|
|
17001
|
+
if (options.ignoreEmailVerification !== undefined) {
|
|
17002
|
+
payload.ignoreEmailVerification = options.ignoreEmailVerification;
|
|
17003
|
+
}
|
|
17002
17004
|
if (_CoreManager.default.get('FORCE_REVOCABLE_SESSION')) {
|
|
17003
17005
|
payload._RevocableSession = '1';
|
|
17004
17006
|
}
|