@hot-updater/firebase 0.36.8 → 0.36.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.
|
@@ -32,7 +32,7 @@ path = __toESM(path);
|
|
|
32
32
|
let firebase_admin_storage = require("firebase-admin/storage");
|
|
33
33
|
//#endregion
|
|
34
34
|
//#region ../../packages/server/dist/version.mjs
|
|
35
|
-
const HOT_UPDATER_SERVER_VERSION = "0.36.
|
|
35
|
+
const HOT_UPDATER_SERVER_VERSION = "0.36.11";
|
|
36
36
|
//#endregion
|
|
37
37
|
//#region ../../packages/server/dist/internalRouter.mjs
|
|
38
38
|
const normalizePath = (path) => {
|
|
@@ -2301,21 +2301,20 @@ const COMPRESSION_FORMATS = {
|
|
|
2301
2301
|
}
|
|
2302
2302
|
};
|
|
2303
2303
|
/**
|
|
2304
|
-
*
|
|
2305
|
-
* @param filename The filename to
|
|
2306
|
-
* @returns Compression format information
|
|
2304
|
+
* Finds the compression format matching a filename extension
|
|
2305
|
+
* @param filename The filename to match
|
|
2306
|
+
* @returns Compression format information, or undefined when nothing matches
|
|
2307
2307
|
*/
|
|
2308
|
-
function
|
|
2309
|
-
|
|
2310
|
-
return COMPRESSION_FORMATS.zip;
|
|
2308
|
+
function findCompressionFormat(filename) {
|
|
2309
|
+
return Object.values(COMPRESSION_FORMATS).find((info) => filename.endsWith(info.fileExtension));
|
|
2311
2310
|
}
|
|
2312
2311
|
/**
|
|
2313
2312
|
* Gets MIME type for a filename
|
|
2314
2313
|
* @param filename The filename to get MIME type for
|
|
2315
|
-
* @returns MIME type string
|
|
2314
|
+
* @returns MIME type string, or undefined when the filename is not an archive
|
|
2316
2315
|
*/
|
|
2317
2316
|
function getCompressionMimeType(filename) {
|
|
2318
|
-
return
|
|
2317
|
+
return findCompressionFormat(filename)?.mimeType;
|
|
2319
2318
|
}
|
|
2320
2319
|
/**
|
|
2321
2320
|
* Gets Content-Type for a bundle file with 3-tier fallback
|
|
@@ -3497,7 +3496,7 @@ const resolveUpdateInfoFromBundles = async ({ args, bundles, context }) => {
|
|
|
3497
3496
|
//#endregion
|
|
3498
3497
|
//#region ../plugin-core/dist/createStorageKeyBuilder.mjs
|
|
3499
3498
|
const createStorageKeyBuilder = (basePath) => (...args) => {
|
|
3500
|
-
return [basePath
|
|
3499
|
+
return [basePath?.replace(/^\/+|\/+$/g, "") ?? "", ...args].filter(Boolean).join("/");
|
|
3501
3500
|
};
|
|
3502
3501
|
//#endregion
|
|
3503
3502
|
//#region ../plugin-core/dist/createStoragePlugin.mjs
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hot-updater/firebase",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.36.
|
|
4
|
+
"version": "0.36.11",
|
|
5
5
|
"description": "React Native OTA solution for self-hosted",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
7
7
|
"types": "dist/index.d.cts",
|
|
@@ -43,10 +43,10 @@
|
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"hono": "4.12.34",
|
|
46
|
-
"@hot-updater/
|
|
47
|
-
"@hot-updater/
|
|
48
|
-
"@hot-updater/
|
|
49
|
-
"@hot-updater/
|
|
46
|
+
"@hot-updater/cli-tools": "0.36.11",
|
|
47
|
+
"@hot-updater/server": "0.36.11",
|
|
48
|
+
"@hot-updater/core": "0.36.11",
|
|
49
|
+
"@hot-updater/plugin-core": "0.36.11"
|
|
50
50
|
},
|
|
51
51
|
"publishConfig": {
|
|
52
52
|
"access": "public"
|
|
@@ -61,9 +61,9 @@
|
|
|
61
61
|
"firebase-tools": "^13.32.0",
|
|
62
62
|
"fkill": "^9.0.0",
|
|
63
63
|
"mime": "^4.0.4",
|
|
64
|
-
"@hot-updater/js": "0.36.
|
|
65
|
-
"@hot-updater/
|
|
66
|
-
"@hot-updater/
|
|
64
|
+
"@hot-updater/js": "0.36.11",
|
|
65
|
+
"@hot-updater/mock": "0.36.11",
|
|
66
|
+
"@hot-updater/test-utils": "0.36.11"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
69
|
"firebase-admin": "*",
|