@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 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({ cwd: (0, __hot_updater_cli_tools.getCwd)() }) ?? null;
2001
- const storagePlugin = await config?.storage({ cwd: (0, __hot_updater_cli_tools.getCwd)() }) ?? null;
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 { getCwd, loadConfig } from "@hot-updater/cli-tools";
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({ cwd: getCwd() }) ?? null;
1997
- const storagePlugin = await config?.storage({ cwd: getCwd() }) ?? null;
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.10",
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.10"
51
+ "@hot-updater/mock": "0.21.12"
52
52
  },
53
53
  "dependencies": {
54
54
  "solid-icons": "^1.1.0",
55
- "@hot-updater/core": "0.21.10",
56
- "@hot-updater/cli-tools": "0.21.10",
57
- "@hot-updater/plugin-core": "0.21.10"
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",