@hot-updater/firebase 1.0.0-rc.26 → 1.0.0-rc.28
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 +12 -2
- package/dist/index.d.cts +2 -0
- package/dist/index.d.mts +2 -0
- package/package.json +7 -7
|
@@ -4524,7 +4524,7 @@ const createKvAdapter = ({ store, tablePrefix = "" }) => {
|
|
|
4524
4524
|
};
|
|
4525
4525
|
//#endregion
|
|
4526
4526
|
//#region ../../packages/server/dist/version.mjs
|
|
4527
|
-
const HOT_UPDATER_SERVER_VERSION = "1.0.0-rc.
|
|
4527
|
+
const HOT_UPDATER_SERVER_VERSION = "1.0.0-rc.28";
|
|
4528
4528
|
//#endregion
|
|
4529
4529
|
//#region ../../packages/server/dist/handlerVersionRoutes.mjs
|
|
4530
4530
|
/**
|
|
@@ -7685,7 +7685,7 @@ const apiKeys = (options = {}) => {
|
|
|
7685
7685
|
const isOptional = (value, key, valid) => !Object.hasOwn(value, key) || valid(value[key]);
|
|
7686
7686
|
const isString = (value) => typeof value === "string";
|
|
7687
7687
|
/** An `UPDATE_FAILED` report's stored failure: a stage and a reason, and what else the client knew. */
|
|
7688
|
-
const isDatabaseBundleEventFailure = (value) => isDatabaseJsonObject(value) && isString(value.stage) && isString(value.reason) && isOptional(value, "resource", isString) && isOptional(value, "http_status", (status) => Number.isSafeInteger(status)) && isOptional(value, "transport", isString) && isOptional(value, "origin_code", isString) && isOptional(value, "previous_process_exit", isString);
|
|
7688
|
+
const isDatabaseBundleEventFailure = (value) => isDatabaseJsonObject(value) && isString(value.stage) && isString(value.reason) && isOptional(value, "resource", isString) && isOptional(value, "http_status", (status) => Number.isSafeInteger(status)) && isOptional(value, "transport", isString) && isOptional(value, "origin_code", isString) && isOptional(value, "error_message", isString) && isOptional(value, "error_stack", isString) && isOptional(value, "previous_process_exit", isString);
|
|
7689
7689
|
const isDatabaseBundleEventMetadata = (value) => isDatabaseJsonObject(value) && typeof value.cohort === "string" && (value.update_strategy === null || value.update_strategy === "fingerprint" || value.update_strategy === "appVersion") && (value.fingerprint_hash === null || typeof value.fingerprint_hash === "string") && (value.sdk_version === null || typeof value.sdk_version === "string") && isOptional(value, "failure", isDatabaseBundleEventFailure) && isOptional(value, "delivery", isString) && isOptional(value, "patch_fallback", (flag) => typeof flag === "boolean") && isOptional(value, "previous_process_exit", isString);
|
|
7690
7690
|
const isRecord$2 = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
7691
7691
|
const isIdentity$1 = (value) => typeof value === "string" && value.length > 0 && value.length <= 255;
|
|
@@ -8037,6 +8037,8 @@ function readFailure(value) {
|
|
|
8037
8037
|
const failure = isRecord$1(value) ? value : {};
|
|
8038
8038
|
const httpStatus = failure.httpStatus;
|
|
8039
8039
|
const originCode = readCode(failure.originCode);
|
|
8040
|
+
const errorMessage = typeof failure.errorMessage === "string" && failure.errorMessage.length <= 2048 ? failure.errorMessage : void 0;
|
|
8041
|
+
const errorStack = typeof failure.errorStack === "string" && failure.errorStack.length <= 4096 ? failure.errorStack : void 0;
|
|
8040
8042
|
const previousProcessExit = readCode(failure.previousProcessExit);
|
|
8041
8043
|
return {
|
|
8042
8044
|
stage: oneOf(STAGES, failure.stage),
|
|
@@ -8045,6 +8047,8 @@ function readFailure(value) {
|
|
|
8045
8047
|
...Number.isSafeInteger(httpStatus) && httpStatus >= 100 && httpStatus <= 599 ? { httpStatus } : {},
|
|
8046
8048
|
...failure.transport == null ? {} : { transport: oneOf(TRANSPORTS, failure.transport) },
|
|
8047
8049
|
...originCode === void 0 ? {} : { originCode },
|
|
8050
|
+
...errorMessage === void 0 ? {} : { errorMessage },
|
|
8051
|
+
...errorStack === void 0 ? {} : { errorStack },
|
|
8048
8052
|
...previousProcessExit === void 0 ? {} : { previousProcessExit }
|
|
8049
8053
|
};
|
|
8050
8054
|
}
|
|
@@ -8215,6 +8219,8 @@ function createBundleEventRow(input) {
|
|
|
8215
8219
|
failure: {
|
|
8216
8220
|
stage: failure.stage,
|
|
8217
8221
|
reason: failure.reason,
|
|
8222
|
+
...failure.errorMessage === void 0 ? {} : { error_message: failure.errorMessage },
|
|
8223
|
+
...failure.errorStack === void 0 ? {} : { error_stack: failure.errorStack },
|
|
8218
8224
|
...failure.resource === void 0 ? {} : { resource: failure.resource },
|
|
8219
8225
|
...failure.httpStatus === void 0 ? {} : { http_status: failure.httpStatus },
|
|
8220
8226
|
...failure.transport === void 0 ? {} : { transport: failure.transport },
|
|
@@ -8378,6 +8384,8 @@ const assertEventRows = (rows, input) => {
|
|
|
8378
8384
|
const toFailure = (failure) => ({
|
|
8379
8385
|
stage: failure.stage,
|
|
8380
8386
|
reason: failure.reason,
|
|
8387
|
+
...failure.error_message === void 0 ? {} : { errorMessage: failure.error_message },
|
|
8388
|
+
...failure.error_stack === void 0 ? {} : { errorStack: failure.error_stack },
|
|
8381
8389
|
...failure.resource === void 0 ? {} : { resource: failure.resource },
|
|
8382
8390
|
...failure.http_status === void 0 ? {} : { httpStatus: failure.http_status },
|
|
8383
8391
|
...failure.transport === void 0 ? {} : { transport: failure.transport },
|
|
@@ -8392,6 +8400,8 @@ const eventDetails = ({ type, metadata }) => ({
|
|
|
8392
8400
|
...type === "RECOVERED" && metadata.previous_process_exit !== void 0 ? { previousProcessExit: metadata.previous_process_exit } : {}
|
|
8393
8401
|
});
|
|
8394
8402
|
const toEventHistoryRow = (row) => ({
|
|
8403
|
+
...row.to_release_id == null ? {} : { toReleaseId: row.to_release_id },
|
|
8404
|
+
...row.metadata.sdk_version == null ? {} : { sdkVersion: row.metadata.sdk_version },
|
|
8395
8405
|
appVersion: row.app_version,
|
|
8396
8406
|
channel: row.channel,
|
|
8397
8407
|
cohort: row.metadata.cohort,
|
package/dist/index.d.cts
CHANGED
|
@@ -50,6 +50,8 @@ type BundleEventFailure = DatabaseJsonObject & {
|
|
|
50
50
|
readonly transport?: "timeout" | "dns" | "tls" | "connection" | "offline" | "cancelled" | "unknown";
|
|
51
51
|
/** The storage origin's error code, such as `ExpiredToken`. */
|
|
52
52
|
readonly origin_code?: string;
|
|
53
|
+
readonly error_message?: string;
|
|
54
|
+
readonly error_stack?: string;
|
|
53
55
|
/** Android's `ApplicationExitInfo` reason for the process before this one. */
|
|
54
56
|
readonly previous_process_exit?: string;
|
|
55
57
|
};
|
package/dist/index.d.mts
CHANGED
|
@@ -50,6 +50,8 @@ type BundleEventFailure = DatabaseJsonObject & {
|
|
|
50
50
|
readonly transport?: "timeout" | "dns" | "tls" | "connection" | "offline" | "cancelled" | "unknown";
|
|
51
51
|
/** The storage origin's error code, such as `ExpiredToken`. */
|
|
52
52
|
readonly origin_code?: string;
|
|
53
|
+
readonly error_message?: string;
|
|
54
|
+
readonly error_stack?: string;
|
|
53
55
|
/** Android's `ApplicationExitInfo` reason for the process before this one. */
|
|
54
56
|
readonly previous_process_exit?: string;
|
|
55
57
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hot-updater/firebase",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.0-rc.
|
|
4
|
+
"version": "1.0.0-rc.28",
|
|
5
5
|
"description": "React Native OTA solution for self-hosted",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
7
7
|
"types": "dist/index.d.cts",
|
|
@@ -37,10 +37,10 @@
|
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"hono": "4.12.34",
|
|
40
|
-
"@hot-updater/cli-tools": "1.0.0-rc.
|
|
41
|
-
"@hot-updater/protocol": "1.0.0-rc.
|
|
42
|
-
"@hot-updater/plugin-core": "1.0.0-rc.
|
|
43
|
-
"@hot-updater/server": "1.0.0-rc.
|
|
40
|
+
"@hot-updater/cli-tools": "1.0.0-rc.28",
|
|
41
|
+
"@hot-updater/protocol": "1.0.0-rc.27",
|
|
42
|
+
"@hot-updater/plugin-core": "1.0.0-rc.27",
|
|
43
|
+
"@hot-updater/server": "1.0.0-rc.28"
|
|
44
44
|
},
|
|
45
45
|
"publishConfig": {
|
|
46
46
|
"access": "public"
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
"firebase-tools": "15.29.0",
|
|
56
56
|
"fkill": "^9.0.0",
|
|
57
57
|
"mime": "^4.0.4",
|
|
58
|
-
"@hot-updater/mock": "1.0.0-rc.
|
|
59
|
-
"@hot-updater/test-utils": "1.0.0-rc.
|
|
58
|
+
"@hot-updater/mock": "1.0.0-rc.27",
|
|
59
|
+
"@hot-updater/test-utils": "1.0.0-rc.27"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
62
|
"firebase-admin": "*",
|