mobiletto 2.0.4 → 2.0.6

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,4 +1,4 @@
1
1
  export * from "mobiletto-base";
2
2
  import { MobilettoConnectionFunction } from "mobiletto-base";
3
3
  export declare const registerDrivers: () => void;
4
- export declare const ALL_DRIVERS: Record<string, MobilettoConnectionFunction>;
4
+ export declare const allDrivers: () => Record<string, MobilettoConnectionFunction>;
package/lib/cjs/index.js CHANGED
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.ALL_DRIVERS = exports.registerDrivers = void 0;
17
+ exports.allDrivers = exports.registerDrivers = void 0;
18
18
  __exportStar(require("mobiletto-base"), exports);
19
19
  const mobiletto_base_1 = require("mobiletto-base");
20
20
  const mobiletto_driver_local_1 = require("mobiletto-driver-local");
@@ -28,9 +28,10 @@ const registerDrivers = () => {
28
28
  (0, mobiletto_base_1.registerDriver)("indexeddb", mobiletto_driver_indexeddb_1.storageClient);
29
29
  };
30
30
  exports.registerDrivers = registerDrivers;
31
- exports.ALL_DRIVERS = {
31
+ const allDrivers = () => ({
32
32
  local: mobiletto_driver_local_1.storageClient,
33
33
  s3: mobiletto_driver_s3_1.storageClient,
34
34
  b2: mobiletto_driver_b2_1.storageClient,
35
- indexeddb: mobiletto_driver_indexeddb_1.storageClient,
36
- };
35
+ indexeddb: mobiletto_driver_indexeddb_1.storageClient
36
+ });
37
+ exports.allDrivers = allDrivers;
@@ -1,4 +1,4 @@
1
1
  export * from "mobiletto-base";
2
2
  import { MobilettoConnectionFunction } from "mobiletto-base";
3
3
  export declare const registerDrivers: () => void;
4
- export declare const ALL_DRIVERS: Record<string, MobilettoConnectionFunction>;
4
+ export declare const allDrivers: () => Record<string, MobilettoConnectionFunction>;
package/lib/esm/index.js CHANGED
@@ -10,9 +10,9 @@ export const registerDrivers = () => {
10
10
  registerDriver("b2", b2Driver);
11
11
  registerDriver("indexeddb", indexeddbDriver);
12
12
  };
13
- export const ALL_DRIVERS = {
13
+ export const allDrivers = () => ({
14
14
  local: localDriver,
15
15
  s3: s3Driver,
16
16
  b2: b2Driver,
17
- indexeddb: indexeddbDriver,
18
- };
17
+ indexeddb: indexeddbDriver
18
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mobiletto",
3
- "version": "2.0.4",
3
+ "version": "2.0.6",
4
4
  "description": "A storage layer that presents a uniform interface to Amazon S3, Backblaze B2, and local storage",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -50,7 +50,7 @@
50
50
  },
51
51
  "dependencies": {
52
52
  "mobiletto-base": "^2.0.29",
53
- "mobiletto-driver-b2": "^2.0.5",
53
+ "mobiletto-driver-b2": "^2.0.6",
54
54
  "mobiletto-driver-indexeddb": "^2.0.9",
55
55
  "mobiletto-driver-local": "^2.0.5",
56
56
  "mobiletto-driver-s3": "^2.0.5"