@hot-updater/cloudflare 0.16.7-0 → 0.18.0

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.d.cts CHANGED
@@ -1,18 +1,22 @@
1
- import * as _hot_updater_plugin_core from '@hot-updater/plugin-core';
2
- import { DatabasePluginHooks, StoragePluginHooks, BasePluginArgs, StoragePlugin } from '@hot-updater/plugin-core';
1
+ import * as _hot_updater_plugin_core0 from "@hot-updater/plugin-core";
2
+ import { BasePluginArgs, DatabasePluginHooks, StoragePlugin, StoragePluginHooks } from "@hot-updater/plugin-core";
3
3
 
4
+ //#region src/d1Database.d.ts
4
5
  interface D1DatabaseConfig {
5
- databaseId: string;
6
- accountId: string;
7
- cloudflareApiToken: string;
6
+ databaseId: string;
7
+ accountId: string;
8
+ cloudflareApiToken: string;
8
9
  }
9
- declare const d1Database: (config: D1DatabaseConfig, hooks?: DatabasePluginHooks) => (options: _hot_updater_plugin_core.BasePluginArgs) => _hot_updater_plugin_core.DatabasePlugin;
10
+ declare const d1Database: (config: D1DatabaseConfig, hooks?: DatabasePluginHooks) => (options: _hot_updater_plugin_core0.BasePluginArgs) => _hot_updater_plugin_core0.DatabasePlugin;
10
11
 
12
+ //#endregion
13
+ //#region src/r2Storage.d.ts
11
14
  interface R2StorageConfig {
12
- cloudflareApiToken: string;
13
- accountId: string;
14
- bucketName: string;
15
+ cloudflareApiToken: string;
16
+ accountId: string;
17
+ bucketName: string;
15
18
  }
16
19
  declare const r2Storage: (config: R2StorageConfig, hooks?: StoragePluginHooks) => (_: BasePluginArgs) => StoragePlugin;
17
20
 
18
- export { type D1DatabaseConfig, type R2StorageConfig, d1Database, r2Storage };
21
+ //#endregion
22
+ export { D1DatabaseConfig, R2StorageConfig, d1Database, r2Storage };
package/dist/index.d.ts CHANGED
@@ -1,18 +1,22 @@
1
- import * as _hot_updater_plugin_core from '@hot-updater/plugin-core';
2
- import { DatabasePluginHooks, StoragePluginHooks, BasePluginArgs, StoragePlugin } from '@hot-updater/plugin-core';
1
+ import * as _hot_updater_plugin_core0 from "@hot-updater/plugin-core";
2
+ import { BasePluginArgs, DatabasePluginHooks, StoragePlugin, StoragePluginHooks } from "@hot-updater/plugin-core";
3
3
 
4
+ //#region src/d1Database.d.ts
4
5
  interface D1DatabaseConfig {
5
- databaseId: string;
6
- accountId: string;
7
- cloudflareApiToken: string;
6
+ databaseId: string;
7
+ accountId: string;
8
+ cloudflareApiToken: string;
8
9
  }
9
- declare const d1Database: (config: D1DatabaseConfig, hooks?: DatabasePluginHooks) => (options: _hot_updater_plugin_core.BasePluginArgs) => _hot_updater_plugin_core.DatabasePlugin;
10
+ declare const d1Database: (config: D1DatabaseConfig, hooks?: DatabasePluginHooks) => (options: _hot_updater_plugin_core0.BasePluginArgs) => _hot_updater_plugin_core0.DatabasePlugin;
10
11
 
12
+ //#endregion
13
+ //#region src/r2Storage.d.ts
11
14
  interface R2StorageConfig {
12
- cloudflareApiToken: string;
13
- accountId: string;
14
- bucketName: string;
15
+ cloudflareApiToken: string;
16
+ accountId: string;
17
+ bucketName: string;
15
18
  }
16
19
  declare const r2Storage: (config: R2StorageConfig, hooks?: StoragePluginHooks) => (_: BasePluginArgs) => StoragePlugin;
17
20
 
18
- export { type D1DatabaseConfig, type R2StorageConfig, d1Database, r2Storage };
21
+ //#endregion
22
+ export { D1DatabaseConfig, R2StorageConfig, d1Database, r2Storage };