weifuwu 0.18.12 → 0.18.14

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 CHANGED
@@ -5319,7 +5319,7 @@ function streamResponse(reactStream, opts) {
5319
5319
  if (opts.isDev) {
5320
5320
  controller.enqueue(encoder2.encode(
5321
5321
  `
5322
- <script>(function(){var ws=new WebSocket((location.protocol==='https:'?'wss:':'ws:')+'//'+location.host+'${opts.base}/__weifuwu/livereload');ws.onmessage=function(e){if(e.data==='reload')location.reload()};ws.onclose=function(){setTimeout(function(){location.reload()},500)}})()</script>`
5322
+ <script>(function(){var ws=new WebSocket((location.protocol==='https:'?'wss:':'ws:')+'//'+location.host+'/__weifuwu/livereload');ws.onmessage=function(e){if(e.data==='reload')location.reload()};ws.onclose=function(){setTimeout(function(){location.reload()},500)}})()</script>`
5323
5323
  ));
5324
5324
  }
5325
5325
  } catch {
@@ -7,7 +7,7 @@ export default function RootLayout({ children }: { children: any }) {
7
7
  <title>Opencode Chat</title>
8
8
  </head>
9
9
  <body>
10
- <div id="__weifuwu_root">{children}</div>
10
+ {children}
11
11
  </body>
12
12
  </html>
13
13
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "weifuwu",
3
- "version": "0.18.12",
3
+ "version": "0.18.14",
4
4
  "description": "Web-standard HTTP framework for Node.js — (req, ctx) => Response",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",