@hot-updater/firebase 0.31.0 → 0.31.2
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 +8 -6
- package/dist/iac/index.cjs +11 -7
- package/dist/iac/index.mjs +5 -1
- package/dist/index.cjs +3 -3
- package/dist/index.d.cts +2 -3
- package/dist/index.d.mts +2 -3
- package/package.json +8 -8
|
@@ -6,7 +6,7 @@ var __getOwnPropDesc$1 = Object.getOwnPropertyDescriptor;
|
|
|
6
6
|
var __getOwnPropNames$1 = Object.getOwnPropertyNames;
|
|
7
7
|
var __getProtoOf$1 = Object.getPrototypeOf;
|
|
8
8
|
var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
|
|
9
|
-
var __commonJSMin$1 = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
9
|
+
var __commonJSMin$1 = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
10
10
|
var __copyProps$1 = (to, from, except, desc) => {
|
|
11
11
|
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames$1(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
12
12
|
key = keys[i];
|
|
@@ -24,15 +24,15 @@ var __toESM$1 = (mod, isNodeMode, target) => (target = mod != null ? __create$1(
|
|
|
24
24
|
//#endregion
|
|
25
25
|
let _hot_updater_server_runtime = require("@hot-updater/server/runtime");
|
|
26
26
|
let firebase_admin = require("firebase-admin");
|
|
27
|
-
firebase_admin = __toESM$1(firebase_admin);
|
|
27
|
+
firebase_admin = __toESM$1(firebase_admin, 1);
|
|
28
28
|
let firebase_functions_v2_https = require("firebase-functions/v2/https");
|
|
29
29
|
let hono = require("hono");
|
|
30
30
|
let node_path = require("node:path");
|
|
31
|
-
node_path = __toESM$1(node_path);
|
|
31
|
+
node_path = __toESM$1(node_path, 1);
|
|
32
32
|
let fs_promises = require("fs/promises");
|
|
33
|
-
fs_promises = __toESM$1(fs_promises);
|
|
33
|
+
fs_promises = __toESM$1(fs_promises, 1);
|
|
34
34
|
let path = require("path");
|
|
35
|
-
path = __toESM$1(path);
|
|
35
|
+
path = __toESM$1(path, 1);
|
|
36
36
|
//#region ../../packages/core/dist/index.mjs
|
|
37
37
|
const stripBundleArtifactMetadata = (metadata) => metadata;
|
|
38
38
|
const getManifestStorageUri = (bundle) => bundle.manifestStorageUri ?? null;
|
|
@@ -2891,6 +2891,7 @@ var require_min_version$1 = /* @__PURE__ */ __commonJSMin$1(((exports, module) =
|
|
|
2891
2891
|
break;
|
|
2892
2892
|
case "<":
|
|
2893
2893
|
case "<=": break;
|
|
2894
|
+
/* istanbul ignore next */
|
|
2894
2895
|
default: throw new Error(`Unexpected operation: ${comparator.operator}`);
|
|
2895
2896
|
}
|
|
2896
2897
|
});
|
|
@@ -3198,7 +3199,7 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
3198
3199
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
3199
3200
|
var __getProtoOf = Object.getPrototypeOf;
|
|
3200
3201
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
3201
|
-
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
3202
|
+
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
3202
3203
|
var __copyProps = (to, from, except, desc) => {
|
|
3203
3204
|
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
3204
3205
|
key = keys[i];
|
|
@@ -4187,6 +4188,7 @@ var require_min_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4187
4188
|
break;
|
|
4188
4189
|
case "<":
|
|
4189
4190
|
case "<=": break;
|
|
4191
|
+
/* istanbul ignore next */
|
|
4190
4192
|
default: throw new Error(`Unexpected operation: ${comparator.operator}`);
|
|
4191
4193
|
}
|
|
4192
4194
|
});
|
package/dist/iac/index.cjs
CHANGED
|
@@ -6,7 +6,7 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
6
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
7
|
var __getProtoOf = Object.getPrototypeOf;
|
|
8
8
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
-
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
9
|
+
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
10
10
|
var __copyProps = (to, from, except, desc) => {
|
|
11
11
|
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
12
12
|
key = keys[i];
|
|
@@ -23,20 +23,20 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
23
23
|
}) : target, mod));
|
|
24
24
|
//#endregion
|
|
25
25
|
let fs = require("fs");
|
|
26
|
-
fs = __toESM(fs);
|
|
26
|
+
fs = __toESM(fs, 1);
|
|
27
27
|
let path = require("path");
|
|
28
|
-
path = __toESM(path);
|
|
28
|
+
path = __toESM(path, 1);
|
|
29
29
|
let _hot_updater_cli_tools = require("@hot-updater/cli-tools");
|
|
30
30
|
let node_url = require("node:url");
|
|
31
31
|
let node_child_process = require("node:child_process");
|
|
32
32
|
let node_string_decoder = require("node:string_decoder");
|
|
33
33
|
let node_util = require("node:util");
|
|
34
34
|
let node_process = require("node:process");
|
|
35
|
-
node_process = __toESM(node_process);
|
|
35
|
+
node_process = __toESM(node_process, 1);
|
|
36
36
|
let node_tty = require("node:tty");
|
|
37
|
-
node_tty = __toESM(node_tty);
|
|
37
|
+
node_tty = __toESM(node_tty, 1);
|
|
38
38
|
let node_path = require("node:path");
|
|
39
|
-
node_path = __toESM(node_path);
|
|
39
|
+
node_path = __toESM(node_path, 1);
|
|
40
40
|
let node_timers_promises = require("node:timers/promises");
|
|
41
41
|
let node_os = require("node:os");
|
|
42
42
|
let node_events = require("node:events");
|
|
@@ -46,7 +46,7 @@ let node_stream_promises = require("node:stream/promises");
|
|
|
46
46
|
let node_stream = require("node:stream");
|
|
47
47
|
let node_buffer = require("node:buffer");
|
|
48
48
|
let node_fs_promises = require("node:fs/promises");
|
|
49
|
-
node_fs_promises = __toESM(node_fs_promises);
|
|
49
|
+
node_fs_promises = __toESM(node_fs_promises, 1);
|
|
50
50
|
//#region ../../node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/_internal/compareValues.mjs
|
|
51
51
|
function compareValues(a, b, order) {
|
|
52
52
|
if (a < b) return order === "asc" ? -1 : 1;
|
|
@@ -6622,6 +6622,10 @@ const initFirebaseUser = async (cwd) => {
|
|
|
6622
6622
|
"--format=json"
|
|
6623
6623
|
], {
|
|
6624
6624
|
shell: true,
|
|
6625
|
+
/**
|
|
6626
|
+
* API [firestore.googleapis.com] not enabled on project [xxx]. Would you
|
|
6627
|
+
like to enable and retry (this will take a few minutes)? (y/N)?
|
|
6628
|
+
*/
|
|
6625
6629
|
input: "N\n"
|
|
6626
6630
|
});
|
|
6627
6631
|
if (JSON.parse(databases.stdout).length === 0) {
|
package/dist/iac/index.mjs
CHANGED
|
@@ -25,7 +25,7 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
25
25
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
26
26
|
var __getProtoOf = Object.getPrototypeOf;
|
|
27
27
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
28
|
-
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
28
|
+
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
29
29
|
var __copyProps = (to, from, except, desc) => {
|
|
30
30
|
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
31
31
|
key = keys[i];
|
|
@@ -6617,6 +6617,10 @@ const initFirebaseUser = async (cwd) => {
|
|
|
6617
6617
|
"--format=json"
|
|
6618
6618
|
], {
|
|
6619
6619
|
shell: true,
|
|
6620
|
+
/**
|
|
6621
|
+
* API [firestore.googleapis.com] not enabled on project [xxx]. Would you
|
|
6622
|
+
like to enable and retry (this will take a few minutes)? (y/N)?
|
|
6623
|
+
*/
|
|
6620
6624
|
input: "N\n"
|
|
6621
6625
|
});
|
|
6622
6626
|
if (JSON.parse(databases.stdout).length === 0) {
|
package/dist/index.cjs
CHANGED
|
@@ -24,11 +24,11 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
24
24
|
let _hot_updater_core = require("@hot-updater/core");
|
|
25
25
|
let _hot_updater_plugin_core = require("@hot-updater/plugin-core");
|
|
26
26
|
let firebase_admin = require("firebase-admin");
|
|
27
|
-
firebase_admin = __toESM(firebase_admin);
|
|
27
|
+
firebase_admin = __toESM(firebase_admin, 1);
|
|
28
28
|
let fs_promises = require("fs/promises");
|
|
29
|
-
fs_promises = __toESM(fs_promises);
|
|
29
|
+
fs_promises = __toESM(fs_promises, 1);
|
|
30
30
|
let path = require("path");
|
|
31
|
-
path = __toESM(path);
|
|
31
|
+
path = __toESM(path, 1);
|
|
32
32
|
//#region src/firebaseDatabase.ts
|
|
33
33
|
const bundleMatchesQueryWhere = (bundle, where) => {
|
|
34
34
|
if (!where) return true;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import * as _$_hot_updater_plugin_core0 from "@hot-updater/plugin-core";
|
|
2
1
|
import admin from "firebase-admin";
|
|
3
2
|
|
|
4
3
|
//#region src/firebaseDatabase.d.ts
|
|
5
|
-
declare const firebaseDatabase: (config: admin.AppOptions, hooks?:
|
|
4
|
+
declare const firebaseDatabase: (config: admin.AppOptions, hooks?: import("@hot-updater/plugin-core").DatabasePluginHooks) => () => import("@hot-updater/plugin-core").DatabasePlugin<unknown>;
|
|
6
5
|
//#endregion
|
|
7
6
|
//#region src/firebaseStorage.d.ts
|
|
8
7
|
interface FirebaseStorageConfig extends admin.AppOptions {
|
|
@@ -12,6 +11,6 @@ interface FirebaseStorageConfig extends admin.AppOptions {
|
|
|
12
11
|
*/
|
|
13
12
|
basePath?: string;
|
|
14
13
|
}
|
|
15
|
-
declare const firebaseStorage: (config: FirebaseStorageConfig, hooks?:
|
|
14
|
+
declare const firebaseStorage: (config: FirebaseStorageConfig, hooks?: import("@hot-updater/plugin-core").StoragePluginHooks) => () => import("@hot-updater/plugin-core").UniversalStoragePlugin<unknown>;
|
|
16
15
|
//#endregion
|
|
17
16
|
export { FirebaseStorageConfig, firebaseDatabase, firebaseStorage };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import * as _$_hot_updater_plugin_core0 from "@hot-updater/plugin-core";
|
|
2
1
|
import admin from "firebase-admin";
|
|
3
2
|
|
|
4
3
|
//#region src/firebaseDatabase.d.ts
|
|
5
|
-
declare const firebaseDatabase: (config: admin.AppOptions, hooks?:
|
|
4
|
+
declare const firebaseDatabase: (config: admin.AppOptions, hooks?: import("@hot-updater/plugin-core").DatabasePluginHooks) => () => import("@hot-updater/plugin-core").DatabasePlugin<unknown>;
|
|
6
5
|
//#endregion
|
|
7
6
|
//#region src/firebaseStorage.d.ts
|
|
8
7
|
interface FirebaseStorageConfig extends admin.AppOptions {
|
|
@@ -12,6 +11,6 @@ interface FirebaseStorageConfig extends admin.AppOptions {
|
|
|
12
11
|
*/
|
|
13
12
|
basePath?: string;
|
|
14
13
|
}
|
|
15
|
-
declare const firebaseStorage: (config: FirebaseStorageConfig, hooks?:
|
|
14
|
+
declare const firebaseStorage: (config: FirebaseStorageConfig, hooks?: import("@hot-updater/plugin-core").StoragePluginHooks) => () => import("@hot-updater/plugin-core").UniversalStoragePlugin<unknown>;
|
|
16
15
|
//#endregion
|
|
17
16
|
export { FirebaseStorageConfig, firebaseDatabase, firebaseStorage };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hot-updater/firebase",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.31.
|
|
4
|
+
"version": "0.31.2",
|
|
5
5
|
"description": "React Native OTA solution for self-hosted",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
7
7
|
"types": "dist/index.d.cts",
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"firebase": "^11.3.1",
|
|
38
38
|
"hono": "4.12.9",
|
|
39
|
-
"@hot-updater/
|
|
40
|
-
"@hot-updater/
|
|
41
|
-
"@hot-updater/
|
|
42
|
-
"@hot-updater/
|
|
39
|
+
"@hot-updater/core": "0.31.2",
|
|
40
|
+
"@hot-updater/plugin-core": "0.31.2",
|
|
41
|
+
"@hot-updater/cli-tools": "0.31.2",
|
|
42
|
+
"@hot-updater/server": "0.31.2"
|
|
43
43
|
},
|
|
44
44
|
"publishConfig": {
|
|
45
45
|
"access": "public"
|
|
@@ -54,9 +54,9 @@
|
|
|
54
54
|
"firebase-tools": "^13.32.0",
|
|
55
55
|
"fkill": "^9.0.0",
|
|
56
56
|
"mime": "^4.0.4",
|
|
57
|
-
"@hot-updater/js": "0.31.
|
|
58
|
-
"@hot-updater/mock": "0.31.
|
|
59
|
-
"@hot-updater/test-utils": "0.31.
|
|
57
|
+
"@hot-updater/js": "0.31.2",
|
|
58
|
+
"@hot-updater/mock": "0.31.2",
|
|
59
|
+
"@hot-updater/test-utils": "0.31.2"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
62
|
"firebase-admin": "*",
|