@hot-updater/cloudflare 0.17.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/iac/index.cjs +12362 -12838
- package/dist/iac/index.d.cts +8 -4
- package/dist/iac/index.d.ts +8 -4
- package/dist/iac/index.js +12364 -12847
- package/dist/index.cjs +8062 -7779
- package/dist/index.d.cts +14 -10
- package/dist/index.d.ts +14 -10
- package/dist/index.js +8063 -7775
- package/package.json +7 -7
- package/sql/bundles.sql +6 -2
- package/worker/dist/README.md +1 -1
- package/worker/dist/index.js +2047 -1969
- package/worker/dist/index.js.map +4 -4
- package/worker/migrations/0003_hot-updater_0.18.0.sql +38 -0
package/dist/index.d.cts
CHANGED
|
@@ -1,18 +1,22 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import {
|
|
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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
databaseId: string;
|
|
7
|
+
accountId: string;
|
|
8
|
+
cloudflareApiToken: string;
|
|
8
9
|
}
|
|
9
|
-
declare const d1Database: (config: D1DatabaseConfig, hooks?: DatabasePluginHooks) => (options:
|
|
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
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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
|
-
|
|
21
|
+
//#endregion
|
|
22
|
+
export { D1DatabaseConfig, R2StorageConfig, d1Database, r2Storage };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,18 +1,22 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import {
|
|
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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
databaseId: string;
|
|
7
|
+
accountId: string;
|
|
8
|
+
cloudflareApiToken: string;
|
|
8
9
|
}
|
|
9
|
-
declare const d1Database: (config: D1DatabaseConfig, hooks?: DatabasePluginHooks) => (options:
|
|
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
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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
|
-
|
|
21
|
+
//#endregion
|
|
22
|
+
export { D1DatabaseConfig, R2StorageConfig, d1Database, r2Storage };
|