parse 3.4.4 → 3.5.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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Parse JavaScript SDK v3.4.4
2
+ * Parse JavaScript SDK v3.5.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
@@ -699,7 +699,7 @@ var config
699
699
  SERVER_AUTH_TOKEN: null,
700
700
  LIVEQUERY_SERVER_URL: null,
701
701
  ENCRYPTED_KEY: null,
702
- VERSION: 'js' + "3.4.4",
702
+ VERSION: 'js' + "3.5.0-alpha.1",
703
703
  APPLICATION_ID: null,
704
704
  JAVASCRIPT_KEY: null,
705
705
  MASTER_KEY: null,
@@ -8471,7 +8471,7 @@ XHR = _dereq_('./Xhr.weapp');
8471
8471
  type: string,
8472
8472
  };*/
8473
8473
 
8474
- var base64Regex = new RegExp('([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))', 'i');
8474
+ 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');
8475
8475
  var dataUriRegex = new RegExp("^data:([a-zA-Z]+\\/[-a-zA-Z0-9+.]+(;[a-z-]+=[a-zA-Z0-9+.-]+)?)?(;base64)?,(".concat(base64Regex.source, ")*$"), 'i');
8476
8476
 
8477
8477
  function b64Digit(number
@@ -15964,6 +15964,10 @@ var ParseQuery = /*#__PURE__*/function () {
15964
15964
  findOptions.context = options.context;
15965
15965
  }
15966
15966
 
15967
+ if (options.hasOwnProperty('json')) {
15968
+ findOptions.json = options.json;
15969
+ }
15970
+
15967
15971
  var finished = false;
15968
15972
  var previousResults = [];
15969
15973
  return (0, _promiseUtils.continueWhile)(function () {
@@ -16033,6 +16037,7 @@ var ParseQuery = /*#__PURE__*/function () {
16033
16037
  * be used for this request.
16034
16038
  * <li>sessionToken: A valid session token, used for making a request on
16035
16039
  * behalf of a specific user.
16040
+ * <li>json: Return raw json without converting to Parse.Object
16036
16041
  * </ul>
16037
16042
  * @returns {Promise} A promise that will be fulfilled once the
16038
16043
  * iteration has completed.
@@ -19777,6 +19782,10 @@ var ParseUser = /*#__PURE__*/function (_ParseObject) {
19777
19782
  signupOptions.installationId = options.installationId;
19778
19783
  }
19779
19784
 
19785
+ if (options.hasOwnProperty('context') && Object.prototype.toString.call(options.context) === '[object Object]') {
19786
+ signupOptions.context = options.context;
19787
+ }
19788
+
19780
19789
  var controller = _CoreManager.default.getUserController();
19781
19790
 
19782
19791
  return controller.signUp(this, attrs, signupOptions);