@hot-updater/standalone 0.21.9 → 0.21.11

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/index.cjs CHANGED
@@ -1457,7 +1457,7 @@ const createRoute = (defaultRoute, customRoute) => ({
1457
1457
  ...customRoute?.headers
1458
1458
  }
1459
1459
  });
1460
- const standaloneStorage = (config, hooks) => (_) => {
1460
+ const standaloneStorage = (config, hooks) => () => {
1461
1461
  const routes = {
1462
1462
  upload: (key, filePath) => createRoute(defaultRoutes.upload(key, filePath), config.routes?.upload?.(key, filePath)),
1463
1463
  delete: (storageUri) => createRoute(defaultRoutes.delete(storageUri), config.routes?.delete?.(storageUri)),
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _hot_updater_plugin_core0 from "@hot-updater/plugin-core";
2
- import { BasePluginArgs, DatabasePluginHooks, StoragePlugin, StoragePluginHooks } from "@hot-updater/plugin-core";
2
+ import { DatabasePluginHooks, StoragePlugin, StoragePluginHooks } from "@hot-updater/plugin-core";
3
3
 
4
4
  //#region src/standaloneRepository.d.ts
5
5
  interface RouteConfig {
@@ -17,7 +17,7 @@ interface StandaloneRepositoryConfig {
17
17
  commonHeaders?: Record<string, string>;
18
18
  routes?: Routes;
19
19
  }
20
- declare const standaloneRepository: (config: StandaloneRepositoryConfig, hooks?: DatabasePluginHooks) => (options: _hot_updater_plugin_core0.BasePluginArgs) => _hot_updater_plugin_core0.DatabasePlugin;
20
+ declare const standaloneRepository: (config: StandaloneRepositoryConfig, hooks?: DatabasePluginHooks) => () => _hot_updater_plugin_core0.DatabasePlugin;
21
21
  //#endregion
22
22
  //#region src/standaloneStorage.d.ts
23
23
  interface StorageRoutes {
@@ -30,6 +30,6 @@ interface StandaloneStorageConfig {
30
30
  commonHeaders?: Record<string, string>;
31
31
  routes?: StorageRoutes;
32
32
  }
33
- declare const standaloneStorage: (config: StandaloneStorageConfig, hooks?: StoragePluginHooks) => (_: BasePluginArgs) => StoragePlugin;
33
+ declare const standaloneStorage: (config: StandaloneStorageConfig, hooks?: StoragePluginHooks) => () => StoragePlugin;
34
34
  //#endregion
35
35
  export { RouteConfig, Routes, StandaloneRepositoryConfig, StandaloneStorageConfig, StorageRoutes, standaloneRepository, standaloneStorage };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _hot_updater_plugin_core0 from "@hot-updater/plugin-core";
2
- import { BasePluginArgs, DatabasePluginHooks, StoragePlugin, StoragePluginHooks } from "@hot-updater/plugin-core";
2
+ import { DatabasePluginHooks, StoragePlugin, StoragePluginHooks } from "@hot-updater/plugin-core";
3
3
 
4
4
  //#region src/standaloneRepository.d.ts
5
5
  interface RouteConfig {
@@ -17,7 +17,7 @@ interface StandaloneRepositoryConfig {
17
17
  commonHeaders?: Record<string, string>;
18
18
  routes?: Routes;
19
19
  }
20
- declare const standaloneRepository: (config: StandaloneRepositoryConfig, hooks?: DatabasePluginHooks) => (options: _hot_updater_plugin_core0.BasePluginArgs) => _hot_updater_plugin_core0.DatabasePlugin;
20
+ declare const standaloneRepository: (config: StandaloneRepositoryConfig, hooks?: DatabasePluginHooks) => () => _hot_updater_plugin_core0.DatabasePlugin;
21
21
  //#endregion
22
22
  //#region src/standaloneStorage.d.ts
23
23
  interface StorageRoutes {
@@ -30,6 +30,6 @@ interface StandaloneStorageConfig {
30
30
  commonHeaders?: Record<string, string>;
31
31
  routes?: StorageRoutes;
32
32
  }
33
- declare const standaloneStorage: (config: StandaloneStorageConfig, hooks?: StoragePluginHooks) => (_: BasePluginArgs) => StoragePlugin;
33
+ declare const standaloneStorage: (config: StandaloneStorageConfig, hooks?: StoragePluginHooks) => () => StoragePlugin;
34
34
  //#endregion
35
35
  export { RouteConfig, Routes, StandaloneRepositoryConfig, StandaloneStorageConfig, StorageRoutes, standaloneRepository, standaloneStorage };
package/dist/index.js CHANGED
@@ -1454,7 +1454,7 @@ const createRoute = (defaultRoute, customRoute) => ({
1454
1454
  ...customRoute?.headers
1455
1455
  }
1456
1456
  });
1457
- const standaloneStorage = (config, hooks) => (_) => {
1457
+ const standaloneStorage = (config, hooks) => () => {
1458
1458
  const routes = {
1459
1459
  upload: (key, filePath) => createRoute(defaultRoutes.upload(key, filePath), config.routes?.upload?.(key, filePath)),
1460
1460
  delete: (storageUri) => createRoute(defaultRoutes.delete(storageUri), config.routes?.delete?.(storageUri)),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hot-updater/standalone",
3
- "version": "0.21.9",
3
+ "version": "0.21.11",
4
4
  "type": "module",
5
5
  "description": "React Native OTA solution for self-hosted",
6
6
  "sideEffects": false,
@@ -39,8 +39,8 @@
39
39
  "access": "public"
40
40
  },
41
41
  "dependencies": {
42
- "@hot-updater/core": "0.21.9",
43
- "@hot-updater/plugin-core": "0.21.9"
42
+ "@hot-updater/core": "0.21.11",
43
+ "@hot-updater/plugin-core": "0.21.11"
44
44
  },
45
45
  "devDependencies": {
46
46
  "mime": "2.6.0",