@hot-updater/console 0.28.0 → 0.29.0
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/.output/nitro.json +17 -0
- package/.output/public/apple-touch-icon.png +0 -0
- package/.output/public/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2 +0 -0
- package/.output/public/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2 +0 -0
- package/.output/public/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2 +0 -0
- package/.output/public/assets/inter-greek-wght-normal-CkhJZR-_.woff2 +0 -0
- package/.output/public/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2 +0 -0
- package/.output/public/assets/inter-latin-wght-normal-Dx4kXJAl.woff2 +0 -0
- package/.output/public/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2 +0 -0
- package/.output/public/assets/main-Dlx8-qN-.js +61 -0
- package/.output/public/assets/routes-DB0tWmiJ.js +10 -0
- package/.output/public/assets/styles-Bfxg4M1x.css +2 -0
- package/.output/public/favicon-16x16.png +0 -0
- package/.output/public/favicon-32x32.png +0 -0
- package/.output/public/favicon.ico +0 -0
- package/.output/public/logo.svg +1 -0
- package/.output/public/manifest.json +30 -0
- package/.output/public/robots.txt +3 -0
- package/.output/server/_chunks/ssr-renderer.mjs +15 -0
- package/.output/server/_libs/@floating-ui/core+[...].mjs +698 -0
- package/.output/server/_libs/@floating-ui/dom+[...].mjs +644 -0
- package/.output/server/_libs/@floating-ui/react-dom+[...].mjs +839 -0
- package/.output/server/_libs/@radix-ui/react-alert-dialog+[...].mjs +2093 -0
- package/.output/server/_libs/@radix-ui/react-popper+[...].mjs +287 -0
- package/.output/server/_libs/@radix-ui/react-select+[...].mjs +1003 -0
- package/.output/server/_libs/@tanstack/devtools-event-client+[...].mjs +196 -0
- package/.output/server/_libs/@tanstack/form-core+[...].mjs +2396 -0
- package/.output/server/_libs/@tanstack/react-form+[...].mjs +298 -0
- package/.output/server/_libs/@tanstack/react-router+[...].mjs +13068 -0
- package/.output/server/_libs/@tanstack/react-table+[...].mjs +2372 -0
- package/.output/server/_libs/chownr.mjs +60 -0
- package/.output/server/_libs/class-variance-authority+clsx.mjs +69 -0
- package/.output/server/_libs/core-util-is.mjs +67 -0
- package/.output/server/_libs/dayjs.mjs +408 -0
- package/.output/server/_libs/h3+rou3+srvx.mjs +1158 -0
- package/.output/server/_libs/hookable.mjs +41 -0
- package/.output/server/_libs/immediate.mjs +57 -0
- package/.output/server/_libs/inherits.mjs +39 -0
- package/.output/server/_libs/isaacs__fs-minipass+minipass.mjs +1120 -0
- package/.output/server/_libs/isarray.mjs +10 -0
- package/.output/server/_libs/jszip+[...].mjs +8311 -0
- package/.output/server/_libs/lucide-react.mjs +371 -0
- package/.output/server/_libs/minizlib.mjs +345 -0
- package/.output/server/_libs/next-themes.mjs +49 -0
- package/.output/server/_libs/radix-ui__number.mjs +6 -0
- package/.output/server/_libs/radix-ui__primitive.mjs +9 -0
- package/.output/server/_libs/radix-ui__react-arrow.mjs +23 -0
- package/.output/server/_libs/radix-ui__react-collection.mjs +78 -0
- package/.output/server/_libs/radix-ui__react-direction.mjs +11 -0
- package/.output/server/_libs/radix-ui__react-label.mjs +22 -0
- package/.output/server/_libs/radix-ui__react-separator.mjs +31 -0
- package/.output/server/_libs/radix-ui__react-slider.mjs +451 -0
- package/.output/server/_libs/radix-ui__react-switch.mjs +118 -0
- package/.output/server/_libs/radix-ui__react-tooltip.mjs +491 -0
- package/.output/server/_libs/semver.mjs +1339 -0
- package/.output/server/_libs/sonner.mjs +908 -0
- package/.output/server/_libs/tailwind-merge.mjs +1962 -0
- package/.output/server/_libs/tanstack__history.mjs +322 -0
- package/.output/server/_libs/tanstack__query-core.mjs +2073 -0
- package/.output/server/_libs/tanstack__react-query.mjs +146 -0
- package/.output/server/_libs/tanstack__router-core.mjs +6 -0
- package/.output/server/_libs/tar.mjs +1996 -0
- package/.output/server/_libs/ufo.mjs +64 -0
- package/.output/server/_runtime.mjs +26 -0
- package/.output/server/_ssr/api-rpc-D3ZehMIN.mjs +217 -0
- package/.output/server/_ssr/config.server-JUYQ7UbI.mjs +26 -0
- package/.output/server/_ssr/deleteBundle-DWUxu9-K.mjs +22 -0
- package/.output/server/_ssr/extract-timestamp-from-uuidv7-B90UBADU.mjs +24 -0
- package/.output/server/_ssr/promoteBundle-DtMHuubR.mjs +1571 -0
- package/.output/server/_ssr/router-pgc7NX76.mjs +250 -0
- package/.output/server/_ssr/routes-PqTTQSoI.mjs +1833 -0
- package/.output/server/_ssr/sidebar-DXng0IOP.mjs +439 -0
- package/.output/server/_ssr/ssr.mjs +5050 -0
- package/.output/server/_ssr/start-DQK0r85G.mjs +4 -0
- package/.output/server/_tanstack-start-manifest_v-DTbQVOpU.mjs +17 -0
- package/.output/server/index.mjs +417 -0
- package/.output/server/node_modules/tslib/modules/index.js +70 -0
- package/.output/server/node_modules/tslib/modules/package.json +3 -0
- package/.output/server/node_modules/tslib/package.json +47 -0
- package/.output/server/node_modules/tslib/tslib.js +484 -0
- package/.output/server/package.json +9 -0
- package/README.md +191 -2
- package/package.json +77 -50
- package/dist/.gitkeep +0 -0
- package/dist/assets/favicon-BkwcEHsj.ico +0 -0
- package/dist/assets/index-DUlKsori.css +0 -1
- package/dist/assets/index-ijmIcyn1.js +0 -27
- package/dist/assets/logo-BYNFyja1.png +0 -0
- package/dist/index.cjs +0 -2129
- package/dist/index.d.cts +0 -218
- package/dist/index.d.ts +0 -218
- package/dist/index.html +0 -14
- package/dist/index.js +0 -2125
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
//#region node_modules/.nitro/vite/services/ssr/assets/_tanstack-start-manifest_v-DTbQVOpU.js
|
|
2
|
+
var tsrStartManifest = () => ({
|
|
3
|
+
"routes": {
|
|
4
|
+
"__root__": {
|
|
5
|
+
"filePath": "/home/runner/work/hot-updater/hot-updater/packages/console/src/routes/__root.tsx",
|
|
6
|
+
"children": ["/"],
|
|
7
|
+
"preloads": ["/assets/main-Dlx8-qN-.js"]
|
|
8
|
+
},
|
|
9
|
+
"/": {
|
|
10
|
+
"filePath": "/home/runner/work/hot-updater/hot-updater/packages/console/src/routes/index.tsx",
|
|
11
|
+
"preloads": ["/assets/routes-DB0tWmiJ.js"]
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"clientEntry": "/assets/main-Dlx8-qN-.js"
|
|
15
|
+
});
|
|
16
|
+
//#endregion
|
|
17
|
+
export { tsrStartManifest };
|
|
@@ -0,0 +1,417 @@
|
|
|
1
|
+
globalThis.__nitro_main__ = import.meta.url;
|
|
2
|
+
import { a as toEventHandler, c as serve, i as defineLazyEventHandler, n as HTTPError, r as defineHandler, s as NodeResponse, t as H3Core } from "./_libs/h3+rou3+srvx.mjs";
|
|
3
|
+
import "./_libs/hookable.mjs";
|
|
4
|
+
import { i as withoutTrailingSlash, n as joinURL, r as withLeadingSlash, t as decodePath } from "./_libs/ufo.mjs";
|
|
5
|
+
import { promises } from "node:fs";
|
|
6
|
+
import { fileURLToPath } from "node:url";
|
|
7
|
+
import { dirname, resolve } from "node:path";
|
|
8
|
+
//#region #nitro-vite-setup
|
|
9
|
+
function lazyService(loader) {
|
|
10
|
+
let promise, mod;
|
|
11
|
+
return { fetch(req) {
|
|
12
|
+
if (mod) return mod.fetch(req);
|
|
13
|
+
if (!promise) promise = loader().then((_mod) => mod = _mod.default || _mod);
|
|
14
|
+
return promise.then((mod) => mod.fetch(req));
|
|
15
|
+
} };
|
|
16
|
+
}
|
|
17
|
+
var services = { ["ssr"]: lazyService(() => import("./_ssr/ssr.mjs")) };
|
|
18
|
+
globalThis.__nitro_vite_envs__ = services;
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region ../../node_modules/.pnpm/nitro@3.0.260311-beta_@electric-sql+pglite@0.2.17_@libsql+client@0.15.15_better-sqlite3_fb41d3d5404f68a399873cc90b9e25fd/node_modules/nitro/dist/runtime/internal/error/prod.mjs
|
|
21
|
+
var errorHandler = (error, event) => {
|
|
22
|
+
const res = defaultHandler(error, event);
|
|
23
|
+
return new NodeResponse(typeof res.body === "string" ? res.body : JSON.stringify(res.body, null, 2), res);
|
|
24
|
+
};
|
|
25
|
+
function defaultHandler(error, event) {
|
|
26
|
+
const unhandled = error.unhandled ?? !HTTPError.isError(error);
|
|
27
|
+
const { status = 500, statusText = "" } = unhandled ? {} : error;
|
|
28
|
+
if (status === 404) {
|
|
29
|
+
const url = event.url || new URL(event.req.url);
|
|
30
|
+
const baseURL = "/";
|
|
31
|
+
if (/^\/[^/]/.test(baseURL) && !url.pathname.startsWith(baseURL)) return {
|
|
32
|
+
status: 302,
|
|
33
|
+
headers: new Headers({ location: `${baseURL}${url.pathname.slice(1)}${url.search}` })
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
const headers = new Headers(unhandled ? {} : error.headers);
|
|
37
|
+
headers.set("content-type", "application/json; charset=utf-8");
|
|
38
|
+
return {
|
|
39
|
+
status,
|
|
40
|
+
statusText,
|
|
41
|
+
headers,
|
|
42
|
+
body: {
|
|
43
|
+
error: true,
|
|
44
|
+
...unhandled ? {
|
|
45
|
+
status,
|
|
46
|
+
unhandled: true
|
|
47
|
+
} : typeof error.toJSON === "function" ? error.toJSON() : {
|
|
48
|
+
status,
|
|
49
|
+
statusText,
|
|
50
|
+
message: error.message
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
//#endregion
|
|
56
|
+
//#region #nitro/virtual/error-handler
|
|
57
|
+
var errorHandlers = [errorHandler];
|
|
58
|
+
async function error_handler_default(error, event) {
|
|
59
|
+
for (const handler of errorHandlers) try {
|
|
60
|
+
const response = await handler(error, event, { defaultHandler });
|
|
61
|
+
if (response) return response;
|
|
62
|
+
} catch (error) {
|
|
63
|
+
console.error(error);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
//#endregion
|
|
67
|
+
//#region ../../node_modules/.pnpm/nitro@3.0.260311-beta_@electric-sql+pglite@0.2.17_@libsql+client@0.15.15_better-sqlite3_fb41d3d5404f68a399873cc90b9e25fd/node_modules/nitro/dist/runtime/internal/route-rules.mjs
|
|
68
|
+
var headers = ((m) => function headersRouteRule(event) {
|
|
69
|
+
for (const [key, value] of Object.entries(m.options || {})) event.res.headers.set(key, value);
|
|
70
|
+
});
|
|
71
|
+
//#endregion
|
|
72
|
+
//#region #nitro/virtual/public-assets-data
|
|
73
|
+
var public_assets_data_default = {
|
|
74
|
+
"/apple-touch-icon.png": {
|
|
75
|
+
"type": "image/png",
|
|
76
|
+
"etag": "\"329e-uyxOmLQHjRnOIdaE3FE7O/uZ9l4\"",
|
|
77
|
+
"mtime": "2026-04-02T18:21:31.135Z",
|
|
78
|
+
"size": 12958,
|
|
79
|
+
"path": "../public/apple-touch-icon.png"
|
|
80
|
+
},
|
|
81
|
+
"/favicon-16x16.png": {
|
|
82
|
+
"type": "image/png",
|
|
83
|
+
"etag": "\"240-h6ktCVLfjIcsDJuLwUXP4nCJxlI\"",
|
|
84
|
+
"mtime": "2026-04-02T18:21:31.135Z",
|
|
85
|
+
"size": 576,
|
|
86
|
+
"path": "../public/favicon-16x16.png"
|
|
87
|
+
},
|
|
88
|
+
"/favicon-32x32.png": {
|
|
89
|
+
"type": "image/png",
|
|
90
|
+
"etag": "\"4f0-0qQrV3Eq3PzIigrp+8htf8vFCYA\"",
|
|
91
|
+
"mtime": "2026-04-02T18:21:31.136Z",
|
|
92
|
+
"size": 1264,
|
|
93
|
+
"path": "../public/favicon-32x32.png"
|
|
94
|
+
},
|
|
95
|
+
"/favicon.ico": {
|
|
96
|
+
"type": "image/vnd.microsoft.icon",
|
|
97
|
+
"etag": "\"3c2e-eMwmbJNNg6G+Uu+rqWtuvtI2Om4\"",
|
|
98
|
+
"mtime": "2026-04-02T18:21:31.135Z",
|
|
99
|
+
"size": 15406,
|
|
100
|
+
"path": "../public/favicon.ico"
|
|
101
|
+
},
|
|
102
|
+
"/logo.svg": {
|
|
103
|
+
"type": "image/svg+xml",
|
|
104
|
+
"etag": "\"478-zKvD9Jp5dDLCBmng0McewYMBxfs\"",
|
|
105
|
+
"mtime": "2026-04-02T18:21:31.135Z",
|
|
106
|
+
"size": 1144,
|
|
107
|
+
"path": "../public/logo.svg"
|
|
108
|
+
},
|
|
109
|
+
"/manifest.json": {
|
|
110
|
+
"type": "application/json",
|
|
111
|
+
"etag": "\"258-CQdbkGDhbZhU+yrcSXanXKWFEpw\"",
|
|
112
|
+
"mtime": "2026-04-02T18:21:31.136Z",
|
|
113
|
+
"size": 600,
|
|
114
|
+
"path": "../public/manifest.json"
|
|
115
|
+
},
|
|
116
|
+
"/robots.txt": {
|
|
117
|
+
"type": "text/plain; charset=utf-8",
|
|
118
|
+
"etag": "\"43-BEzmj4PuhUNHX+oW9uOnPSihxtU\"",
|
|
119
|
+
"mtime": "2026-04-02T18:21:31.136Z",
|
|
120
|
+
"size": 67,
|
|
121
|
+
"path": "../public/robots.txt"
|
|
122
|
+
},
|
|
123
|
+
"/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2": {
|
|
124
|
+
"type": "font/woff2",
|
|
125
|
+
"etag": "\"6568-cF1iUGbboMFZ8TfnP5HiMgl9II0\"",
|
|
126
|
+
"mtime": "2026-04-02T18:21:30.330Z",
|
|
127
|
+
"size": 25960,
|
|
128
|
+
"path": "../public/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2"
|
|
129
|
+
},
|
|
130
|
+
"/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2": {
|
|
131
|
+
"type": "font/woff2",
|
|
132
|
+
"etag": "\"493c-n3Oy9D6jvzfMjpClqox+Zo7ERQQ\"",
|
|
133
|
+
"mtime": "2026-04-02T18:21:30.331Z",
|
|
134
|
+
"size": 18748,
|
|
135
|
+
"path": "../public/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2"
|
|
136
|
+
},
|
|
137
|
+
"/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2": {
|
|
138
|
+
"type": "font/woff2",
|
|
139
|
+
"etag": "\"2be0-BP5iTzJeB8nLqYAgKpWNi5o1Zm8\"",
|
|
140
|
+
"mtime": "2026-04-02T18:21:30.331Z",
|
|
141
|
+
"size": 11232,
|
|
142
|
+
"path": "../public/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2"
|
|
143
|
+
},
|
|
144
|
+
"/assets/inter-greek-wght-normal-CkhJZR-_.woff2": {
|
|
145
|
+
"type": "font/woff2",
|
|
146
|
+
"etag": "\"4a34-xor/hj4YNqI52zFecXnUbzQ4Xs4\"",
|
|
147
|
+
"mtime": "2026-04-02T18:21:30.331Z",
|
|
148
|
+
"size": 18996,
|
|
149
|
+
"path": "../public/assets/inter-greek-wght-normal-CkhJZR-_.woff2"
|
|
150
|
+
},
|
|
151
|
+
"/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2": {
|
|
152
|
+
"type": "font/woff2",
|
|
153
|
+
"etag": "\"14c4c-zz61D7IQFMB9QxHvTAOk/Vh4ibQ\"",
|
|
154
|
+
"mtime": "2026-04-02T18:21:30.331Z",
|
|
155
|
+
"size": 85068,
|
|
156
|
+
"path": "../public/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2"
|
|
157
|
+
},
|
|
158
|
+
"/assets/inter-latin-wght-normal-Dx4kXJAl.woff2": {
|
|
159
|
+
"type": "font/woff2",
|
|
160
|
+
"etag": "\"bc80-8R1ym7Ck2DUNLqPQ/AYs9u8tUpg\"",
|
|
161
|
+
"mtime": "2026-04-02T18:21:30.331Z",
|
|
162
|
+
"size": 48256,
|
|
163
|
+
"path": "../public/assets/inter-latin-wght-normal-Dx4kXJAl.woff2"
|
|
164
|
+
},
|
|
165
|
+
"/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2": {
|
|
166
|
+
"type": "font/woff2",
|
|
167
|
+
"etag": "\"280c-nBythjoDQ0+5wVAendJ6wU7Xz2M\"",
|
|
168
|
+
"mtime": "2026-04-02T18:21:30.331Z",
|
|
169
|
+
"size": 10252,
|
|
170
|
+
"path": "../public/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2"
|
|
171
|
+
},
|
|
172
|
+
"/assets/routes-DB0tWmiJ.js": {
|
|
173
|
+
"type": "text/javascript; charset=utf-8",
|
|
174
|
+
"etag": "\"33432-UyAsBMnU9T2V9ystwTzCbstnIm0\"",
|
|
175
|
+
"mtime": "2026-04-02T18:21:30.330Z",
|
|
176
|
+
"size": 209970,
|
|
177
|
+
"path": "../public/assets/routes-DB0tWmiJ.js"
|
|
178
|
+
},
|
|
179
|
+
"/assets/styles-Bfxg4M1x.css": {
|
|
180
|
+
"type": "text/css; charset=utf-8",
|
|
181
|
+
"etag": "\"16bc6-p7C0HAFVLco8kaVMGNcx6RYBlpk\"",
|
|
182
|
+
"mtime": "2026-04-02T18:21:30.331Z",
|
|
183
|
+
"size": 93126,
|
|
184
|
+
"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-02T18:21:30.329Z",
|
|
190
|
+
"size": 493502,
|
|
191
|
+
"path": "../public/assets/main-Dlx8-qN-.js"
|
|
192
|
+
}
|
|
193
|
+
};
|
|
194
|
+
//#endregion
|
|
195
|
+
//#region #nitro/virtual/public-assets-node
|
|
196
|
+
function readAsset(id) {
|
|
197
|
+
const serverDir = dirname(fileURLToPath(globalThis.__nitro_main__));
|
|
198
|
+
return promises.readFile(resolve(serverDir, public_assets_data_default[id].path));
|
|
199
|
+
}
|
|
200
|
+
//#endregion
|
|
201
|
+
//#region #nitro/virtual/public-assets
|
|
202
|
+
var publicAssetBases = {};
|
|
203
|
+
function isPublicAssetURL(id = "") {
|
|
204
|
+
if (public_assets_data_default[id]) return true;
|
|
205
|
+
for (const base in publicAssetBases) if (id.startsWith(base)) return true;
|
|
206
|
+
return false;
|
|
207
|
+
}
|
|
208
|
+
function getAsset(id) {
|
|
209
|
+
return public_assets_data_default[id];
|
|
210
|
+
}
|
|
211
|
+
//#endregion
|
|
212
|
+
//#region ../../node_modules/.pnpm/nitro@3.0.260311-beta_@electric-sql+pglite@0.2.17_@libsql+client@0.15.15_better-sqlite3_fb41d3d5404f68a399873cc90b9e25fd/node_modules/nitro/dist/runtime/internal/static.mjs
|
|
213
|
+
var METHODS = new Set(["HEAD", "GET"]);
|
|
214
|
+
var EncodingMap = {
|
|
215
|
+
gzip: ".gz",
|
|
216
|
+
br: ".br",
|
|
217
|
+
zstd: ".zst"
|
|
218
|
+
};
|
|
219
|
+
var static_default = defineHandler((event) => {
|
|
220
|
+
if (event.req.method && !METHODS.has(event.req.method)) return;
|
|
221
|
+
let id = decodePath(withLeadingSlash(withoutTrailingSlash(event.url.pathname)));
|
|
222
|
+
let asset;
|
|
223
|
+
const encodings = [...(event.req.headers.get("accept-encoding") || "").split(",").map((e) => EncodingMap[e.trim()]).filter(Boolean).sort(), ""];
|
|
224
|
+
for (const encoding of encodings) for (const _id of [id + encoding, joinURL(id, "index.html" + encoding)]) {
|
|
225
|
+
const _asset = getAsset(_id);
|
|
226
|
+
if (_asset) {
|
|
227
|
+
asset = _asset;
|
|
228
|
+
id = _id;
|
|
229
|
+
break;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
if (!asset) {
|
|
233
|
+
if (isPublicAssetURL(id)) {
|
|
234
|
+
event.res.headers.delete("Cache-Control");
|
|
235
|
+
throw new HTTPError({ status: 404 });
|
|
236
|
+
}
|
|
237
|
+
return;
|
|
238
|
+
}
|
|
239
|
+
if (encodings.length > 1) event.res.headers.append("Vary", "Accept-Encoding");
|
|
240
|
+
if (event.req.headers.get("if-none-match") === asset.etag) {
|
|
241
|
+
event.res.status = 304;
|
|
242
|
+
event.res.statusText = "Not Modified";
|
|
243
|
+
return "";
|
|
244
|
+
}
|
|
245
|
+
const ifModifiedSinceH = event.req.headers.get("if-modified-since");
|
|
246
|
+
const mtimeDate = new Date(asset.mtime);
|
|
247
|
+
if (ifModifiedSinceH && asset.mtime && new Date(ifModifiedSinceH) >= mtimeDate) {
|
|
248
|
+
event.res.status = 304;
|
|
249
|
+
event.res.statusText = "Not Modified";
|
|
250
|
+
return "";
|
|
251
|
+
}
|
|
252
|
+
if (asset.type) event.res.headers.set("Content-Type", asset.type);
|
|
253
|
+
if (asset.etag && !event.res.headers.has("ETag")) event.res.headers.set("ETag", asset.etag);
|
|
254
|
+
if (asset.mtime && !event.res.headers.has("Last-Modified")) event.res.headers.set("Last-Modified", mtimeDate.toUTCString());
|
|
255
|
+
if (asset.encoding && !event.res.headers.has("Content-Encoding")) event.res.headers.set("Content-Encoding", asset.encoding);
|
|
256
|
+
if (asset.size > 0 && !event.res.headers.has("Content-Length")) event.res.headers.set("Content-Length", asset.size.toString());
|
|
257
|
+
return readAsset(id);
|
|
258
|
+
});
|
|
259
|
+
//#endregion
|
|
260
|
+
//#region #nitro/virtual/routing
|
|
261
|
+
var findRouteRules = /* @__PURE__ */ (() => {
|
|
262
|
+
const $0 = [{
|
|
263
|
+
name: "headers",
|
|
264
|
+
route: "/assets/**",
|
|
265
|
+
handler: headers,
|
|
266
|
+
options: { "cache-control": "public, max-age=31536000, immutable" }
|
|
267
|
+
}];
|
|
268
|
+
return (m, p) => {
|
|
269
|
+
let r = [];
|
|
270
|
+
if (p.charCodeAt(p.length - 1) === 47) p = p.slice(0, -1) || "/";
|
|
271
|
+
let s = p.split("/");
|
|
272
|
+
if (s.length > 1) {
|
|
273
|
+
if (s[1] === "assets") r.unshift({
|
|
274
|
+
data: $0,
|
|
275
|
+
params: { "_": s.slice(2).join("/") }
|
|
276
|
+
});
|
|
277
|
+
}
|
|
278
|
+
return r;
|
|
279
|
+
};
|
|
280
|
+
})();
|
|
281
|
+
var _lazy_iMhIIT = defineLazyEventHandler(() => import("./_chunks/ssr-renderer.mjs"));
|
|
282
|
+
var findRoute = /* @__PURE__ */ (() => {
|
|
283
|
+
const data = {
|
|
284
|
+
route: "/**",
|
|
285
|
+
handler: _lazy_iMhIIT
|
|
286
|
+
};
|
|
287
|
+
return ((_m, p) => {
|
|
288
|
+
return {
|
|
289
|
+
data,
|
|
290
|
+
params: { "_": p.slice(1) }
|
|
291
|
+
};
|
|
292
|
+
});
|
|
293
|
+
})();
|
|
294
|
+
var globalMiddleware = [toEventHandler(static_default)].filter(Boolean);
|
|
295
|
+
//#endregion
|
|
296
|
+
//#region ../../node_modules/.pnpm/nitro@3.0.260311-beta_@electric-sql+pglite@0.2.17_@libsql+client@0.15.15_better-sqlite3_fb41d3d5404f68a399873cc90b9e25fd/node_modules/nitro/dist/runtime/internal/app.mjs
|
|
297
|
+
var APP_ID = "default";
|
|
298
|
+
function useNitroApp() {
|
|
299
|
+
let instance = useNitroApp._instance;
|
|
300
|
+
if (instance) return instance;
|
|
301
|
+
instance = useNitroApp._instance = createNitroApp();
|
|
302
|
+
globalThis.__nitro__ = globalThis.__nitro__ || {};
|
|
303
|
+
globalThis.__nitro__[APP_ID] = instance;
|
|
304
|
+
return instance;
|
|
305
|
+
}
|
|
306
|
+
function createNitroApp() {
|
|
307
|
+
const hooks = void 0;
|
|
308
|
+
const captureError = (error, errorCtx) => {
|
|
309
|
+
if (errorCtx?.event) {
|
|
310
|
+
const errors = errorCtx.event.req.context?.nitro?.errors;
|
|
311
|
+
if (errors) errors.push({
|
|
312
|
+
error,
|
|
313
|
+
context: errorCtx
|
|
314
|
+
});
|
|
315
|
+
}
|
|
316
|
+
};
|
|
317
|
+
const h3App = createH3App({ onError(error, event) {
|
|
318
|
+
return error_handler_default(error, event);
|
|
319
|
+
} });
|
|
320
|
+
let appHandler = (req) => {
|
|
321
|
+
req.context ||= {};
|
|
322
|
+
req.context.nitro = req.context.nitro || { errors: [] };
|
|
323
|
+
return h3App.fetch(req);
|
|
324
|
+
};
|
|
325
|
+
return {
|
|
326
|
+
fetch: appHandler,
|
|
327
|
+
h3: h3App,
|
|
328
|
+
hooks,
|
|
329
|
+
captureError
|
|
330
|
+
};
|
|
331
|
+
}
|
|
332
|
+
function createH3App(config) {
|
|
333
|
+
const h3App = new H3Core(config);
|
|
334
|
+
h3App["~findRoute"] = (event) => findRoute(event.req.method, event.url.pathname);
|
|
335
|
+
h3App["~middleware"].push(...globalMiddleware);
|
|
336
|
+
h3App["~getMiddleware"] = (event, route) => {
|
|
337
|
+
const pathname = event.url.pathname;
|
|
338
|
+
const method = event.req.method;
|
|
339
|
+
const middleware = [];
|
|
340
|
+
{
|
|
341
|
+
const routeRules = getRouteRules(method, pathname);
|
|
342
|
+
event.context.routeRules = routeRules?.routeRules;
|
|
343
|
+
if (routeRules?.routeRuleMiddleware.length) middleware.push(...routeRules.routeRuleMiddleware);
|
|
344
|
+
}
|
|
345
|
+
middleware.push(...h3App["~middleware"]);
|
|
346
|
+
if (route?.data?.middleware?.length) middleware.push(...route.data.middleware);
|
|
347
|
+
return middleware;
|
|
348
|
+
};
|
|
349
|
+
return h3App;
|
|
350
|
+
}
|
|
351
|
+
function getRouteRules(method, pathname) {
|
|
352
|
+
const m = findRouteRules(method, pathname);
|
|
353
|
+
if (!m?.length) return { routeRuleMiddleware: [] };
|
|
354
|
+
const routeRules = {};
|
|
355
|
+
for (const layer of m) for (const rule of layer.data) {
|
|
356
|
+
const currentRule = routeRules[rule.name];
|
|
357
|
+
if (currentRule) {
|
|
358
|
+
if (rule.options === false) {
|
|
359
|
+
delete routeRules[rule.name];
|
|
360
|
+
continue;
|
|
361
|
+
}
|
|
362
|
+
if (typeof currentRule.options === "object" && typeof rule.options === "object") currentRule.options = {
|
|
363
|
+
...currentRule.options,
|
|
364
|
+
...rule.options
|
|
365
|
+
};
|
|
366
|
+
else currentRule.options = rule.options;
|
|
367
|
+
currentRule.route = rule.route;
|
|
368
|
+
currentRule.params = {
|
|
369
|
+
...currentRule.params,
|
|
370
|
+
...layer.params
|
|
371
|
+
};
|
|
372
|
+
} else if (rule.options !== false) routeRules[rule.name] = {
|
|
373
|
+
...rule,
|
|
374
|
+
params: layer.params
|
|
375
|
+
};
|
|
376
|
+
}
|
|
377
|
+
const middleware = [];
|
|
378
|
+
for (const rule of Object.values(routeRules)) {
|
|
379
|
+
if (rule.options === false || !rule.handler) continue;
|
|
380
|
+
middleware.push(rule.handler(rule));
|
|
381
|
+
}
|
|
382
|
+
return {
|
|
383
|
+
routeRules,
|
|
384
|
+
routeRuleMiddleware: middleware
|
|
385
|
+
};
|
|
386
|
+
}
|
|
387
|
+
//#endregion
|
|
388
|
+
//#region ../../node_modules/.pnpm/nitro@3.0.260311-beta_@electric-sql+pglite@0.2.17_@libsql+client@0.15.15_better-sqlite3_fb41d3d5404f68a399873cc90b9e25fd/node_modules/nitro/dist/runtime/internal/error/hooks.mjs
|
|
389
|
+
function _captureError(error, type) {
|
|
390
|
+
console.error(`[${type}]`, error);
|
|
391
|
+
useNitroApp().captureError?.(error, { tags: [type] });
|
|
392
|
+
}
|
|
393
|
+
function trapUnhandledErrors() {
|
|
394
|
+
process.on("unhandledRejection", (error) => _captureError(error, "unhandledRejection"));
|
|
395
|
+
process.on("uncaughtException", (error) => _captureError(error, "uncaughtException"));
|
|
396
|
+
}
|
|
397
|
+
//#endregion
|
|
398
|
+
//#region ../../node_modules/.pnpm/nitro@3.0.260311-beta_@electric-sql+pglite@0.2.17_@libsql+client@0.15.15_better-sqlite3_fb41d3d5404f68a399873cc90b9e25fd/node_modules/nitro/dist/presets/node/runtime/node-server.mjs
|
|
399
|
+
var _parsedPort = Number.parseInt(process.env.NITRO_PORT ?? process.env.PORT ?? "");
|
|
400
|
+
var port = Number.isNaN(_parsedPort) ? 3e3 : _parsedPort;
|
|
401
|
+
var host = process.env.NITRO_HOST || process.env.HOST;
|
|
402
|
+
var cert = process.env.NITRO_SSL_CERT;
|
|
403
|
+
var key = process.env.NITRO_SSL_KEY;
|
|
404
|
+
var nitroApp = useNitroApp();
|
|
405
|
+
serve({
|
|
406
|
+
port,
|
|
407
|
+
hostname: host,
|
|
408
|
+
tls: cert && key ? {
|
|
409
|
+
cert,
|
|
410
|
+
key
|
|
411
|
+
} : void 0,
|
|
412
|
+
fetch: nitroApp.fetch
|
|
413
|
+
});
|
|
414
|
+
trapUnhandledErrors();
|
|
415
|
+
var node_server_default = {};
|
|
416
|
+
//#endregion
|
|
417
|
+
export { node_server_default as default };
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import tslib from '../tslib.js';
|
|
2
|
+
const {
|
|
3
|
+
__extends,
|
|
4
|
+
__assign,
|
|
5
|
+
__rest,
|
|
6
|
+
__decorate,
|
|
7
|
+
__param,
|
|
8
|
+
__esDecorate,
|
|
9
|
+
__runInitializers,
|
|
10
|
+
__propKey,
|
|
11
|
+
__setFunctionName,
|
|
12
|
+
__metadata,
|
|
13
|
+
__awaiter,
|
|
14
|
+
__generator,
|
|
15
|
+
__exportStar,
|
|
16
|
+
__createBinding,
|
|
17
|
+
__values,
|
|
18
|
+
__read,
|
|
19
|
+
__spread,
|
|
20
|
+
__spreadArrays,
|
|
21
|
+
__spreadArray,
|
|
22
|
+
__await,
|
|
23
|
+
__asyncGenerator,
|
|
24
|
+
__asyncDelegator,
|
|
25
|
+
__asyncValues,
|
|
26
|
+
__makeTemplateObject,
|
|
27
|
+
__importStar,
|
|
28
|
+
__importDefault,
|
|
29
|
+
__classPrivateFieldGet,
|
|
30
|
+
__classPrivateFieldSet,
|
|
31
|
+
__classPrivateFieldIn,
|
|
32
|
+
__addDisposableResource,
|
|
33
|
+
__disposeResources,
|
|
34
|
+
__rewriteRelativeImportExtension,
|
|
35
|
+
} = tslib;
|
|
36
|
+
export {
|
|
37
|
+
__extends,
|
|
38
|
+
__assign,
|
|
39
|
+
__rest,
|
|
40
|
+
__decorate,
|
|
41
|
+
__param,
|
|
42
|
+
__esDecorate,
|
|
43
|
+
__runInitializers,
|
|
44
|
+
__propKey,
|
|
45
|
+
__setFunctionName,
|
|
46
|
+
__metadata,
|
|
47
|
+
__awaiter,
|
|
48
|
+
__generator,
|
|
49
|
+
__exportStar,
|
|
50
|
+
__createBinding,
|
|
51
|
+
__values,
|
|
52
|
+
__read,
|
|
53
|
+
__spread,
|
|
54
|
+
__spreadArrays,
|
|
55
|
+
__spreadArray,
|
|
56
|
+
__await,
|
|
57
|
+
__asyncGenerator,
|
|
58
|
+
__asyncDelegator,
|
|
59
|
+
__asyncValues,
|
|
60
|
+
__makeTemplateObject,
|
|
61
|
+
__importStar,
|
|
62
|
+
__importDefault,
|
|
63
|
+
__classPrivateFieldGet,
|
|
64
|
+
__classPrivateFieldSet,
|
|
65
|
+
__classPrivateFieldIn,
|
|
66
|
+
__addDisposableResource,
|
|
67
|
+
__disposeResources,
|
|
68
|
+
__rewriteRelativeImportExtension,
|
|
69
|
+
};
|
|
70
|
+
export default tslib;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "tslib",
|
|
3
|
+
"author": "Microsoft Corp.",
|
|
4
|
+
"homepage": "https://www.typescriptlang.org/",
|
|
5
|
+
"version": "2.8.1",
|
|
6
|
+
"license": "0BSD",
|
|
7
|
+
"description": "Runtime library for TypeScript helper functions",
|
|
8
|
+
"keywords": [
|
|
9
|
+
"TypeScript",
|
|
10
|
+
"Microsoft",
|
|
11
|
+
"compiler",
|
|
12
|
+
"language",
|
|
13
|
+
"javascript",
|
|
14
|
+
"tslib",
|
|
15
|
+
"runtime"
|
|
16
|
+
],
|
|
17
|
+
"bugs": {
|
|
18
|
+
"url": "https://github.com/Microsoft/TypeScript/issues"
|
|
19
|
+
},
|
|
20
|
+
"repository": {
|
|
21
|
+
"type": "git",
|
|
22
|
+
"url": "https://github.com/Microsoft/tslib.git"
|
|
23
|
+
},
|
|
24
|
+
"main": "tslib.js",
|
|
25
|
+
"module": "tslib.es6.js",
|
|
26
|
+
"jsnext:main": "tslib.es6.js",
|
|
27
|
+
"typings": "tslib.d.ts",
|
|
28
|
+
"sideEffects": false,
|
|
29
|
+
"exports": {
|
|
30
|
+
".": {
|
|
31
|
+
"module": {
|
|
32
|
+
"types": "./modules/index.d.ts",
|
|
33
|
+
"default": "./tslib.es6.mjs"
|
|
34
|
+
},
|
|
35
|
+
"import": {
|
|
36
|
+
"node": "./modules/index.js",
|
|
37
|
+
"default": {
|
|
38
|
+
"types": "./modules/index.d.ts",
|
|
39
|
+
"default": "./tslib.es6.mjs"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"default": "./tslib.js"
|
|
43
|
+
},
|
|
44
|
+
"./*": "./*",
|
|
45
|
+
"./": "./"
|
|
46
|
+
}
|
|
47
|
+
}
|