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.
- package/dist/parse.js +3 -3
- package/dist/parse.min.js +2 -2
- package/dist/parse.weapp.js +3 -3
- package/dist/parse.weapp.min.js +2 -2
- package/lib/browser/CoreManager.js +1 -1
- package/lib/browser/RESTController.js +1 -1
- package/lib/node/CoreManager.js +1 -1
- package/lib/node/RESTController.js +1 -1
- package/lib/react-native/CoreManager.js +1 -1
- package/lib/react-native/RESTController.js +1 -1
- package/lib/weapp/CoreManager.js +1 -1
- package/lib/weapp/RESTController.js +1 -1
- package/package.json +3 -3
|
@@ -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);
|
package/lib/node/CoreManager.js
CHANGED
|
@@ -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);
|
|
@@ -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
|
}
|
package/lib/weapp/CoreManager.js
CHANGED
|
@@ -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.
|
|
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.
|
|
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.
|
|
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",
|