parse 4.3.0-alpha.2 → 4.3.0-alpha.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.
@@ -187,7 +187,7 @@ var config /*: Config & { [key: string]: mixed }*/ = {
187
187
  SERVER_AUTH_TOKEN: null,
188
188
  LIVEQUERY_SERVER_URL: null,
189
189
  ENCRYPTED_KEY: null,
190
- VERSION: 'js' + "4.3.0-alpha.2",
190
+ VERSION: 'js' + "4.3.0-alpha.3",
191
191
  APPLICATION_ID: null,
192
192
  JAVASCRIPT_KEY: null,
193
193
  MASTER_KEY: null,
@@ -1473,7 +1473,7 @@ var ParseObject = /*#__PURE__*/function () {
1473
1473
  case 5:
1474
1474
  _context4.prev = 5;
1475
1475
  _context4.t0 = _context4["catch"](0);
1476
- if (!(_context4.t0.message === 'XMLHttpRequest failed: "Unable to connect to the Parse API"')) {
1476
+ if (!(_context4.t0.code === _ParseError.default.CONNECTION_FAILED)) {
1477
1477
  _context4.next = 11;
1478
1478
  break;
1479
1479
  }
@@ -1639,7 +1639,7 @@ var ParseObject = /*#__PURE__*/function () {
1639
1639
  case 5:
1640
1640
  _context5.prev = 5;
1641
1641
  _context5.t0 = _context5["catch"](0);
1642
- if (!(_context5.t0.message === 'XMLHttpRequest failed: "Unable to connect to the Parse API"')) {
1642
+ if (!(_context5.t0.code === _ParseError.default.CONNECTION_FAILED)) {
1643
1643
  _context5.next = 11;
1644
1644
  break;
1645
1645
  }
@@ -183,7 +183,7 @@ const config /*: Config & { [key: string]: mixed }*/ = {
183
183
  SERVER_AUTH_TOKEN: null,
184
184
  LIVEQUERY_SERVER_URL: null,
185
185
  ENCRYPTED_KEY: null,
186
- VERSION: 'js' + "4.3.0-alpha.2",
186
+ VERSION: 'js' + "4.3.0-alpha.3",
187
187
  APPLICATION_ID: null,
188
188
  JAVASCRIPT_KEY: null,
189
189
  MASTER_KEY: null,
@@ -1206,7 +1206,7 @@ class ParseObject {
1206
1206
  try {
1207
1207
  await this.save(null, options);
1208
1208
  } catch (e) {
1209
- if (e.message === 'XMLHttpRequest failed: "Unable to connect to the Parse API"') {
1209
+ if (e.code === _ParseError.default.CONNECTION_FAILED) {
1210
1210
  await _EventuallyQueue.default.save(this, options);
1211
1211
  _EventuallyQueue.default.poll();
1212
1212
  }
@@ -1344,7 +1344,7 @@ class ParseObject {
1344
1344
  try {
1345
1345
  await this.destroy(options);
1346
1346
  } catch (e) {
1347
- if (e.message === 'XMLHttpRequest failed: "Unable to connect to the Parse API"') {
1347
+ if (e.code === _ParseError.default.CONNECTION_FAILED) {
1348
1348
  await _EventuallyQueue.default.destroy(this, options);
1349
1349
  _EventuallyQueue.default.poll();
1350
1350
  }
@@ -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' + "4.3.0-alpha.2",
15
+ VERSION: 'js' + "4.3.0-alpha.3",
16
16
  APPLICATION_ID: null,
17
17
  JAVASCRIPT_KEY: null,
18
18
  MASTER_KEY: null,
@@ -854,7 +854,7 @@ var ParseObject = function () {
854
854
  try {
855
855
  yield this.save(null, options);
856
856
  } catch (e) {
857
- if (e.message === 'XMLHttpRequest failed: "Unable to connect to the Parse API"') {
857
+ if (e.code === _ParseError.default.CONNECTION_FAILED) {
858
858
  yield _EventuallyQueue.default.save(this, options);
859
859
  _EventuallyQueue.default.poll();
860
860
  }
@@ -916,7 +916,7 @@ var ParseObject = function () {
916
916
  try {
917
917
  yield this.destroy(options);
918
918
  } catch (e) {
919
- if (e.message === 'XMLHttpRequest failed: "Unable to connect to the Parse API"') {
919
+ if (e.code === _ParseError.default.CONNECTION_FAILED) {
920
920
  yield _EventuallyQueue.default.destroy(this, options);
921
921
  _EventuallyQueue.default.poll();
922
922
  }
@@ -187,7 +187,7 @@ var config /*: Config & { [key: string]: mixed }*/ = {
187
187
  SERVER_AUTH_TOKEN: null,
188
188
  LIVEQUERY_SERVER_URL: null,
189
189
  ENCRYPTED_KEY: null,
190
- VERSION: 'js' + "4.3.0-alpha.2",
190
+ VERSION: 'js' + "4.3.0-alpha.3",
191
191
  APPLICATION_ID: null,
192
192
  JAVASCRIPT_KEY: null,
193
193
  MASTER_KEY: null,
@@ -1473,7 +1473,7 @@ var ParseObject = /*#__PURE__*/function () {
1473
1473
  case 5:
1474
1474
  _context4.prev = 5;
1475
1475
  _context4.t0 = _context4["catch"](0);
1476
- if (!(_context4.t0.message === 'XMLHttpRequest failed: "Unable to connect to the Parse API"')) {
1476
+ if (!(_context4.t0.code === _ParseError.default.CONNECTION_FAILED)) {
1477
1477
  _context4.next = 11;
1478
1478
  break;
1479
1479
  }
@@ -1639,7 +1639,7 @@ var ParseObject = /*#__PURE__*/function () {
1639
1639
  case 5:
1640
1640
  _context5.prev = 5;
1641
1641
  _context5.t0 = _context5["catch"](0);
1642
- if (!(_context5.t0.message === 'XMLHttpRequest failed: "Unable to connect to the Parse API"')) {
1642
+ if (!(_context5.t0.code === _ParseError.default.CONNECTION_FAILED)) {
1643
1643
  _context5.next = 11;
1644
1644
  break;
1645
1645
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "parse",
3
- "version": "4.3.0-alpha.2",
3
+ "version": "4.3.0-alpha.3",
4
4
  "description": "Parse JavaScript SDK",
5
5
  "homepage": "https://parseplatform.org",
6
6
  "keywords": [