@hot-updater/console 0.29.1 → 0.29.3

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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "date": "2026-04-02T19:08:25.539Z",
2
+ "date": "2026-04-04T12:00:05.705Z",
3
3
  "preset": "node-server",
4
4
  "framework": {
5
5
  "name": "nitro",
@@ -1,6 +1,6 @@
1
1
  import "../_libs/@radix-ui/react-alert-dialog+[...].mjs";
2
2
  import { n as createServerFn, r as TSS_SERVER_FUNCTION } from "./ssr.mjs";
3
- //#region node_modules/.nitro/vite/services/ssr/assets/api-rpc-D3ZehMIN.js
3
+ //#region node_modules/.nitro/vite/services/ssr/assets/api-rpc-CVBxLaGD.js
4
4
  var createServerRpc = (serverFnMeta, splitImportFn) => {
5
5
  const url = "/_serverFn/" + serverFnMeta.id;
6
6
  return Object.assign(splitImportFn, {
@@ -16,7 +16,7 @@ var getConfig_createServerFn_handler = createServerRpc({
16
16
  }, (opts) => getConfig.__executeServer(opts));
17
17
  var getConfig = createServerFn().handler(getConfig_createServerFn_handler, async () => {
18
18
  try {
19
- const { prepareConfig } = await import("./config.server-JUYQ7UbI.mjs");
19
+ const { prepareConfig } = await import("./config.server-TLOyHGWx.mjs");
20
20
  const { config } = await prepareConfig();
21
21
  return { console: config.console };
22
22
  } catch (error) {
@@ -31,7 +31,7 @@ var getChannels_createServerFn_handler = createServerRpc({
31
31
  }, (opts) => getChannels.__executeServer(opts));
32
32
  var getChannels = createServerFn().handler(getChannels_createServerFn_handler, async () => {
33
33
  try {
34
- const { prepareConfig } = await import("./config.server-JUYQ7UbI.mjs");
34
+ const { prepareConfig } = await import("./config.server-TLOyHGWx.mjs");
35
35
  const { databasePlugin } = await prepareConfig();
36
36
  return await databasePlugin.getChannels() ?? [];
37
37
  } catch (error) {
@@ -46,7 +46,7 @@ var getConfigLoaded_createServerFn_handler = createServerRpc({
46
46
  }, (opts) => getConfigLoaded.__executeServer(opts));
47
47
  var getConfigLoaded = createServerFn().handler(getConfigLoaded_createServerFn_handler, async () => {
48
48
  try {
49
- const { isConfigLoaded } = await import("./config.server-JUYQ7UbI.mjs");
49
+ const { isConfigLoaded } = await import("./config.server-TLOyHGWx.mjs");
50
50
  return { configLoaded: isConfigLoaded() };
51
51
  } catch (error) {
52
52
  console.error("Error during config loaded retrieval:", error);
@@ -60,7 +60,7 @@ var getBundles_createServerFn_handler = createServerRpc({
60
60
  }, (opts) => getBundles.__executeServer(opts));
61
61
  var getBundles = createServerFn({ method: "GET" }).inputValidator((input) => input).handler(getBundles_createServerFn_handler, async ({ data }) => {
62
62
  try {
63
- const { prepareConfig } = await import("./config.server-JUYQ7UbI.mjs");
63
+ const { prepareConfig } = await import("./config.server-TLOyHGWx.mjs");
64
64
  const query = {
65
65
  channel: data?.channel ?? void 0,
66
66
  platform: data?.platform ?? void 0,
@@ -95,7 +95,7 @@ var getBundle_createServerFn_handler = createServerRpc({
95
95
  }, (opts) => getBundle.__executeServer(opts));
96
96
  var getBundle = createServerFn({ method: "GET" }).inputValidator((input) => input).handler(getBundle_createServerFn_handler, async ({ data }) => {
97
97
  try {
98
- const { prepareConfig } = await import("./config.server-JUYQ7UbI.mjs");
98
+ const { prepareConfig } = await import("./config.server-TLOyHGWx.mjs");
99
99
  const { databasePlugin } = await prepareConfig();
100
100
  return await databasePlugin.getBundleById(data.bundleId) ?? null;
101
101
  } catch (error) {
@@ -110,7 +110,7 @@ var getBundleDownloadUrl_createServerFn_handler = createServerRpc({
110
110
  }, (opts) => getBundleDownloadUrl.__executeServer(opts));
111
111
  var getBundleDownloadUrl = createServerFn({ method: "GET" }).inputValidator((input) => input).handler(getBundleDownloadUrl_createServerFn_handler, async ({ data }) => {
112
112
  try {
113
- const { prepareConfig } = await import("./config.server-JUYQ7UbI.mjs");
113
+ const { prepareConfig } = await import("./config.server-TLOyHGWx.mjs");
114
114
  const { databasePlugin, storagePlugin } = await prepareConfig();
115
115
  const bundle = await databasePlugin.getBundleById(data.bundleId);
116
116
  if (!bundle) throw new Error("Bundle not found");
@@ -135,7 +135,7 @@ var updateBundle_createServerFn_handler = createServerRpc({
135
135
  }, (opts) => updateBundle.__executeServer(opts));
136
136
  var updateBundle = createServerFn({ method: "POST" }).inputValidator((input) => input).handler(updateBundle_createServerFn_handler, async ({ data }) => {
137
137
  try {
138
- const { prepareConfig } = await import("./config.server-JUYQ7UbI.mjs");
138
+ const { prepareConfig } = await import("./config.server-TLOyHGWx.mjs");
139
139
  const { databasePlugin } = await prepareConfig();
140
140
  await databasePlugin.updateBundle(data.bundleId, data.bundle);
141
141
  await databasePlugin.commitBundle();
@@ -157,7 +157,7 @@ var promoteBundle_createServerFn_handler = createServerRpc({
157
157
  }, (opts) => promoteBundle.__executeServer(opts));
158
158
  var promoteBundle = createServerFn({ method: "POST" }).inputValidator((input) => input).handler(promoteBundle_createServerFn_handler, async ({ data }) => {
159
159
  try {
160
- const { prepareConfig } = await import("./config.server-JUYQ7UbI.mjs");
160
+ const { prepareConfig } = await import("./config.server-TLOyHGWx.mjs");
161
161
  const { promoteBundle: promoteBundleWithConfig } = await import("./promoteBundle-DtMHuubR.mjs");
162
162
  const { config, databasePlugin, storagePlugin } = await prepareConfig();
163
163
  return {
@@ -180,7 +180,7 @@ var createBundle_createServerFn_handler = createServerRpc({
180
180
  }, (opts) => createBundle.__executeServer(opts));
181
181
  var createBundle = createServerFn({ method: "POST" }).inputValidator((input) => input).handler(createBundle_createServerFn_handler, async ({ data }) => {
182
182
  try {
183
- const { prepareConfig } = await import("./config.server-JUYQ7UbI.mjs");
183
+ const { prepareConfig } = await import("./config.server-TLOyHGWx.mjs");
184
184
  const { databasePlugin } = await prepareConfig();
185
185
  await databasePlugin.appendBundle(data);
186
186
  await databasePlugin.commitBundle();
@@ -200,7 +200,7 @@ var deleteBundle_createServerFn_handler = createServerRpc({
200
200
  }, (opts) => deleteBundle.__executeServer(opts));
201
201
  var deleteBundle = createServerFn({ method: "POST" }).inputValidator((input) => input).handler(deleteBundle_createServerFn_handler, async ({ data }) => {
202
202
  try {
203
- const { prepareConfig } = await import("./config.server-JUYQ7UbI.mjs");
203
+ const { prepareConfig } = await import("./config.server-TLOyHGWx.mjs");
204
204
  const { deleteBundle: deleteBundleWithStorage } = await import("./deleteBundle-DWUxu9-K.mjs");
205
205
  const { databasePlugin, storagePlugin } = await prepareConfig();
206
206
  await deleteBundleWithStorage(data, {
@@ -0,0 +1,39 @@
1
+ import { loadConfig } from "@hot-updater/cli-tools";
2
+ //#region node_modules/.nitro/vite/services/ssr/assets/config.server-TLOyHGWx.js
3
+ var configPromise = null;
4
+ var storagePluginPromise = null;
5
+ var loadCachedConfig = async () => {
6
+ if (!configPromise) configPromise = loadConfig(null).catch((error) => {
7
+ configPromise = null;
8
+ throw error;
9
+ });
10
+ return configPromise;
11
+ };
12
+ var loadCachedStoragePlugin = async (config) => {
13
+ if (!storagePluginPromise) storagePluginPromise = Promise.resolve(config.storage()).then((storagePlugin) => {
14
+ if (!storagePlugin) throw new Error("Storage plugin initialization failed");
15
+ return storagePlugin;
16
+ }).catch((error) => {
17
+ storagePluginPromise = null;
18
+ throw error;
19
+ });
20
+ return storagePluginPromise;
21
+ };
22
+ var prepareConfig = async () => {
23
+ try {
24
+ const config = await loadCachedConfig();
25
+ const [databasePlugin, storagePlugin] = await Promise.all([config.database(), loadCachedStoragePlugin(config)]);
26
+ if (!databasePlugin) throw new Error("Database plugin initialization failed");
27
+ return {
28
+ config,
29
+ databasePlugin,
30
+ storagePlugin
31
+ };
32
+ } catch (error) {
33
+ console.error("Error during configuration initialization:", error);
34
+ throw error;
35
+ }
36
+ };
37
+ var isConfigLoaded = () => Boolean(configPromise);
38
+ //#endregion
39
+ export { isConfigLoaded, prepareConfig };
@@ -8,7 +8,7 @@ import { t as QueryClient } from "../_libs/tanstack__query-core.mjs";
8
8
  import { r as QueryClientProvider } from "../_libs/tanstack__react-query.mjs";
9
9
  import { t as z } from "../_libs/next-themes.mjs";
10
10
  import { t as Toaster } from "../_libs/sonner.mjs";
11
- //#region node_modules/.nitro/vite/services/ssr/assets/router-pgc7NX76.js
11
+ //#region node_modules/.nitro/vite/services/ssr/assets/router-BnX8JLYH.js
12
12
  var import_jsx_runtime = require_jsx_runtime();
13
13
  var import_react = /* @__PURE__ */ __toESM(require_react());
14
14
  function HotUpdaterLogo({ className }) {
@@ -221,7 +221,7 @@ function RootLayout() {
221
221
  (0, import_react.useEffect)(() => {}, []);
222
222
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(SidebarProvider, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(AppSidebar, {}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SidebarInset, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Outlet, {}) })] });
223
223
  }
224
- var $$splitComponentImporter = () => import("./routes-PqTTQSoI.mjs");
224
+ var $$splitComponentImporter = () => import("./routes-z71qW0Uy.mjs");
225
225
  var rootRouteChildren = { IndexRoute: createFileRoute("/")({
226
226
  component: lazyRouteComponent($$splitComponentImporter, "component"),
227
227
  validateSearch: (search) => {
@@ -17,7 +17,7 @@ import { n as toast } from "../_libs/sonner.mjs";
17
17
  import { t as require_semver } from "../_libs/semver.mjs";
18
18
  import { i as getCoreRowModel, n as useReactTable, r as createColumnHelper, t as flexRender } from "../_libs/@tanstack/react-table+[...].mjs";
19
19
  import { n as require_dayjs_min, t as require_relativeTime } from "../_libs/dayjs.mjs";
20
- //#region node_modules/.nitro/vite/services/ssr/assets/routes-PqTTQSoI.js
20
+ //#region node_modules/.nitro/vite/services/ssr/assets/routes-z71qW0Uy.js
21
21
  var import_jsx_runtime = require_jsx_runtime();
22
22
  var import_react = /* @__PURE__ */ __toESM(require_react());
23
23
  var import_semver = /* @__PURE__ */ __toESM(require_semver());
@@ -4408,43 +4408,43 @@ function createMultiplexedStream(jsonStream, rawStreams) {
4408
4408
  var manifest = {
4409
4409
  "51a34c05479a893c7d320bd4cd1604427289d667698c48b9f30a01aabf8a5e68": {
4410
4410
  functionName: "getConfig_createServerFn_handler",
4411
- importer: () => import("./api-rpc-D3ZehMIN.mjs")
4411
+ importer: () => import("./api-rpc-CVBxLaGD.mjs")
4412
4412
  },
4413
4413
  "79ada05964de8f2123bfcd62b10097d59bf8fd689ef5c7161031e5871d8396c5": {
4414
4414
  functionName: "getChannels_createServerFn_handler",
4415
- importer: () => import("./api-rpc-D3ZehMIN.mjs")
4415
+ importer: () => import("./api-rpc-CVBxLaGD.mjs")
4416
4416
  },
4417
4417
  "f8bdca3d0579adb812d6404f55d9261a89cdb025e920b1fcad82883646a5fe9e": {
4418
4418
  functionName: "getConfigLoaded_createServerFn_handler",
4419
- importer: () => import("./api-rpc-D3ZehMIN.mjs")
4419
+ importer: () => import("./api-rpc-CVBxLaGD.mjs")
4420
4420
  },
4421
4421
  "00ccacb4a0212c83ec29f4d11719046ad91ea8291cfc557d514dbf00d3bd7f5f": {
4422
4422
  functionName: "getBundles_createServerFn_handler",
4423
- importer: () => import("./api-rpc-D3ZehMIN.mjs")
4423
+ importer: () => import("./api-rpc-CVBxLaGD.mjs")
4424
4424
  },
4425
4425
  "1bd85c2a50e24785cb6abb023a247a9f048f37ddfa85cbb1c57e579563bad013": {
4426
4426
  functionName: "getBundle_createServerFn_handler",
4427
- importer: () => import("./api-rpc-D3ZehMIN.mjs")
4427
+ importer: () => import("./api-rpc-CVBxLaGD.mjs")
4428
4428
  },
4429
4429
  "e000081a14772a0496dfdf615232fbbb1a23b89191d0e32f89a05dd67a1916f7": {
4430
4430
  functionName: "getBundleDownloadUrl_createServerFn_handler",
4431
- importer: () => import("./api-rpc-D3ZehMIN.mjs")
4431
+ importer: () => import("./api-rpc-CVBxLaGD.mjs")
4432
4432
  },
4433
4433
  "67f90ce4cd10fd0226cd9d77cdcd8d0f25a59a6ac406360b655e44296bc4208b": {
4434
4434
  functionName: "updateBundle_createServerFn_handler",
4435
- importer: () => import("./api-rpc-D3ZehMIN.mjs")
4435
+ importer: () => import("./api-rpc-CVBxLaGD.mjs")
4436
4436
  },
4437
4437
  "c4ef3bbb77ea8a4410623fd18a4741e2ff0668b1a97510bcdd032a8428eaa5da": {
4438
4438
  functionName: "promoteBundle_createServerFn_handler",
4439
- importer: () => import("./api-rpc-D3ZehMIN.mjs")
4439
+ importer: () => import("./api-rpc-CVBxLaGD.mjs")
4440
4440
  },
4441
4441
  "16cc7c2f080ea5b73e0c6bba815b110dbd7727796036d248ba0d8ae819ddef08": {
4442
4442
  functionName: "createBundle_createServerFn_handler",
4443
- importer: () => import("./api-rpc-D3ZehMIN.mjs")
4443
+ importer: () => import("./api-rpc-CVBxLaGD.mjs")
4444
4444
  },
4445
4445
  "3a27ff5679228b86a346b3fe42142e7a5bf0264f73173c0dbe5f07fb37c43cf7": {
4446
4446
  functionName: "deleteBundle_createServerFn_handler",
4447
- importer: () => import("./api-rpc-D3ZehMIN.mjs")
4447
+ importer: () => import("./api-rpc-CVBxLaGD.mjs")
4448
4448
  }
4449
4449
  };
4450
4450
  async function getServerFnById(id) {
@@ -4747,7 +4747,7 @@ var entriesPromise;
4747
4747
  var baseManifestPromise;
4748
4748
  var cachedFinalManifestPromise;
4749
4749
  async function loadEntries() {
4750
- const routerEntry = await import("./router-pgc7NX76.mjs");
4750
+ const routerEntry = await import("./router-BnX8JLYH.mjs");
4751
4751
  return {
4752
4752
  startEntry: await import("./start-DQK0r85G.mjs"),
4753
4753
  routerEntry
@@ -71,124 +71,124 @@ var headers = ((m) => function headersRouteRule(event) {
71
71
  //#endregion
72
72
  //#region #nitro/virtual/public-assets-data
73
73
  var public_assets_data_default = {
74
- "/apple-touch-icon.png": {
75
- "type": "image/png",
76
- "etag": "\"329e-uyxOmLQHjRnOIdaE3FE7O/uZ9l4\"",
77
- "mtime": "2026-04-02T19:08:24.268Z",
78
- "size": 12958,
79
- "path": "../public/apple-touch-icon.png"
80
- },
81
74
  "/favicon-16x16.png": {
82
75
  "type": "image/png",
83
76
  "etag": "\"240-h6ktCVLfjIcsDJuLwUXP4nCJxlI\"",
84
- "mtime": "2026-04-02T19:08:24.268Z",
77
+ "mtime": "2026-04-04T12:00:04.526Z",
85
78
  "size": 576,
86
79
  "path": "../public/favicon-16x16.png"
87
80
  },
81
+ "/apple-touch-icon.png": {
82
+ "type": "image/png",
83
+ "etag": "\"329e-uyxOmLQHjRnOIdaE3FE7O/uZ9l4\"",
84
+ "mtime": "2026-04-04T12:00:04.526Z",
85
+ "size": 12958,
86
+ "path": "../public/apple-touch-icon.png"
87
+ },
88
88
  "/favicon-32x32.png": {
89
89
  "type": "image/png",
90
90
  "etag": "\"4f0-0qQrV3Eq3PzIigrp+8htf8vFCYA\"",
91
- "mtime": "2026-04-02T19:08:24.268Z",
91
+ "mtime": "2026-04-04T12:00:04.526Z",
92
92
  "size": 1264,
93
93
  "path": "../public/favicon-32x32.png"
94
94
  },
95
95
  "/favicon.ico": {
96
96
  "type": "image/vnd.microsoft.icon",
97
97
  "etag": "\"3c2e-eMwmbJNNg6G+Uu+rqWtuvtI2Om4\"",
98
- "mtime": "2026-04-02T19:08:24.268Z",
98
+ "mtime": "2026-04-04T12:00:04.526Z",
99
99
  "size": 15406,
100
100
  "path": "../public/favicon.ico"
101
101
  },
102
102
  "/logo.svg": {
103
103
  "type": "image/svg+xml",
104
104
  "etag": "\"478-zKvD9Jp5dDLCBmng0McewYMBxfs\"",
105
- "mtime": "2026-04-02T19:08:24.268Z",
105
+ "mtime": "2026-04-04T12:00:04.526Z",
106
106
  "size": 1144,
107
107
  "path": "../public/logo.svg"
108
108
  },
109
109
  "/manifest.json": {
110
110
  "type": "application/json",
111
111
  "etag": "\"258-CQdbkGDhbZhU+yrcSXanXKWFEpw\"",
112
- "mtime": "2026-04-02T19:08:24.269Z",
112
+ "mtime": "2026-04-04T12:00:04.526Z",
113
113
  "size": 600,
114
114
  "path": "../public/manifest.json"
115
115
  },
116
116
  "/robots.txt": {
117
117
  "type": "text/plain; charset=utf-8",
118
118
  "etag": "\"43-BEzmj4PuhUNHX+oW9uOnPSihxtU\"",
119
- "mtime": "2026-04-02T19:08:24.269Z",
119
+ "mtime": "2026-04-04T12:00:04.526Z",
120
120
  "size": 67,
121
121
  "path": "../public/robots.txt"
122
122
  },
123
123
  "/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2": {
124
124
  "type": "font/woff2",
125
125
  "etag": "\"6568-cF1iUGbboMFZ8TfnP5HiMgl9II0\"",
126
- "mtime": "2026-04-02T19:08:23.439Z",
126
+ "mtime": "2026-04-04T12:00:03.728Z",
127
127
  "size": 25960,
128
128
  "path": "../public/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2"
129
129
  },
130
130
  "/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2": {
131
131
  "type": "font/woff2",
132
132
  "etag": "\"493c-n3Oy9D6jvzfMjpClqox+Zo7ERQQ\"",
133
- "mtime": "2026-04-02T19:08:23.439Z",
133
+ "mtime": "2026-04-04T12:00:03.728Z",
134
134
  "size": 18748,
135
135
  "path": "../public/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2"
136
136
  },
137
137
  "/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2": {
138
138
  "type": "font/woff2",
139
139
  "etag": "\"2be0-BP5iTzJeB8nLqYAgKpWNi5o1Zm8\"",
140
- "mtime": "2026-04-02T19:08:23.439Z",
140
+ "mtime": "2026-04-04T12:00:03.728Z",
141
141
  "size": 11232,
142
142
  "path": "../public/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2"
143
143
  },
144
144
  "/assets/inter-greek-wght-normal-CkhJZR-_.woff2": {
145
145
  "type": "font/woff2",
146
146
  "etag": "\"4a34-xor/hj4YNqI52zFecXnUbzQ4Xs4\"",
147
- "mtime": "2026-04-02T19:08:23.439Z",
147
+ "mtime": "2026-04-04T12:00:03.728Z",
148
148
  "size": 18996,
149
149
  "path": "../public/assets/inter-greek-wght-normal-CkhJZR-_.woff2"
150
150
  },
151
151
  "/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2": {
152
152
  "type": "font/woff2",
153
153
  "etag": "\"14c4c-zz61D7IQFMB9QxHvTAOk/Vh4ibQ\"",
154
- "mtime": "2026-04-02T19:08:23.439Z",
154
+ "mtime": "2026-04-04T12:00:03.728Z",
155
155
  "size": 85068,
156
156
  "path": "../public/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2"
157
157
  },
158
158
  "/assets/inter-latin-wght-normal-Dx4kXJAl.woff2": {
159
159
  "type": "font/woff2",
160
160
  "etag": "\"bc80-8R1ym7Ck2DUNLqPQ/AYs9u8tUpg\"",
161
- "mtime": "2026-04-02T19:08:23.439Z",
161
+ "mtime": "2026-04-04T12:00:03.728Z",
162
162
  "size": 48256,
163
163
  "path": "../public/assets/inter-latin-wght-normal-Dx4kXJAl.woff2"
164
164
  },
165
165
  "/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2": {
166
166
  "type": "font/woff2",
167
167
  "etag": "\"280c-nBythjoDQ0+5wVAendJ6wU7Xz2M\"",
168
- "mtime": "2026-04-02T19:08:23.439Z",
168
+ "mtime": "2026-04-04T12:00:03.728Z",
169
169
  "size": 10252,
170
170
  "path": "../public/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2"
171
171
  },
172
+ "/assets/main-Dlx8-qN-.js": {
173
+ "type": "text/javascript; charset=utf-8",
174
+ "etag": "\"787be-CeNiIm+8hi12YIUcPI+BeocO3xE\"",
175
+ "mtime": "2026-04-04T12:00:03.727Z",
176
+ "size": 493502,
177
+ "path": "../public/assets/main-Dlx8-qN-.js"
178
+ },
172
179
  "/assets/routes-DB0tWmiJ.js": {
173
180
  "type": "text/javascript; charset=utf-8",
174
181
  "etag": "\"33432-UyAsBMnU9T2V9ystwTzCbstnIm0\"",
175
- "mtime": "2026-04-02T19:08:23.439Z",
182
+ "mtime": "2026-04-04T12:00:03.728Z",
176
183
  "size": 209970,
177
184
  "path": "../public/assets/routes-DB0tWmiJ.js"
178
185
  },
179
186
  "/assets/styles-Bfxg4M1x.css": {
180
187
  "type": "text/css; charset=utf-8",
181
188
  "etag": "\"16bc6-p7C0HAFVLco8kaVMGNcx6RYBlpk\"",
182
- "mtime": "2026-04-02T19:08:23.439Z",
189
+ "mtime": "2026-04-04T12:00:03.728Z",
183
190
  "size": 93126,
184
191
  "path": "../public/assets/styles-Bfxg4M1x.css"
185
- },
186
- "/assets/main-Dlx8-qN-.js": {
187
- "type": "text/javascript; charset=utf-8",
188
- "etag": "\"787be-CeNiIm+8hi12YIUcPI+BeocO3xE\"",
189
- "mtime": "2026-04-02T19:08:23.438Z",
190
- "size": 493502,
191
- "path": "../public/assets/main-Dlx8-qN-.js"
192
192
  }
193
193
  };
194
194
  //#endregion
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hot-updater/console",
3
3
  "type": "module",
4
- "version": "0.29.1",
4
+ "version": "0.29.3",
5
5
  "files": [
6
6
  ".output",
7
7
  "package.json"
@@ -10,7 +10,7 @@
10
10
  "./package.json": "./package.json"
11
11
  },
12
12
  "peerDependencies": {
13
- "@hot-updater/cli-tools": "0.29.1"
13
+ "@hot-updater/cli-tools": "0.29.3"
14
14
  },
15
15
  "devDependencies": {
16
16
  "tslib": "^2.8.1",
@@ -58,10 +58,10 @@
58
58
  "vite-tsconfig-paths": "^6.1.1",
59
59
  "vitest": "4.1.0",
60
60
  "web-vitals": "^5.1.0",
61
- "@hot-updater/cli-tools": "0.29.1",
62
- "@hot-updater/core": "0.29.1",
63
- "@hot-updater/mock": "0.29.1",
64
- "@hot-updater/plugin-core": "0.29.1"
61
+ "@hot-updater/cli-tools": "0.29.3",
62
+ "@hot-updater/plugin-core": "0.29.3",
63
+ "@hot-updater/core": "0.29.3",
64
+ "@hot-updater/mock": "0.29.3"
65
65
  },
66
66
  "description": "React Native OTA solution for self-hosted",
67
67
  "license": "MIT",
@@ -1,26 +0,0 @@
1
- import { loadConfig } from "@hot-updater/cli-tools";
2
- //#region node_modules/.nitro/vite/services/ssr/assets/config.server-JUYQ7UbI.js
3
- var configPromise = null;
4
- var prepareConfig = async () => {
5
- if (!configPromise) configPromise = (async () => {
6
- try {
7
- const config = await loadConfig(null);
8
- const databasePlugin = await config.database();
9
- const storagePlugin = await config.storage();
10
- if (!databasePlugin) throw new Error("Database plugin initialization failed");
11
- if (!storagePlugin) throw new Error("Storage plugin initialization failed");
12
- return {
13
- config,
14
- databasePlugin,
15
- storagePlugin
16
- };
17
- } catch (error) {
18
- console.error("Error during configuration initialization:", error);
19
- throw error;
20
- }
21
- })();
22
- return configPromise;
23
- };
24
- var isConfigLoaded = () => !!configPromise;
25
- //#endregion
26
- export { isConfigLoaded, prepareConfig };