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
package/dist/parse.weapp.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Parse JavaScript SDK v6.2.0-alpha.
|
|
2
|
+
* Parse JavaScript SDK v6.2.0-alpha.2
|
|
3
3
|
*
|
|
4
4
|
* The source tree of this library can be found at
|
|
5
5
|
* https://github.com/ParsePlatform/Parse-SDK-JS
|
|
@@ -355,7 +355,7 @@ const config = {
|
|
|
355
355
|
SERVER_AUTH_TOKEN: null,
|
|
356
356
|
LIVEQUERY_SERVER_URL: null,
|
|
357
357
|
ENCRYPTED_KEY: null,
|
|
358
|
-
VERSION: 'js' + "6.2.0-alpha.
|
|
358
|
+
VERSION: 'js' + "6.2.0-alpha.2",
|
|
359
359
|
APPLICATION_ID: null,
|
|
360
360
|
JAVASCRIPT_KEY: null,
|
|
361
361
|
MAINTENANCE_KEY: null,
|
|
@@ -14175,7 +14175,7 @@ const RESTController = {
|
|
|
14175
14175
|
if (response && response.responseText) {
|
|
14176
14176
|
try {
|
|
14177
14177
|
const errorJSON = JSON.parse(response.responseText);
|
|
14178
|
-
error = new _ParseError.default(errorJSON.code, errorJSON.error);
|
|
14178
|
+
error = new _ParseError.default(errorJSON.code, errorJSON.error || errorJSON.message);
|
|
14179
14179
|
} catch (_) {
|
|
14180
14180
|
// If we fail to parse the error text, that's okay.
|
|
14181
14181
|
error = new _ParseError.default(_ParseError.default.INVALID_JSON, 'Received an error with invalid JSON from Parse: ' + response.responseText);
|