parse 8.0.2 → 8.0.3

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.
@@ -191,7 +191,7 @@
191
191
  SERVER_URL: "https://api.parse.com/1",
192
192
  LIVEQUERY_SERVER_URL: null,
193
193
  ENCRYPTED_KEY: null,
194
- VERSION: "js8.0.2",
194
+ VERSION: "js8.0.3",
195
195
  APPLICATION_ID: null,
196
196
  JAVASCRIPT_KEY: null,
197
197
  MAINTENANCE_KEY: null,
@@ -59071,24 +59071,12 @@ Attributes: ${JSON.stringify(this.attributes, null, 2)}`;
59071
59071
  IndexedDB: void 0,
59072
59072
  Hooks: void 0,
59073
59073
  Parse: void 0,
59074
- /**
59075
- * @property {EventuallyQueue} Parse.EventuallyQueue
59076
- * @static
59077
- */
59078
59074
  set EventuallyQueue(queue2) {
59079
59075
  CoreManager.setEventuallyQueue(queue2);
59080
59076
  },
59081
59077
  get EventuallyQueue() {
59082
59078
  return CoreManager.getEventuallyQueue();
59083
59079
  },
59084
- /**
59085
- * Call this method first to set up your authentication tokens for Parse.
59086
- *
59087
- * @param {string} applicationId Your Parse Application ID.
59088
- * @param {string} [javaScriptKey] Your Parse JavaScript Key (Not needed for parse-server)
59089
- * @param {string} [masterKey] Your Parse Master Key. (Node.js only!)
59090
- * @static
59091
- */
59092
59080
  initialize(applicationId, javaScriptKey) {
59093
59081
  Parse._initialize(applicationId, javaScriptKey);
59094
59082
  },
@@ -59107,161 +59095,81 @@ Attributes: ${JSON.stringify(this.attributes, null, 2)}`;
59107
59095
  CoreManager.setIfNeeded("StorageController", StorageController$1);
59108
59096
  CoreManager.setIfNeeded("WebSocketController", WebSocketController$1);
59109
59097
  },
59110
- /**
59111
- * Call this method to set your AsyncStorage engine
59112
- * Starting Parse@1.11, the ParseSDK do not provide a React AsyncStorage as the ReactNative module
59113
- * is not provided at a stable path and changes over versions.
59114
- *
59115
- * @param {AsyncStorage} storage a react native async storage.
59116
- * @static
59117
- */
59118
59098
  setAsyncStorage(storage) {
59119
59099
  CoreManager.setAsyncStorage(storage);
59120
59100
  },
59121
- /**
59122
- * Call this method to set your LocalDatastoreStorage engine
59123
- * If using React-Native use {@link Parse.setAsyncStorage Parse.setAsyncStorage()}
59124
- *
59125
- * @param {LocalDatastoreController} controller a data storage.
59126
- * @static
59127
- */
59128
59101
  setLocalDatastoreController(controller) {
59129
59102
  CoreManager.setLocalDatastoreController(controller);
59130
59103
  },
59131
- /**
59132
- * Returns information regarding the current server's health
59133
- *
59134
- * @returns {Promise}
59135
- * @static
59136
- */
59137
59104
  getServerHealth() {
59138
59105
  return CoreManager.getRESTController().request("GET", "health");
59139
59106
  },
59140
- /**
59141
- * @property {string} Parse.applicationId
59142
- * @static
59143
- */
59144
59107
  set applicationId(value) {
59145
59108
  CoreManager.set("APPLICATION_ID", value);
59146
59109
  },
59147
59110
  get applicationId() {
59148
59111
  return CoreManager.get("APPLICATION_ID");
59149
59112
  },
59150
- /**
59151
- * @property {string} Parse.javaScriptKey
59152
- * @static
59153
- */
59154
59113
  set javaScriptKey(value) {
59155
59114
  CoreManager.set("JAVASCRIPT_KEY", value);
59156
59115
  },
59157
59116
  get javaScriptKey() {
59158
59117
  return CoreManager.get("JAVASCRIPT_KEY");
59159
59118
  },
59160
- /**
59161
- * @property {string} Parse.masterKey
59162
- * @static
59163
- */
59164
59119
  set masterKey(value) {
59165
59120
  CoreManager.set("MASTER_KEY", value);
59166
59121
  },
59167
59122
  get masterKey() {
59168
59123
  return CoreManager.get("MASTER_KEY");
59169
59124
  },
59170
- /**
59171
- * @property {string} Parse.maintenanceKey
59172
- * @static
59173
- */
59174
59125
  set maintenanceKey(value) {
59175
59126
  CoreManager.set("MAINTENANCE_KEY", value);
59176
59127
  },
59177
59128
  get maintenanceKey() {
59178
59129
  return CoreManager.get("MAINTENANCE_KEY");
59179
59130
  },
59180
- /**
59181
- * @property {string} Parse.serverURL
59182
- * @static
59183
- */
59184
59131
  set serverURL(value) {
59185
59132
  CoreManager.set("SERVER_URL", value);
59186
59133
  },
59187
59134
  get serverURL() {
59188
59135
  return CoreManager.get("SERVER_URL");
59189
59136
  },
59190
- /**
59191
- * @property {ParseLiveQuery} Parse.LiveQuery
59192
- * @static
59193
- */
59194
59137
  set LiveQuery(liveQuery) {
59195
59138
  CoreManager.setLiveQuery(liveQuery);
59196
59139
  },
59197
59140
  get LiveQuery() {
59198
59141
  return CoreManager.getLiveQuery();
59199
59142
  },
59200
- /**
59201
- * @property {string} Parse.liveQueryServerURL
59202
- * @static
59203
- */
59204
59143
  set liveQueryServerURL(value) {
59205
59144
  CoreManager.set("LIVEQUERY_SERVER_URL", value);
59206
59145
  },
59207
59146
  get liveQueryServerURL() {
59208
59147
  return CoreManager.get("LIVEQUERY_SERVER_URL");
59209
59148
  },
59210
- /**
59211
- * @property {boolean} Parse.encryptedUser
59212
- * @static
59213
- */
59214
59149
  set encryptedUser(value) {
59215
59150
  CoreManager.set("ENCRYPTED_USER", value);
59216
59151
  },
59217
59152
  get encryptedUser() {
59218
59153
  return CoreManager.get("ENCRYPTED_USER");
59219
59154
  },
59220
- /**
59221
- * @property {string} Parse.secret
59222
- * @static
59223
- */
59224
59155
  set secret(value) {
59225
59156
  CoreManager.set("ENCRYPTED_KEY", value);
59226
59157
  },
59227
59158
  get secret() {
59228
59159
  return CoreManager.get("ENCRYPTED_KEY");
59229
59160
  },
59230
- /**
59231
- * @property {boolean} Parse.idempotency
59232
- * @static
59233
- */
59234
59161
  set idempotency(value) {
59235
59162
  CoreManager.set("IDEMPOTENCY", value);
59236
59163
  },
59237
59164
  get idempotency() {
59238
59165
  return CoreManager.get("IDEMPOTENCY");
59239
59166
  },
59240
- /**
59241
- * @property {boolean} Parse.allowCustomObjectId
59242
- * @static
59243
- */
59244
59167
  set allowCustomObjectId(value) {
59245
59168
  CoreManager.set("ALLOW_CUSTOM_OBJECT_ID", value);
59246
59169
  },
59247
59170
  get allowCustomObjectId() {
59248
59171
  return CoreManager.get("ALLOW_CUSTOM_OBJECT_ID");
59249
59172
  },
59250
- /**
59251
- * Setting this property to `true` enables enhanced logging for `Parse.Object`
59252
- * in Node.js environments. Specifically, it will log:
59253
- *
59254
- * ```
59255
- * ParseObject: className: <CLASS_NAME>, id: <OBJECT_ID>
59256
- * Attributes: <OBJECT_ATTRIBUTES>
59257
- * ```
59258
- *
59259
- * @warning This should not be enabled in production environments as this may
59260
- * expose sensitive information in server logs.
59261
- *
59262
- * @property {boolean} Parse.nodeLogging
59263
- * @static
59264
- */
59265
59173
  set nodeLogging(value) {
59266
59174
  CoreManager.set("NODE_LOGGING", value);
59267
59175
  },
@@ -59284,17 +59192,9 @@ Attributes: ${JSON.stringify(this.attributes, null, 2)}`;
59284
59192
  _getInstallationId() {
59285
59193
  return CoreManager.getInstallationController().currentInstallationId();
59286
59194
  },
59287
- /**
59288
- * Enable pinning in your application.
59289
- * This must be called after `Parse.initialize` in your application.
59290
- *
59291
- * @param [polling] Allow pinging the server /health endpoint. Default true
59292
- * @param [ms] Milliseconds to ping the server. Default 2000ms
59293
- * @static
59294
- */
59295
59195
  enableLocalDatastore(polling2, ms) {
59296
59196
  if (!this.applicationId) {
59297
- console.log("'enableLocalDataStore' must be called after 'initialize'");
59197
+ console.log("'enableLocalDatastore' must be called after 'initialize'");
59298
59198
  return;
59299
59199
  }
59300
59200
  if (!this.LocalDatastore.isEnabled) {
@@ -59304,25 +59204,9 @@ Attributes: ${JSON.stringify(this.attributes, null, 2)}`;
59304
59204
  }
59305
59205
  }
59306
59206
  },
59307
- /**
59308
- * Flag that indicates whether Local Datastore is enabled.
59309
- *
59310
- * @static
59311
- * @returns {boolean}
59312
- */
59313
59207
  isLocalDatastoreEnabled() {
59314
59208
  return this.LocalDatastore.isEnabled;
59315
59209
  },
59316
- /**
59317
- * Gets all contents from Local Datastore
59318
- *
59319
- * <pre>
59320
- * await Parse.dumpLocalDatastore();
59321
- * </pre>
59322
- *
59323
- * @static
59324
- * @returns {object}
59325
- */
59326
59210
  dumpLocalDatastore() {
59327
59211
  if (!this.LocalDatastore.isEnabled) {
59328
59212
  console.log("Parse.enableLocalDatastore() must be called first");
@@ -59331,21 +59215,9 @@ Attributes: ${JSON.stringify(this.attributes, null, 2)}`;
59331
59215
  return Parse.LocalDatastore._getAllContents();
59332
59216
  }
59333
59217
  },
59334
- /**
59335
- * Enable the current user encryption.
59336
- * This must be called before login any user.
59337
- *
59338
- * @static
59339
- */
59340
59218
  enableEncryptedUser() {
59341
59219
  this.encryptedUser = true;
59342
59220
  },
59343
- /**
59344
- * Flag that indicates whether Encrypted User is enabled.
59345
- *
59346
- * @static
59347
- * @returns {boolean}
59348
- */
59349
59221
  isEncryptedUserEnabled() {
59350
59222
  return this.encryptedUser;
59351
59223
  }