parse 5.0.0-alpha.3 → 5.0.0-alpha.4

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Parse JavaScript SDK v5.0.0-alpha.3
2
+ * Parse JavaScript SDK v5.0.0-alpha.4
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.0-alpha.3",
560
+ VERSION: 'js' + "5.0.0-alpha.4",
561
561
  APPLICATION_ID: null,
562
562
  JAVASCRIPT_KEY: null,
563
563
  MASTER_KEY: null,
@@ -16172,13 +16172,8 @@ var ParseUser = /*#__PURE__*/function (_ParseObject) {
16172
16172
  if (typeof password !== 'string') {
16173
16173
  return _promise.default.reject(new _ParseError.default(_ParseError.default.OTHER_CAUSE, 'Password must be a string.'));
16174
16174
  }
16175
- options = options || {};
16176
- var verificationOption = {};
16177
- if (options.hasOwnProperty('useMasterKey')) {
16178
- verificationOption.useMasterKey = options.useMasterKey;
16179
- }
16180
16175
  var controller = _CoreManager.default.getUserController();
16181
- return controller.verifyPassword(username, password, verificationOption);
16176
+ return controller.verifyPassword(username, password, options || {});
16182
16177
  }
16183
16178
 
16184
16179
  /**
@@ -16783,6 +16778,7 @@ var uuidv4 = _dereq_('./uuid');
16783
16778
  progress?: any,
16784
16779
  context?: any,
16785
16780
  usePost?: boolean,
16781
+ ignoreEmailVerification?: boolean,
16786
16782
  };*/
16787
16783
  /*:: export type FullOptions = {
16788
16784
  success?: any,
@@ -16999,6 +16995,9 @@ var RESTController = {
16999
16995
  throw new Error('Cannot use the Master Key, it has not been provided.');
17000
16996
  }
17001
16997
  }
16998
+ if (options.ignoreEmailVerification !== undefined) {
16999
+ payload.ignoreEmailVerification = options.ignoreEmailVerification;
17000
+ }
17002
17001
  if (_CoreManager.default.get('FORCE_REVOCABLE_SESSION')) {
17003
17002
  payload._RevocableSession = '1';
17004
17003
  }