remult 3.3.9 → 3.3.10

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.
@@ -1,8 +1,3 @@
1
- const connectionLostNames = new Set([
2
- 'InvalidStateError',
3
- 'UnknownError',
4
- 'AbortError',
5
- ]);
6
1
  export class JsonEntityIndexedDbStorage {
7
2
  dbName;
8
3
  storeName;
@@ -41,8 +36,6 @@ export class JsonEntityIndexedDbStorage {
41
36
  return await attempt();
42
37
  }
43
38
  catch (err) {
44
- if (!connectionLostNames.has(err?.name))
45
- throw err;
46
39
  this.db = undefined;
47
40
  return await attempt();
48
41
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "remult",
3
- "version": "3.3.9",
3
+ "version": "3.3.10",
4
4
  "description": "A CRUD framework for full-stack TypeScript",
5
5
  "homepage": "https://remult.dev",
6
6
  "repository": {
@@ -2,11 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.JsonEntityIndexedDbStorage = void 0;
4
4
  var tslib_1 = require("tslib");
5
- var connectionLostNames = new Set([
6
- 'InvalidStateError',
7
- 'UnknownError',
8
- 'AbortError',
9
- ]);
10
5
  var JsonEntityIndexedDbStorage = /** @class */ (function () {
11
6
  function JsonEntityIndexedDbStorage(dbName, storeName) {
12
7
  if (dbName === void 0) { dbName = 'db'; }
@@ -62,8 +57,6 @@ var JsonEntityIndexedDbStorage = /** @class */ (function () {
62
57
  case 2: return [2 /*return*/, _a.sent()];
63
58
  case 3:
64
59
  err_1 = _a.sent();
65
- if (!connectionLostNames.has(err_1 === null || err_1 === void 0 ? void 0 : err_1.name))
66
- throw err_1;
67
60
  this.db = undefined;
68
61
  return [4 /*yield*/, attempt()];
69
62
  case 4: return [2 /*return*/, _a.sent()];