@mauroandre/velojs 0.0.48 → 0.0.49

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/server.js CHANGED
@@ -39,7 +39,7 @@ const N = (e) => JSON.stringify(e).replace(/</g, "\\u003c").replace(/>/g, "\\u00
39
39
  if (e.header("Cache-Control", "no-cache"), !s)
40
40
  return e.html(n);
41
41
  const a = `<script>window.__PAGE_DATA__=${N(s)}<\/script>`;
42
- return e.html(n.replace("</head>", `${a}</head>`));
42
+ return e.html(n.replace("</head>", () => `${a}</head>`));
43
43
  }, G = async (e, t) => {
44
44
  const s = t.req.param(), r = t.req.query(), o = { params: s, query: r, c: t }, n = await Promise.all(
45
45
  e.map(async (i) => {
package/dist/static.js CHANGED
@@ -21,7 +21,7 @@ async function h(c, e = "") {
21
21
  for (const p of u) {
22
22
  let f = s;
23
23
  for (const [m, w] of Object.entries(p))
24
- f = f.replace(`:${m}`, w);
24
+ f = f.replace(`:${m}`, () => w);
25
25
  o.push({ fullPath: f, module: t.module });
26
26
  }
27
27
  } else
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mauroandre/velojs",
3
- "version": "0.0.48",
3
+ "version": "0.0.49",
4
4
  "type": "module",
5
5
  "description": "Fullstack web framework built on Hono + Preact with Vite-powered AST transforms",
6
6
  "keywords": [