parse 4.2.0-alpha.7 → 4.2.0-alpha.8

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' + "4.2.0-alpha.7",
190
+ VERSION: 'js' + "4.2.0-alpha.8",
191
191
  APPLICATION_ID: null,
192
192
  JAVASCRIPT_KEY: null,
193
193
  MASTER_KEY: null,
@@ -563,6 +563,9 @@ var ParseUser = /*#__PURE__*/function (_ParseObject) {
563
563
  if (options.hasOwnProperty('usePost')) {
564
564
  loginOptions.usePost = options.usePost;
565
565
  }
566
+ if (options.hasOwnProperty('context') && Object.prototype.toString.call(options.context) === '[object Object]') {
567
+ loginOptions.context = options.context;
568
+ }
566
569
  var controller = _CoreManager.default.getUserController();
567
570
  return controller.logIn(this, loginOptions);
568
571
  }
@@ -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' + "4.2.0-alpha.7",
186
+ VERSION: 'js' + "4.2.0-alpha.8",
187
187
  APPLICATION_ID: null,
188
188
  JAVASCRIPT_KEY: null,
189
189
  MASTER_KEY: null,
@@ -454,6 +454,9 @@ class ParseUser extends _ParseObject.default {
454
454
  if (options.hasOwnProperty('usePost')) {
455
455
  loginOptions.usePost = options.usePost;
456
456
  }
457
+ if (options.hasOwnProperty('context') && Object.prototype.toString.call(options.context) === '[object Object]') {
458
+ loginOptions.context = options.context;
459
+ }
457
460
  const controller = _CoreManager.default.getUserController();
458
461
  return controller.logIn(this, loginOptions);
459
462
  }
@@ -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' + "4.2.0-alpha.7",
15
+ VERSION: 'js' + "4.2.0-alpha.8",
16
16
  APPLICATION_ID: null,
17
17
  JAVASCRIPT_KEY: null,
18
18
  MASTER_KEY: null,
@@ -358,6 +358,9 @@ var ParseUser = function (_ParseObject) {
358
358
  if (options.hasOwnProperty('usePost')) {
359
359
  loginOptions.usePost = options.usePost;
360
360
  }
361
+ if (options.hasOwnProperty('context') && Object.prototype.toString.call(options.context) === '[object Object]') {
362
+ loginOptions.context = options.context;
363
+ }
361
364
  var controller = _CoreManager.default.getUserController();
362
365
  return controller.logIn(this, loginOptions);
363
366
  }
@@ -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' + "4.2.0-alpha.7",
190
+ VERSION: 'js' + "4.2.0-alpha.8",
191
191
  APPLICATION_ID: null,
192
192
  JAVASCRIPT_KEY: null,
193
193
  MASTER_KEY: null,
@@ -563,6 +563,9 @@ var ParseUser = /*#__PURE__*/function (_ParseObject) {
563
563
  if (options.hasOwnProperty('usePost')) {
564
564
  loginOptions.usePost = options.usePost;
565
565
  }
566
+ if (options.hasOwnProperty('context') && Object.prototype.toString.call(options.context) === '[object Object]') {
567
+ loginOptions.context = options.context;
568
+ }
566
569
  var controller = _CoreManager.default.getUserController();
567
570
  return controller.logIn(this, loginOptions);
568
571
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "parse",
3
- "version": "4.2.0-alpha.7",
3
+ "version": "4.2.0-alpha.8",
4
4
  "description": "Parse JavaScript SDK",
5
5
  "homepage": "https://parseplatform.org",
6
6
  "keywords": [