@riebeckite/honox 0.3.0 → 0.3.1
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.js +19 -3
- package/package.json +13 -13
package/dist/index.js
CHANGED
|
@@ -4213,9 +4213,11 @@ function warmFirstPage(server, origin) {
|
|
|
4213
4213
|
async function waitForDevWarmup(origin, timeoutMs = 3e5) {
|
|
4214
4214
|
const deadline = performance.now() + timeoutMs;
|
|
4215
4215
|
while (performance.now() < deadline) {
|
|
4216
|
-
|
|
4217
|
-
|
|
4218
|
-
|
|
4216
|
+
for (const candidate of loopbackProbeUrls(origin)) {
|
|
4217
|
+
try {
|
|
4218
|
+
return (await fetch(candidate, { redirect: "manual" })).status;
|
|
4219
|
+
} catch {
|
|
4220
|
+
}
|
|
4219
4221
|
}
|
|
4220
4222
|
await new Promise((resolve7) => {
|
|
4221
4223
|
setTimeout(resolve7, 100).unref();
|
|
@@ -4223,6 +4225,20 @@ async function waitForDevWarmup(origin, timeoutMs = 3e5) {
|
|
|
4223
4225
|
}
|
|
4224
4226
|
return void 0;
|
|
4225
4227
|
}
|
|
4228
|
+
function loopbackProbeUrls(url) {
|
|
4229
|
+
let parsed;
|
|
4230
|
+
try {
|
|
4231
|
+
parsed = new URL(url);
|
|
4232
|
+
} catch {
|
|
4233
|
+
return [url];
|
|
4234
|
+
}
|
|
4235
|
+
if (parsed.hostname.toLowerCase() !== "localhost") return [url];
|
|
4236
|
+
const ipv4 = new URL(url);
|
|
4237
|
+
ipv4.hostname = "127.0.0.1";
|
|
4238
|
+
const ipv6 = new URL(url);
|
|
4239
|
+
ipv6.hostname = "[::1]";
|
|
4240
|
+
return [url, ipv4.href, ipv6.href];
|
|
4241
|
+
}
|
|
4226
4242
|
function contentBareImportResolver(getApplication, ensure) {
|
|
4227
4243
|
return {
|
|
4228
4244
|
name: "riebeckite-content-bare-imports",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riebeckite/honox",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -44,17 +44,17 @@
|
|
|
44
44
|
"hono": "^4.13.18",
|
|
45
45
|
"honox": "0.1.62",
|
|
46
46
|
"vite": "^8.3.7",
|
|
47
|
-
"@riebeckite/ai": "0.3.
|
|
48
|
-
"@riebeckite/dev-inspector": "0.3.
|
|
49
|
-
"@riebeckite/
|
|
50
|
-
"@riebeckite/plugin-color-mode": "0.3.
|
|
51
|
-
"@riebeckite/
|
|
52
|
-
"@riebeckite/runtime": "0.3.
|
|
53
|
-
"@riebeckite/
|
|
54
|
-
"@riebeckite/
|
|
47
|
+
"@riebeckite/ai": "0.3.1",
|
|
48
|
+
"@riebeckite/dev-inspector": "0.3.1",
|
|
49
|
+
"@riebeckite/node": "0.3.1",
|
|
50
|
+
"@riebeckite/plugin-color-mode": "0.3.1",
|
|
51
|
+
"@riebeckite/og-image": "0.3.1",
|
|
52
|
+
"@riebeckite/runtime": "0.3.1",
|
|
53
|
+
"@riebeckite/spa": "0.3.1",
|
|
54
|
+
"@riebeckite/ui": "0.3.1"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
|
-
"@riebeckite/core": "^0.3.
|
|
57
|
+
"@riebeckite/core": "^0.3.1"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@d2lang/d2": "^0.1.34",
|
|
@@ -62,9 +62,9 @@
|
|
|
62
62
|
"@hono/vite-build": "^1.11.1",
|
|
63
63
|
"@marp-team/marp-core": "^4.4.0",
|
|
64
64
|
"tsx": "^4.22.4",
|
|
65
|
-
"@riebeckite/
|
|
66
|
-
"@riebeckite/core": "0.3.
|
|
67
|
-
"@riebeckite/
|
|
65
|
+
"@riebeckite/plugin-bases": "0.3.1",
|
|
66
|
+
"@riebeckite/core": "0.3.1",
|
|
67
|
+
"@riebeckite/test": "0.3.1"
|
|
68
68
|
},
|
|
69
69
|
"publishConfig": {
|
|
70
70
|
"access": "public"
|