lopata 0.10.1 → 0.10.2

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.
@@ -1176,8 +1176,11 @@ function extractText(v3) {
1176
1176
  if (Array.isArray(v3))
1177
1177
  return v3.map(extractText).join("");
1178
1178
  if (typeof v3 === "object" && "props" in v3) {
1179
- const props = v3.props;
1180
- return extractText(props.children);
1179
+ const vnode = v3;
1180
+ if (typeof vnode.type === "function") {
1181
+ return extractText(vnode.type(vnode.props));
1182
+ }
1183
+ return extractText(vnode.props.children);
1181
1184
  }
1182
1185
  return String(v3);
1183
1186
  }
@@ -8,7 +8,7 @@
8
8
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
9
9
  <link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&display=swap" rel="stylesheet" />
10
10
 
11
- <link rel="stylesheet" crossorigin href="/__dashboard/assets/chunk-jzyhpjad.css"><script type="module" crossorigin src="/__dashboard/assets/chunk-1ekdqbs2.js"></script></head>
11
+ <link rel="stylesheet" crossorigin href="/__dashboard/assets/chunk-jzyhpjad.css"><script type="module" crossorigin src="/__dashboard/assets/chunk-jpd3vqkt.js"></script></head>
12
12
  <body class="h-full bg-surface text-ink" style="font-family: system-ui, -apple-system, sans-serif;">
13
13
  <script>
14
14
  // Apply saved theme before first paint to prevent flash
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lopata",
3
- "version": "0.10.1",
3
+ "version": "0.10.2",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -12,6 +12,7 @@ export const handlers = {
12
12
 
13
13
  if (ctx.routeDispatcher) {
14
14
  for (const r of ctx.routeDispatcher.getRegisteredRoutes()) {
15
+ if (r.hostPatterns) continue // already shown as host routes
15
16
  routes.push({ pattern: r.pattern, workerName: r.workerName, isFallback: false })
16
17
  }
17
18
  }