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.
@@ -187,7 +187,7 @@ var config /*: Config & { [key: string]: mixed }*/ = {
187
187
  SERVER_AUTH_TOKEN: null,
188
188
  LIVEQUERY_SERVER_URL: null,
189
189
  ENCRYPTED_KEY: null,
190
- VERSION: 'js' + "5.0.0-alpha.3",
190
+ VERSION: 'js' + "5.0.0-alpha.4",
191
191
  APPLICATION_ID: null,
192
192
  JAVASCRIPT_KEY: null,
193
193
  MASTER_KEY: null,
@@ -1124,13 +1124,8 @@ var ParseUser = /*#__PURE__*/function (_ParseObject) {
1124
1124
  if (typeof password !== 'string') {
1125
1125
  return _promise.default.reject(new _ParseError.default(_ParseError.default.OTHER_CAUSE, 'Password must be a string.'));
1126
1126
  }
1127
- options = options || {};
1128
- var verificationOption = {};
1129
- if (options.hasOwnProperty('useMasterKey')) {
1130
- verificationOption.useMasterKey = options.useMasterKey;
1131
- }
1132
1127
  var controller = _CoreManager.default.getUserController();
1133
- return controller.verifyPassword(username, password, verificationOption);
1128
+ return controller.verifyPassword(username, password, options || {});
1134
1129
  }
1135
1130
 
1136
1131
  /**
@@ -56,6 +56,7 @@ var uuidv4 = require('./uuid');
56
56
  progress?: any,
57
57
  context?: any,
58
58
  usePost?: boolean,
59
+ ignoreEmailVerification?: boolean,
59
60
  };*/
60
61
  /*:: export type FullOptions = {
61
62
  success?: any,
@@ -271,6 +272,9 @@ var RESTController = {
271
272
  throw new Error('Cannot use the Master Key, it has not been provided.');
272
273
  }
273
274
  }
275
+ if (options.ignoreEmailVerification !== undefined) {
276
+ payload.ignoreEmailVerification = options.ignoreEmailVerification;
277
+ }
274
278
  if (_CoreManager.default.get('FORCE_REVOCABLE_SESSION')) {
275
279
  payload._RevocableSession = '1';
276
280
  }
@@ -183,7 +183,7 @@ const config /*: Config & { [key: string]: mixed }*/ = {
183
183
  SERVER_AUTH_TOKEN: null,
184
184
  LIVEQUERY_SERVER_URL: null,
185
185
  ENCRYPTED_KEY: null,
186
- VERSION: 'js' + "5.0.0-alpha.3",
186
+ VERSION: 'js' + "5.0.0-alpha.4",
187
187
  APPLICATION_ID: null,
188
188
  JAVASCRIPT_KEY: null,
189
189
  MASTER_KEY: null,
@@ -855,13 +855,8 @@ class ParseUser extends _ParseObject.default {
855
855
  if (typeof password !== 'string') {
856
856
  return Promise.reject(new _ParseError.default(_ParseError.default.OTHER_CAUSE, 'Password must be a string.'));
857
857
  }
858
- options = options || {};
859
- const verificationOption = {};
860
- if (options.hasOwnProperty('useMasterKey')) {
861
- verificationOption.useMasterKey = options.useMasterKey;
862
- }
863
858
  const controller = _CoreManager.default.getUserController();
864
- return controller.verifyPassword(username, password, verificationOption);
859
+ return controller.verifyPassword(username, password, options || {});
865
860
  }
866
861
 
867
862
  /**
@@ -23,6 +23,7 @@ const uuidv4 = require('./uuid');
23
23
  progress?: any,
24
24
  context?: any,
25
25
  usePost?: boolean,
26
+ ignoreEmailVerification?: boolean,
26
27
  };*/
27
28
  /*:: export type FullOptions = {
28
29
  success?: any,
@@ -239,6 +240,9 @@ const RESTController = {
239
240
  throw new Error('Cannot use the Master Key, it has not been provided.');
240
241
  }
241
242
  }
243
+ if (options.ignoreEmailVerification !== undefined) {
244
+ payload.ignoreEmailVerification = options.ignoreEmailVerification;
245
+ }
242
246
  if (_CoreManager.default.get('FORCE_REVOCABLE_SESSION')) {
243
247
  payload._RevocableSession = '1';
244
248
  }
@@ -12,7 +12,7 @@ var config = {
12
12
  SERVER_AUTH_TOKEN: null,
13
13
  LIVEQUERY_SERVER_URL: null,
14
14
  ENCRYPTED_KEY: null,
15
- VERSION: 'js' + "5.0.0-alpha.3",
15
+ VERSION: 'js' + "5.0.0-alpha.4",
16
16
  APPLICATION_ID: null,
17
17
  JAVASCRIPT_KEY: null,
18
18
  MASTER_KEY: null,
@@ -634,13 +634,8 @@ var ParseUser = function (_ParseObject) {
634
634
  if (typeof password !== 'string') {
635
635
  return Promise.reject(new _ParseError.default(_ParseError.default.OTHER_CAUSE, 'Password must be a string.'));
636
636
  }
637
- options = options || {};
638
- var verificationOption = {};
639
- if (options.hasOwnProperty('useMasterKey')) {
640
- verificationOption.useMasterKey = options.useMasterKey;
641
- }
642
637
  var controller = _CoreManager.default.getUserController();
643
- return controller.verifyPassword(username, password, verificationOption);
638
+ return controller.verifyPassword(username, password, options || {});
644
639
  }
645
640
  }, {
646
641
  key: "allowCustomUserClass",
@@ -200,6 +200,9 @@ var RESTController = {
200
200
  throw new Error('Cannot use the Master Key, it has not been provided.');
201
201
  }
202
202
  }
203
+ if (options.ignoreEmailVerification !== undefined) {
204
+ payload.ignoreEmailVerification = options.ignoreEmailVerification;
205
+ }
203
206
  if (_CoreManager.default.get('FORCE_REVOCABLE_SESSION')) {
204
207
  payload._RevocableSession = '1';
205
208
  }
@@ -187,7 +187,7 @@ var config /*: Config & { [key: string]: mixed }*/ = {
187
187
  SERVER_AUTH_TOKEN: null,
188
188
  LIVEQUERY_SERVER_URL: null,
189
189
  ENCRYPTED_KEY: null,
190
- VERSION: 'js' + "5.0.0-alpha.3",
190
+ VERSION: 'js' + "5.0.0-alpha.4",
191
191
  APPLICATION_ID: null,
192
192
  JAVASCRIPT_KEY: null,
193
193
  MASTER_KEY: null,
@@ -1124,13 +1124,8 @@ var ParseUser = /*#__PURE__*/function (_ParseObject) {
1124
1124
  if (typeof password !== 'string') {
1125
1125
  return _promise.default.reject(new _ParseError.default(_ParseError.default.OTHER_CAUSE, 'Password must be a string.'));
1126
1126
  }
1127
- options = options || {};
1128
- var verificationOption = {};
1129
- if (options.hasOwnProperty('useMasterKey')) {
1130
- verificationOption.useMasterKey = options.useMasterKey;
1131
- }
1132
1127
  var controller = _CoreManager.default.getUserController();
1133
- return controller.verifyPassword(username, password, verificationOption);
1128
+ return controller.verifyPassword(username, password, options || {});
1134
1129
  }
1135
1130
 
1136
1131
  /**
@@ -56,6 +56,7 @@ var uuidv4 = require('./uuid');
56
56
  progress?: any,
57
57
  context?: any,
58
58
  usePost?: boolean,
59
+ ignoreEmailVerification?: boolean,
59
60
  };*/
60
61
  /*:: export type FullOptions = {
61
62
  success?: any,
@@ -272,6 +273,9 @@ var RESTController = {
272
273
  throw new Error('Cannot use the Master Key, it has not been provided.');
273
274
  }
274
275
  }
276
+ if (options.ignoreEmailVerification !== undefined) {
277
+ payload.ignoreEmailVerification = options.ignoreEmailVerification;
278
+ }
275
279
  if (_CoreManager.default.get('FORCE_REVOCABLE_SESSION')) {
276
280
  payload._RevocableSession = '1';
277
281
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "parse",
3
- "version": "5.0.0-alpha.3",
3
+ "version": "5.0.0-alpha.4",
4
4
  "description": "Parse JavaScript SDK",
5
5
  "homepage": "https://parseplatform.org",
6
6
  "keywords": [
@@ -85,7 +85,7 @@
85
85
  "lint-staged": "13.2.2",
86
86
  "metro-react-native-babel-preset": "0.76.4",
87
87
  "mongodb-runner": "5.4.3",
88
- "parse-server": "7.0.0-alpha.26",
88
+ "parse-server": "7.1.0-alpha.1",
89
89
  "prettier": "3.0.2",
90
90
  "puppeteer": "20.4.0",
91
91
  "regenerator-runtime": "0.13.11",