parse 6.2.0-alpha.1 → 6.2.0-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.
@@ -19,7 +19,7 @@ const config = {
19
19
  SERVER_AUTH_TOKEN: null,
20
20
  LIVEQUERY_SERVER_URL: null,
21
21
  ENCRYPTED_KEY: null,
22
- VERSION: 'js' + "6.2.0-alpha.1",
22
+ VERSION: 'js' + "6.2.0-alpha.2",
23
23
  APPLICATION_ID: null,
24
24
  JAVASCRIPT_KEY: null,
25
25
  MAINTENANCE_KEY: null,
@@ -295,7 +295,7 @@ const RESTController = {
295
295
  if (response && response.responseText) {
296
296
  try {
297
297
  const errorJSON = JSON.parse(response.responseText);
298
- error = new _ParseError.default(errorJSON.code, errorJSON.error);
298
+ error = new _ParseError.default(errorJSON.code, errorJSON.error || errorJSON.message);
299
299
  } catch (_) {
300
300
  // If we fail to parse the error text, that's okay.
301
301
  error = new _ParseError.default(_ParseError.default.INVALID_JSON, 'Received an error with invalid JSON from Parse: ' + response.responseText);
@@ -16,7 +16,7 @@ const config = {
16
16
  SERVER_AUTH_TOKEN: null,
17
17
  LIVEQUERY_SERVER_URL: null,
18
18
  ENCRYPTED_KEY: null,
19
- VERSION: 'js' + "6.2.0-alpha.1",
19
+ VERSION: 'js' + "6.2.0-alpha.2",
20
20
  APPLICATION_ID: null,
21
21
  JAVASCRIPT_KEY: null,
22
22
  MAINTENANCE_KEY: null,
@@ -289,7 +289,7 @@ const RESTController = {
289
289
  if (response && response.responseText) {
290
290
  try {
291
291
  const errorJSON = JSON.parse(response.responseText);
292
- error = new _ParseError.default(errorJSON.code, errorJSON.error);
292
+ error = new _ParseError.default(errorJSON.code, errorJSON.error || errorJSON.message);
293
293
  } catch (_) {
294
294
  // If we fail to parse the error text, that's okay.
295
295
  error = new _ParseError.default(_ParseError.default.INVALID_JSON, 'Received an error with invalid JSON from Parse: ' + response.responseText);
@@ -12,7 +12,7 @@ var config = {
12
12
  SERVER_AUTH_TOKEN: null,
13
13
  LIVEQUERY_SERVER_URL: null,
14
14
  ENCRYPTED_KEY: null,
15
- VERSION: 'js' + "6.2.0-alpha.1",
15
+ VERSION: 'js' + "6.2.0-alpha.2",
16
16
  APPLICATION_ID: null,
17
17
  JAVASCRIPT_KEY: null,
18
18
  MAINTENANCE_KEY: null,
@@ -264,7 +264,7 @@ var RESTController = {
264
264
  if (response && response.responseText) {
265
265
  try {
266
266
  var errorJSON = JSON.parse(response.responseText);
267
- error = new _ParseError.default(errorJSON.code, errorJSON.error);
267
+ error = new _ParseError.default(errorJSON.code, errorJSON.error || errorJSON.message);
268
268
  } catch (_) {
269
269
  error = new _ParseError.default(_ParseError.default.INVALID_JSON, 'Received an error with invalid JSON from Parse: ' + response.responseText);
270
270
  }
@@ -19,7 +19,7 @@ const config = {
19
19
  SERVER_AUTH_TOKEN: null,
20
20
  LIVEQUERY_SERVER_URL: null,
21
21
  ENCRYPTED_KEY: null,
22
- VERSION: 'js' + "6.2.0-alpha.1",
22
+ VERSION: 'js' + "6.2.0-alpha.2",
23
23
  APPLICATION_ID: null,
24
24
  JAVASCRIPT_KEY: null,
25
25
  MAINTENANCE_KEY: null,
@@ -296,7 +296,7 @@ const RESTController = {
296
296
  if (response && response.responseText) {
297
297
  try {
298
298
  const errorJSON = JSON.parse(response.responseText);
299
- error = new _ParseError.default(errorJSON.code, errorJSON.error);
299
+ error = new _ParseError.default(errorJSON.code, errorJSON.error || errorJSON.message);
300
300
  } catch (_) {
301
301
  // If we fail to parse the error text, that's okay.
302
302
  error = new _ParseError.default(_ParseError.default.INVALID_JSON, 'Received an error with invalid JSON from Parse: ' + response.responseText);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "parse",
3
- "version": "6.2.0-alpha.1",
3
+ "version": "6.2.0-alpha.2",
4
4
  "description": "Parse JavaScript SDK",
5
5
  "homepage": "https://parseplatform.org",
6
6
  "keywords": [
@@ -45,7 +45,7 @@
45
45
  "@babel/preset-env": "7.26.9",
46
46
  "@babel/preset-react": "7.26.3",
47
47
  "@babel/preset-typescript": "7.27.0",
48
- "@eslint/js": "9.23.0",
48
+ "@eslint/js": "9.24.0",
49
49
  "@parse/minami": "git+https://github.com/parse-community/minami#main",
50
50
  "@saithodev/semantic-release-backmerge": "4.0.1",
51
51
  "@semantic-release/changelog": "6.0.3",
@@ -63,7 +63,7 @@
63
63
  "codecov": "3.8.3",
64
64
  "core-js": "3.41.0",
65
65
  "cross-env": "7.0.2",
66
- "eslint": "9.23.0",
66
+ "eslint": "9.24.0",
67
67
  "eslint-plugin-expect-type": "0.6.2",
68
68
  "eslint-plugin-jsdoc": "50.6.9",
69
69
  "express": "5.1.0",