@hot-updater/firebase 0.36.7 → 1.0.0-rc.1
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/firebase/functions/index.cjs +5380 -3808
- package/dist/firebase/public/firestore.indexes.json +17 -7
- package/dist/iac/index.cjs +953 -34
- package/dist/iac/index.mjs +957 -39
- package/dist/index.cjs +821 -345
- package/dist/index.d.cts +10 -6
- package/dist/index.d.mts +10 -6
- package/dist/index.mjs +822 -322
- package/package.json +7 -8
package/dist/index.d.cts
CHANGED
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
import * as _$_hot_updater_plugin_core0 from "@hot-updater/plugin-core";
|
|
2
|
+
import { StoragePluginWith } from "@hot-updater/plugin-core";
|
|
2
3
|
import { AppOptions } from "firebase-admin/app";
|
|
3
4
|
|
|
4
5
|
//#region src/firebaseDatabase.d.ts
|
|
5
|
-
|
|
6
|
+
type FirebaseDatabaseConfig = AppOptions;
|
|
7
|
+
declare const firebaseDatabase: (config: FirebaseDatabaseConfig) => _$_hot_updater_plugin_core0.DatabasePlugin;
|
|
6
8
|
//#endregion
|
|
7
9
|
//#region src/firebaseStorage.d.ts
|
|
8
10
|
interface FirebaseStorageConfig extends AppOptions {
|
|
9
11
|
storageBucket: string;
|
|
10
|
-
/**
|
|
11
|
-
* Base path where bundles will be stored in the bucket
|
|
12
|
-
*/
|
|
12
|
+
/** Base path where bundles will be stored in the bucket. */
|
|
13
13
|
basePath?: string;
|
|
14
|
+
/** Optional CDN base URL. Firebase signed URLs are used when omitted. */
|
|
15
|
+
cdnUrl?: string;
|
|
16
|
+
/** Firebase signed URL lifetime in seconds. @default 3600 */
|
|
17
|
+
signedUrlExpiresIn?: number;
|
|
14
18
|
}
|
|
15
|
-
declare const firebaseStorage: (config: FirebaseStorageConfig
|
|
19
|
+
declare const firebaseStorage: (config: FirebaseStorageConfig) => StoragePluginWith<"put" | "get" | "getDownloadUrl" | "exists" | "delete">;
|
|
16
20
|
//#endregion
|
|
17
|
-
export { FirebaseStorageConfig, firebaseDatabase, firebaseStorage };
|
|
21
|
+
export { FirebaseDatabaseConfig, FirebaseStorageConfig, firebaseDatabase, firebaseStorage };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
import * as _$_hot_updater_plugin_core0 from "@hot-updater/plugin-core";
|
|
2
|
+
import { StoragePluginWith } from "@hot-updater/plugin-core";
|
|
2
3
|
import { AppOptions } from "firebase-admin/app";
|
|
3
4
|
|
|
4
5
|
//#region src/firebaseDatabase.d.ts
|
|
5
|
-
|
|
6
|
+
type FirebaseDatabaseConfig = AppOptions;
|
|
7
|
+
declare const firebaseDatabase: (config: FirebaseDatabaseConfig) => _$_hot_updater_plugin_core0.DatabasePlugin;
|
|
6
8
|
//#endregion
|
|
7
9
|
//#region src/firebaseStorage.d.ts
|
|
8
10
|
interface FirebaseStorageConfig extends AppOptions {
|
|
9
11
|
storageBucket: string;
|
|
10
|
-
/**
|
|
11
|
-
* Base path where bundles will be stored in the bucket
|
|
12
|
-
*/
|
|
12
|
+
/** Base path where bundles will be stored in the bucket. */
|
|
13
13
|
basePath?: string;
|
|
14
|
+
/** Optional CDN base URL. Firebase signed URLs are used when omitted. */
|
|
15
|
+
cdnUrl?: string;
|
|
16
|
+
/** Firebase signed URL lifetime in seconds. @default 3600 */
|
|
17
|
+
signedUrlExpiresIn?: number;
|
|
14
18
|
}
|
|
15
|
-
declare const firebaseStorage: (config: FirebaseStorageConfig
|
|
19
|
+
declare const firebaseStorage: (config: FirebaseStorageConfig) => StoragePluginWith<"put" | "get" | "getDownloadUrl" | "exists" | "delete">;
|
|
16
20
|
//#endregion
|
|
17
|
-
export { FirebaseStorageConfig, firebaseDatabase, firebaseStorage };
|
|
21
|
+
export { FirebaseDatabaseConfig, FirebaseStorageConfig, firebaseDatabase, firebaseStorage };
|