parse 5.3.0-alpha.4 → 5.3.0-alpha.5

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 v5.3.0-alpha.4
2
+ * Parse JavaScript SDK v5.3.0-alpha.5
3
3
  *
4
4
  * The source tree of this library can be found at
5
5
  * https://github.com/ParsePlatform/Parse-SDK-JS
@@ -244,8 +244,8 @@ function run(name, data, options) {
244
244
  throw new TypeError('Cloud function name must be a string.');
245
245
  }
246
246
  const requestOptions = {};
247
- if (options.useMasterKey) {
248
- requestOptions.useMasterKey = options.useMasterKey;
247
+ if (options.hasOwnProperty('useMasterKey')) {
248
+ requestOptions.useMasterKey = !!options.useMasterKey;
249
249
  }
250
250
  if (options.sessionToken) {
251
251
  requestOptions.sessionToken = options.sessionToken;
@@ -358,7 +358,7 @@ const config = {
358
358
  SERVER_AUTH_TOKEN: null,
359
359
  LIVEQUERY_SERVER_URL: null,
360
360
  ENCRYPTED_KEY: null,
361
- VERSION: 'js' + "5.3.0-alpha.4",
361
+ VERSION: 'js' + "5.3.0-alpha.5",
362
362
  APPLICATION_ID: null,
363
363
  JAVASCRIPT_KEY: null,
364
364
  MASTER_KEY: null,