@hot-updater/console 0.21.10 → 0.21.12
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/index.cjs +2 -2
- package/dist/index.js +3 -3
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -1997,8 +1997,8 @@ const prepareConfig = async () => {
|
|
|
1997
1997
|
if (!configPromise) configPromise = (async () => {
|
|
1998
1998
|
try {
|
|
1999
1999
|
const config = await (0, __hot_updater_cli_tools.loadConfig)(null);
|
|
2000
|
-
const databasePlugin = await config?.database(
|
|
2001
|
-
const storagePlugin = await config?.storage(
|
|
2000
|
+
const databasePlugin = await config?.database() ?? null;
|
|
2001
|
+
const storagePlugin = await config?.storage() ?? null;
|
|
2002
2002
|
if (!databasePlugin) throw new Error("Database plugin initialization failed");
|
|
2003
2003
|
return {
|
|
2004
2004
|
config,
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createReadStream, lstatSync } from "fs";
|
|
2
2
|
import path from "path";
|
|
3
3
|
import { fileURLToPath } from "url";
|
|
4
|
-
import {
|
|
4
|
+
import { loadConfig } from "@hot-updater/cli-tools";
|
|
5
5
|
|
|
6
6
|
//#region rolldown:runtime
|
|
7
7
|
var __create = Object.create;
|
|
@@ -1993,8 +1993,8 @@ const prepareConfig = async () => {
|
|
|
1993
1993
|
if (!configPromise) configPromise = (async () => {
|
|
1994
1994
|
try {
|
|
1995
1995
|
const config = await loadConfig(null);
|
|
1996
|
-
const databasePlugin = await config?.database(
|
|
1997
|
-
const storagePlugin = await config?.storage(
|
|
1996
|
+
const databasePlugin = await config?.database() ?? null;
|
|
1997
|
+
const storagePlugin = await config?.storage() ?? null;
|
|
1998
1998
|
if (!databasePlugin) throw new Error("Database plugin initialization failed");
|
|
1999
1999
|
return {
|
|
2000
2000
|
config,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hot-updater/console",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.21.
|
|
4
|
+
"version": "0.21.12",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
7
7
|
"package.json"
|
|
@@ -48,13 +48,13 @@
|
|
|
48
48
|
"vite": "^6.1.0",
|
|
49
49
|
"vite-plugin-solid": "^2.11.1",
|
|
50
50
|
"vite-tsconfig-paths": "^5.1.4",
|
|
51
|
-
"@hot-updater/mock": "0.21.
|
|
51
|
+
"@hot-updater/mock": "0.21.12"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"solid-icons": "^1.1.0",
|
|
55
|
-
"@hot-updater/
|
|
56
|
-
"@hot-updater/
|
|
57
|
-
"@hot-updater/
|
|
55
|
+
"@hot-updater/cli-tools": "0.21.12",
|
|
56
|
+
"@hot-updater/plugin-core": "0.21.12",
|
|
57
|
+
"@hot-updater/core": "0.21.12"
|
|
58
58
|
},
|
|
59
59
|
"description": "React Native OTA solution for self-hosted",
|
|
60
60
|
"license": "MIT",
|