@hot-updater/cloudflare 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
@@ -6812,7 +6812,7 @@ const createWrangler = ({ stdio, accountId, cloudflareApiToken, cwd }) => {
6812
6812
  * })
6813
6813
  * ```
6814
6814
  */
6815
- const r2Storage = (config, hooks) => (_) => {
6815
+ const r2Storage = (config, hooks) => () => {
6816
6816
  const { bucketName, cloudflareApiToken, accountId } = config;
6817
6817
  const wrangler = createWrangler({
6818
6818
  accountId,
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/d1Database.d.ts
5
5
  interface D1DatabaseConfig {
@@ -7,7 +7,7 @@ interface D1DatabaseConfig {
7
7
  accountId: string;
8
8
  cloudflareApiToken: string;
9
9
  }
10
- declare const d1Database: (config: D1DatabaseConfig, hooks?: DatabasePluginHooks) => (options: _hot_updater_plugin_core0.BasePluginArgs) => _hot_updater_plugin_core0.DatabasePlugin;
10
+ declare const d1Database: (config: D1DatabaseConfig, hooks?: DatabasePluginHooks) => () => _hot_updater_plugin_core0.DatabasePlugin;
11
11
  //#endregion
12
12
  //#region src/r2Storage.d.ts
13
13
  interface R2StorageConfig {
@@ -42,6 +42,6 @@ interface R2StorageConfig {
42
42
  * })
43
43
  * ```
44
44
  */
45
- declare const r2Storage: (config: R2StorageConfig, hooks?: StoragePluginHooks) => (_: BasePluginArgs) => StoragePlugin;
45
+ declare const r2Storage: (config: R2StorageConfig, hooks?: StoragePluginHooks) => () => StoragePlugin;
46
46
  //#endregion
47
47
  export { D1DatabaseConfig, R2StorageConfig, d1Database, r2Storage };
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/d1Database.d.ts
5
5
  interface D1DatabaseConfig {
@@ -7,7 +7,7 @@ interface D1DatabaseConfig {
7
7
  accountId: string;
8
8
  cloudflareApiToken: string;
9
9
  }
10
- declare const d1Database: (config: D1DatabaseConfig, hooks?: DatabasePluginHooks) => (options: _hot_updater_plugin_core0.BasePluginArgs) => _hot_updater_plugin_core0.DatabasePlugin;
10
+ declare const d1Database: (config: D1DatabaseConfig, hooks?: DatabasePluginHooks) => () => _hot_updater_plugin_core0.DatabasePlugin;
11
11
  //#endregion
12
12
  //#region src/r2Storage.d.ts
13
13
  interface R2StorageConfig {
@@ -42,6 +42,6 @@ interface R2StorageConfig {
42
42
  * })
43
43
  * ```
44
44
  */
45
- declare const r2Storage: (config: R2StorageConfig, hooks?: StoragePluginHooks) => (_: BasePluginArgs) => StoragePlugin;
45
+ declare const r2Storage: (config: R2StorageConfig, hooks?: StoragePluginHooks) => () => StoragePlugin;
46
46
  //#endregion
47
47
  export { D1DatabaseConfig, R2StorageConfig, d1Database, r2Storage };
package/dist/index.js CHANGED
@@ -6796,7 +6796,7 @@ const createWrangler = ({ stdio, accountId, cloudflareApiToken, cwd }) => {
6796
6796
  * })
6797
6797
  * ```
6798
6798
  */
6799
- const r2Storage = (config, hooks) => (_) => {
6799
+ const r2Storage = (config, hooks) => () => {
6800
6800
  const { bucketName, cloudflareApiToken, accountId } = config;
6801
6801
  const wrangler = createWrangler({
6802
6802
  accountId,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hot-updater/cloudflare",
3
3
  "type": "module",
4
- "version": "0.21.9",
4
+ "version": "0.21.11",
5
5
  "description": "React Native OTA solution for self-hosted",
6
6
  "main": "dist/index.cjs",
7
7
  "module": "dist/index.js",
@@ -41,10 +41,10 @@
41
41
  ],
42
42
  "dependencies": {
43
43
  "cloudflare": "4.2.0",
44
- "@hot-updater/cli-tools": "0.21.9",
45
- "@hot-updater/core": "0.21.9",
46
- "@hot-updater/js": "0.21.9",
47
- "@hot-updater/plugin-core": "0.21.9"
44
+ "@hot-updater/cli-tools": "0.21.11",
45
+ "@hot-updater/core": "0.21.11",
46
+ "@hot-updater/js": "0.21.11",
47
+ "@hot-updater/plugin-core": "0.21.11"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@cloudflare/vitest-pool-workers": "^0.8.70",
@@ -62,7 +62,7 @@
62
62
  "vitest": "2.1.8",
63
63
  "wrangler": "^4.5.0",
64
64
  "xdg-app-paths": "^8.3.0",
65
- "@hot-updater/test-utils": "0.21.9"
65
+ "@hot-updater/test-utils": "0.21.11"
66
66
  },
67
67
  "scripts": {
68
68
  "build": "tsdown && pnpm build:worker",
@@ -1 +1 @@
1
- This folder contains the built output assets for the worker "hot-updater" generated at 2025-11-13T04:52:00.052Z.
1
+ This folder contains the built output assets for the worker "hot-updater" generated at 2025-11-17T11:45:26.609Z.