@hot-updater/console 0.12.3 → 0.12.5
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 -1
- package/dist/index.js +2 -1
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -46,6 +46,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
46
46
|
});
|
|
47
47
|
const external_path_namespaceObject = require("path");
|
|
48
48
|
var external_path_default = /*#__PURE__*/ __webpack_require__.n(external_path_namespaceObject);
|
|
49
|
+
const external_url_namespaceObject = require("url");
|
|
49
50
|
var getFilePath = (options)=>{
|
|
50
51
|
let filename = options.filename;
|
|
51
52
|
const defaultDocument = options.defaultDocument || "index.html";
|
|
@@ -2086,7 +2087,7 @@ const rpc = new hono_Hono().get("/getConfig", async (c)=>{
|
|
|
2086
2087
|
await databasePlugin?.commitBundle();
|
|
2087
2088
|
return c.json(true);
|
|
2088
2089
|
});
|
|
2089
|
-
const src_server_rslib_entry_dirname = external_path_default().dirname(
|
|
2090
|
+
const src_server_rslib_entry_dirname = external_path_default().dirname((0, external_url_namespaceObject.fileURLToPath)(__rslib_import_meta_url__));
|
|
2090
2091
|
const relativePathToScript = external_path_default().relative(process.cwd(), src_server_rslib_entry_dirname);
|
|
2091
2092
|
const src_server_rslib_entry_app = new hono_Hono().get("/ping", (c)=>c.text("pong")).route("/rpc", rpc).use("/assets/*", serveStatic({
|
|
2092
2093
|
root: relativePathToScript
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import __rslib_shim_module__ from 'module';
|
|
2
2
|
/*#__PURE__*/ import.meta.url;
|
|
3
3
|
import * as __WEBPACK_EXTERNAL_MODULE_path__ from "path";
|
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE_url__ from "url";
|
|
4
5
|
import * as __WEBPACK_EXTERNAL_MODULE_fs__ from "fs";
|
|
5
6
|
import * as __WEBPACK_EXTERNAL_MODULE__hot_updater_plugin_core_40c1c502__ from "@hot-updater/plugin-core";
|
|
6
7
|
var getFilePath = (options)=>{
|
|
@@ -2041,7 +2042,7 @@ const rpc = new hono_Hono().get("/getConfig", async (c)=>{
|
|
|
2041
2042
|
await databasePlugin?.commitBundle();
|
|
2042
2043
|
return c.json(true);
|
|
2043
2044
|
});
|
|
2044
|
-
const src_server_rslib_entry_dirname = __WEBPACK_EXTERNAL_MODULE_path__["default"].dirname(
|
|
2045
|
+
const src_server_rslib_entry_dirname = __WEBPACK_EXTERNAL_MODULE_path__["default"].dirname((0, __WEBPACK_EXTERNAL_MODULE_url__.fileURLToPath)(import.meta.url));
|
|
2045
2046
|
const relativePathToScript = __WEBPACK_EXTERNAL_MODULE_path__["default"].relative(process.cwd(), src_server_rslib_entry_dirname);
|
|
2046
2047
|
const src_server_rslib_entry_app = new hono_Hono().get("/ping", (c)=>c.text("pong")).route("/rpc", rpc).use("/assets/*", serveStatic({
|
|
2047
2048
|
root: relativePathToScript
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hot-updater/console",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.12.
|
|
4
|
+
"version": "0.12.5",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
7
7
|
"package.json"
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"@hono/node-server": "^1.13.4",
|
|
22
22
|
"@hono/valibot-validator": "^0.4.1",
|
|
23
23
|
"@hono/vite-dev-server": "^0.18.1",
|
|
24
|
-
"@hot-updater/mock": "0.12.
|
|
24
|
+
"@hot-updater/mock": "0.12.5",
|
|
25
25
|
"@kobalte/core": "^0.13.7",
|
|
26
26
|
"@solidjs/meta": "^0.29.4",
|
|
27
27
|
"@solidjs/router": "^0.14.10",
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
"vite-tsconfig-paths": "^5.1.4"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@hot-updater/core": "0.12.
|
|
56
|
-
"@hot-updater/plugin-core": "0.12.
|
|
55
|
+
"@hot-updater/core": "0.12.5",
|
|
56
|
+
"@hot-updater/plugin-core": "0.12.5"
|
|
57
57
|
},
|
|
58
58
|
"scripts": {
|
|
59
59
|
"build": "vite build --mode client && rslib build",
|