parse 3.4.3-beta.1 → 3.4.4-alpha.2

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.
@@ -224,7 +224,7 @@ var config
224
224
  SERVER_AUTH_TOKEN: null,
225
225
  LIVEQUERY_SERVER_URL: null,
226
226
  ENCRYPTED_KEY: null,
227
- VERSION: 'js' + "3.4.3-beta.1",
227
+ VERSION: 'js' + "3.4.4-alpha.2",
228
228
  APPLICATION_ID: null,
229
229
  JAVASCRIPT_KEY: null,
230
230
  MASTER_KEY: null,
@@ -657,7 +657,7 @@ var LiveQueryClient = /*#__PURE__*/function (_EventEmitter) {
657
657
 
658
658
  delete data.object.__type;
659
659
 
660
- var parseObject = _ParseObject.default.fromJSON(data.object, override);
660
+ var parseObject = _ParseObject.default.fromJSON(data.object, !(subscription.query && subscription.query._select) ? override : false);
661
661
 
662
662
  if (data.original) {
663
663
  subscription.emit(data.op, parseObject, data.original, response);
@@ -111,7 +111,7 @@ if (typeof XMLHttpRequest !== 'undefined') {
111
111
  uri: string,
112
112
  type: string,
113
113
  };*/
114
- var base64Regex = new RegExp('([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))', 'i');
114
+ var base64Regex = new RegExp('([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/][AQgw]==)|([0-9a-zA-Z+/]{2}[AEIMQUYcgkosw048]=)|([0-9a-zA-Z+/]{4}))', 'i');
115
115
  var dataUriRegex = new RegExp("^data:([a-zA-Z]+\\/[-a-zA-Z0-9+.]+(;[a-z-]+=[a-zA-Z0-9+.-]+)?)?(;base64)?,(".concat(base64Regex.source, ")*$"), 'i');
116
116
 
117
117
  function b64Digit(number
@@ -650,6 +650,10 @@ var ParseUser = /*#__PURE__*/function (_ParseObject) {
650
650
  signupOptions.installationId = options.installationId;
651
651
  }
652
652
 
653
+ if (options.hasOwnProperty('context') && Object.prototype.toString.call(options.context) === '[object Object]') {
654
+ signupOptions.context = options.context;
655
+ }
656
+
653
657
  var controller = _CoreManager.default.getUserController();
654
658
 
655
659
  return controller.signUp(this, attrs, signupOptions);
@@ -217,7 +217,7 @@ const config
217
217
  SERVER_AUTH_TOKEN: null,
218
218
  LIVEQUERY_SERVER_URL: null,
219
219
  ENCRYPTED_KEY: null,
220
- VERSION: 'js' + "3.4.3-beta.1",
220
+ VERSION: 'js' + "3.4.4-alpha.2",
221
221
  APPLICATION_ID: null,
222
222
  JAVASCRIPT_KEY: null,
223
223
  MASTER_KEY: null,
@@ -485,7 +485,7 @@ class LiveQueryClient extends _EventEmitter.default {
485
485
 
486
486
  delete data.object.__type;
487
487
 
488
- const parseObject = _ParseObject.default.fromJSON(data.object, override);
488
+ const parseObject = _ParseObject.default.fromJSON(data.object, !(subscription.query && subscription.query._select) ? override : false);
489
489
 
490
490
  if (data.original) {
491
491
  subscription.emit(data.op, parseObject, data.original, response);
@@ -84,7 +84,7 @@ if (typeof XMLHttpRequest !== 'undefined') {
84
84
  uri: string,
85
85
  type: string,
86
86
  };*/
87
- const base64Regex = new RegExp('([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))', 'i');
87
+ const base64Regex = new RegExp('([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/][AQgw]==)|([0-9a-zA-Z+/]{2}[AEIMQUYcgkosw048]=)|([0-9a-zA-Z+/]{4}))', 'i');
88
88
  const dataUriRegex = new RegExp(`^data:([a-zA-Z]+\\/[-a-zA-Z0-9+.]+(;[a-z-]+=[a-zA-Z0-9+.-]+)?)?(;base64)?,(${base64Regex.source})*$`, 'i');
89
89
 
90
90
  function b64Digit(number
@@ -548,6 +548,10 @@ class ParseUser extends _ParseObject.default {
548
548
  signupOptions.installationId = options.installationId;
549
549
  }
550
550
 
551
+ if (options.hasOwnProperty('context') && Object.prototype.toString.call(options.context) === '[object Object]') {
552
+ signupOptions.context = options.context;
553
+ }
554
+
551
555
  const controller = _CoreManager.default.getUserController();
552
556
 
553
557
  return controller.signUp(this, attrs, signupOptions);
@@ -8,7 +8,7 @@ var config = {
8
8
  SERVER_AUTH_TOKEN: null,
9
9
  LIVEQUERY_SERVER_URL: null,
10
10
  ENCRYPTED_KEY: null,
11
- VERSION: 'js' + "3.4.3-beta.1",
11
+ VERSION: 'js' + "3.4.4-alpha.2",
12
12
  APPLICATION_ID: null,
13
13
  JAVASCRIPT_KEY: null,
14
14
  MASTER_KEY: null,
@@ -443,7 +443,7 @@ var LiveQueryClient = function (_EventEmitter) {
443
443
 
444
444
  delete data.object.__type;
445
445
 
446
- var parseObject = _ParseObject.default.fromJSON(data.object, override);
446
+ var parseObject = _ParseObject.default.fromJSON(data.object, !(subscription.query && subscription.query._select) ? override : false);
447
447
 
448
448
  if (data.original) {
449
449
  subscription.emit(data.op, parseObject, data.original, response);
@@ -51,7 +51,7 @@ if (typeof XMLHttpRequest !== 'undefined') {
51
51
  XHR = XMLHttpRequest;
52
52
  }
53
53
 
54
- var base64Regex = new RegExp('([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))', 'i');
54
+ var base64Regex = new RegExp('([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/][AQgw]==)|([0-9a-zA-Z+/]{2}[AEIMQUYcgkosw048]=)|([0-9a-zA-Z+/]{4}))', 'i');
55
55
  var dataUriRegex = new RegExp("^data:([a-zA-Z]+\\/[-a-zA-Z0-9+.]+(;[a-z-]+=[a-zA-Z0-9+.-]+)?)?(;base64)?,(" + base64Regex.source + ")*$", 'i');
56
56
 
57
57
  function b64Digit(number) {
@@ -399,6 +399,10 @@ var ParseUser = function (_ParseObject) {
399
399
  signupOptions.installationId = options.installationId;
400
400
  }
401
401
 
402
+ if (options.hasOwnProperty('context') && Object.prototype.toString.call(options.context) === '[object Object]') {
403
+ signupOptions.context = options.context;
404
+ }
405
+
402
406
  var controller = _CoreManager.default.getUserController();
403
407
 
404
408
  return controller.signUp(this, attrs, signupOptions);
@@ -224,7 +224,7 @@ var config
224
224
  SERVER_AUTH_TOKEN: null,
225
225
  LIVEQUERY_SERVER_URL: null,
226
226
  ENCRYPTED_KEY: null,
227
- VERSION: 'js' + "3.4.3-beta.1",
227
+ VERSION: 'js' + "3.4.4-alpha.2",
228
228
  APPLICATION_ID: null,
229
229
  JAVASCRIPT_KEY: null,
230
230
  MASTER_KEY: null,
@@ -657,7 +657,7 @@ var LiveQueryClient = /*#__PURE__*/function (_EventEmitter) {
657
657
 
658
658
  delete data.object.__type;
659
659
 
660
- var parseObject = _ParseObject.default.fromJSON(data.object, override);
660
+ var parseObject = _ParseObject.default.fromJSON(data.object, !(subscription.query && subscription.query._select) ? override : false);
661
661
 
662
662
  if (data.original) {
663
663
  subscription.emit(data.op, parseObject, data.original, response);
@@ -113,7 +113,7 @@ XHR = require('./Xhr.weapp');
113
113
  type: string,
114
114
  };*/
115
115
 
116
- var base64Regex = new RegExp('([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))', 'i');
116
+ var base64Regex = new RegExp('([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/][AQgw]==)|([0-9a-zA-Z+/]{2}[AEIMQUYcgkosw048]=)|([0-9a-zA-Z+/]{4}))', 'i');
117
117
  var dataUriRegex = new RegExp("^data:([a-zA-Z]+\\/[-a-zA-Z0-9+.]+(;[a-z-]+=[a-zA-Z0-9+.-]+)?)?(;base64)?,(".concat(base64Regex.source, ")*$"), 'i');
118
118
 
119
119
  function b64Digit(number
@@ -650,6 +650,10 @@ var ParseUser = /*#__PURE__*/function (_ParseObject) {
650
650
  signupOptions.installationId = options.installationId;
651
651
  }
652
652
 
653
+ if (options.hasOwnProperty('context') && Object.prototype.toString.call(options.context) === '[object Object]') {
654
+ signupOptions.context = options.context;
655
+ }
656
+
653
657
  var controller = _CoreManager.default.getUserController();
654
658
 
655
659
  return controller.signUp(this, attrs, signupOptions);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "parse",
3
- "version": "3.4.3-beta.1",
3
+ "version": "3.4.4-alpha.2",
4
4
  "description": "The Parse JavaScript SDK",
5
5
  "homepage": "https://parseplatform.org/",
6
6
  "keywords": [
@@ -85,7 +85,7 @@
85
85
  "parse-server": "git+https://github.com/parse-community/parse-server#alpha",
86
86
  "prettier": "2.2.1",
87
87
  "regenerator-runtime": "0.13.5",
88
- "semantic-release": "17.4.6",
88
+ "semantic-release": "19.0.3",
89
89
  "vinyl-source-stream": "2.0.0"
90
90
  },
91
91
  "optionalDependencies": {