parse 3.5.0-alpha.5 → 3.5.0-beta.1

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.
@@ -224,7 +224,7 @@ var config
224
224
  SERVER_AUTH_TOKEN: null,
225
225
  LIVEQUERY_SERVER_URL: null,
226
226
  ENCRYPTED_KEY: null,
227
- VERSION: 'js' + "3.5.0-alpha.5",
227
+ VERSION: 'js' + "3.5.0-beta.1",
228
228
  APPLICATION_ID: null,
229
229
  JAVASCRIPT_KEY: null,
230
230
  MASTER_KEY: null,
@@ -7,8 +7,10 @@ var _idbKeyval = require("idb-keyval");
7
7
  * @flow
8
8
  */
9
9
 
10
+ /* global window */
10
11
 
11
- try {
12
+
13
+ if (typeof window !== 'undefined' && window.indexedDB) {
12
14
  var ParseStore = (0, _idbKeyval.createStore)('parseDB', 'parseStore');
13
15
  var IndexedDBStorageController = {
14
16
  async: 1,
@@ -37,5 +39,7 @@ try {
37
39
  }
38
40
  };
39
41
  module.exports = IndexedDBStorageController;
40
- } catch (e) {// IndexedDB not supported
42
+ } else {
43
+ // IndexedDB not supported
44
+ module.exports = undefined;
41
45
  }
@@ -217,7 +217,7 @@ const config
217
217
  SERVER_AUTH_TOKEN: null,
218
218
  LIVEQUERY_SERVER_URL: null,
219
219
  ENCRYPTED_KEY: null,
220
- VERSION: 'js' + "3.5.0-alpha.5",
220
+ VERSION: 'js' + "3.5.0-beta.1",
221
221
  APPLICATION_ID: null,
222
222
  JAVASCRIPT_KEY: null,
223
223
  MASTER_KEY: null,
@@ -5,8 +5,10 @@ var _idbKeyval = require("idb-keyval");
5
5
  * @flow
6
6
  */
7
7
 
8
+ /* global window */
8
9
 
9
- try {
10
+
11
+ if (typeof window !== 'undefined' && window.indexedDB) {
10
12
  const ParseStore = (0, _idbKeyval.createStore)('parseDB', 'parseStore');
11
13
  module.exports = {
12
14
  async: 1,
@@ -40,5 +42,7 @@ try {
40
42
  }
41
43
 
42
44
  };
43
- } catch (e) {// IndexedDB not supported
45
+ } else {
46
+ // IndexedDB not supported
47
+ module.exports = undefined;
44
48
  }
package/lib/node/Parse.js CHANGED
@@ -328,7 +328,6 @@ Parse.Storage = require('./Storage');
328
328
  Parse.User = require('./ParseUser').default;
329
329
  Parse.LiveQuery = require('./ParseLiveQuery').default;
330
330
  Parse.LiveQueryClient = require('./LiveQueryClient').default;
331
- Parse.IndexedDB = require('./IndexedDBStorageController');
332
331
 
333
332
  Parse._request = function (...args) {
334
333
  return _CoreManager.default.getRESTController().request.apply(null, args);
@@ -8,7 +8,7 @@ var config = {
8
8
  SERVER_AUTH_TOKEN: null,
9
9
  LIVEQUERY_SERVER_URL: null,
10
10
  ENCRYPTED_KEY: null,
11
- VERSION: 'js' + "3.5.0-alpha.5",
11
+ VERSION: 'js' + "3.5.0-beta.1",
12
12
  APPLICATION_ID: null,
13
13
  JAVASCRIPT_KEY: null,
14
14
  MASTER_KEY: null,
@@ -1,6 +1,6 @@
1
1
  var _idbKeyval = require("idb-keyval");
2
2
 
3
- try {
3
+ if (typeof window !== 'undefined' && window.indexedDB) {
4
4
  var ParseStore = (0, _idbKeyval.createStore)('parseDB', 'parseStore');
5
5
  var IndexedDBStorageController = {
6
6
  async: 1,
@@ -21,4 +21,6 @@ try {
21
21
  }
22
22
  };
23
23
  module.exports = IndexedDBStorageController;
24
- } catch (e) {}
24
+ } else {
25
+ module.exports = undefined;
26
+ }
@@ -213,7 +213,6 @@ Parse.Storage = require('./Storage');
213
213
  Parse.User = require('./ParseUser').default;
214
214
  Parse.LiveQuery = require('./ParseLiveQuery').default;
215
215
  Parse.LiveQueryClient = require('./LiveQueryClient').default;
216
- Parse.IndexedDB = require('./IndexedDBStorageController');
217
216
 
218
217
  Parse._request = function () {
219
218
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
@@ -224,7 +224,7 @@ var config
224
224
  SERVER_AUTH_TOKEN: null,
225
225
  LIVEQUERY_SERVER_URL: null,
226
226
  ENCRYPTED_KEY: null,
227
- VERSION: 'js' + "3.5.0-alpha.5",
227
+ VERSION: 'js' + "3.5.0-beta.1",
228
228
  APPLICATION_ID: null,
229
229
  JAVASCRIPT_KEY: null,
230
230
  MASTER_KEY: null,
@@ -7,8 +7,10 @@ var _idbKeyval = require("idb-keyval");
7
7
  * @flow
8
8
  */
9
9
 
10
+ /* global window */
10
11
 
11
- try {
12
+
13
+ if (typeof window !== 'undefined' && window.indexedDB) {
12
14
  var ParseStore = (0, _idbKeyval.createStore)('parseDB', 'parseStore');
13
15
  var IndexedDBStorageController = {
14
16
  async: 1,
@@ -37,5 +39,7 @@ try {
37
39
  }
38
40
  };
39
41
  module.exports = IndexedDBStorageController;
40
- } catch (e) {// IndexedDB not supported
42
+ } else {
43
+ // IndexedDB not supported
44
+ module.exports = undefined;
41
45
  }
@@ -332,7 +332,6 @@ Parse.Storage = require('./Storage');
332
332
  Parse.User = require('./ParseUser').default;
333
333
  Parse.LiveQuery = require('./ParseLiveQuery').default;
334
334
  Parse.LiveQueryClient = require('./LiveQueryClient').default;
335
- Parse.IndexedDB = require('./IndexedDBStorageController');
336
335
 
337
336
  Parse._request = function () {
338
337
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "parse",
3
- "version": "3.5.0-alpha.5",
3
+ "version": "3.5.0-beta.1",
4
4
  "description": "The Parse JavaScript SDK",
5
5
  "homepage": "https://parseplatform.org/",
6
6
  "keywords": [