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.
package/dist/parse.js CHANGED
@@ -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,
@@ -8477,7 +8477,7 @@ if (typeof XMLHttpRequest !== 'undefined') {
8477
8477
  uri: string,
8478
8478
  type: string,
8479
8479
  };*/
8480
- var base64Regex = new RegExp('([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))', 'i');
8480
+ 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');
8481
8481
  var dataUriRegex = new RegExp("^data:([a-zA-Z]+\\/[-a-zA-Z0-9+.]+(;[a-z-]+=[a-zA-Z0-9+.-]+)?)?(;base64)?,(".concat(base64Regex.source, ")*$"), 'i');
8482
8482
 
8483
8483
  function b64Digit(number
@@ -15970,6 +15970,10 @@ var ParseQuery = /*#__PURE__*/function () {
15970
15970
  findOptions.context = options.context;
15971
15971
  }
15972
15972
 
15973
+ if (options.hasOwnProperty('json')) {
15974
+ findOptions.json = options.json;
15975
+ }
15976
+
15973
15977
  var finished = false;
15974
15978
  var previousResults = [];
15975
15979
  return (0, _promiseUtils.continueWhile)(function () {
@@ -16039,6 +16043,7 @@ var ParseQuery = /*#__PURE__*/function () {
16039
16043
  * be used for this request.
16040
16044
  * <li>sessionToken: A valid session token, used for making a request on
16041
16045
  * behalf of a specific user.
16046
+ * <li>json: Return raw json without converting to Parse.Object
16042
16047
  * </ul>
16043
16048
  * @returns {Promise} A promise that will be fulfilled once the
16044
16049
  * iteration has completed.
@@ -19783,6 +19788,10 @@ var ParseUser = /*#__PURE__*/function (_ParseObject) {
19783
19788
  signupOptions.installationId = options.installationId;
19784
19789
  }
19785
19790
 
19791
+ if (options.hasOwnProperty('context') && Object.prototype.toString.call(options.context) === '[object Object]') {
19792
+ signupOptions.context = options.context;
19793
+ }
19794
+
19786
19795
  var controller = _CoreManager.default.getUserController();
19787
19796
 
19788
19797
  return controller.signUp(this, attrs, signupOptions);