@bobtail.software/b-ssr 1.0.49 → 1.0.50

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.
@@ -26,7 +26,7 @@ const require = createRequire(import.meta.url);
26
26
  const module = { exports: {} };
27
27
  const exports = module.exports;
28
28
  `+t+`
29
- export default module.exports;`}return null};function oe(t){let m=we(t),n="";return m.length>0&&(n=`args: { ${m.join("; ")} }`),n||(n="args: { signal?: AbortSignal }"),`export declare const ${t.name}: (${n}, ssrContext?: { req?: FastifyRequest, reply?: FastifyReply }) => ${t.returnType};`}function ae(t,m){if(t.length===0)return"";let l=c.default.relative(process.cwd(),m).replace(/\\/g,"/");return`
29
+ export default module.exports;`}return null};function oe(t){let m=we(t),n="";return m.length>0&&(n=`args: { ${m.join("; ")} }`),n||(n="args: { signal?: AbortSignal }"),`export declare const ${t.name}: (${n}, ssrContext?: { req?: FastifyRequest, reply?: FastifyReply }) => ${t.returnType};`}function ae(t,m){if(t.length===0)return"";let l=`./${c.default.relative(process.cwd(),m).replace(/\\/g,"/")}`;return`
30
30
 
31
31
  if (typeof window !== 'undefined' && typeof document !== 'undefined') {
32
32
  throw new Error('\u{1F6A8} [B-SSR SECURITY ALERT] Server-side code leaked to browser: ${l}');
@@ -26,7 +26,7 @@ const require = createRequire(import.meta.url);
26
26
  const module = { exports: {} };
27
27
  const exports = module.exports;
28
28
  `+t+`
29
- export default module.exports;`}return null};function ne(t){let u=he(t),r="";return u.length>0&&(r=`args: { ${u.join("; ")} }`),r||(r="args: { signal?: AbortSignal }"),`export declare const ${t.name}: (${r}, ssrContext?: { req?: FastifyRequest, reply?: FastifyReply }) => ${t.returnType};`}function se(t,u){if(t.length===0)return"";let o=c.relative(process.cwd(),u).replace(/\\/g,"/");return`
29
+ export default module.exports;`}return null};function ne(t){let u=he(t),r="";return u.length>0&&(r=`args: { ${u.join("; ")} }`),r||(r="args: { signal?: AbortSignal }"),`export declare const ${t.name}: (${r}, ssrContext?: { req?: FastifyRequest, reply?: FastifyReply }) => ${t.returnType};`}function se(t,u){if(t.length===0)return"";let o=`./${c.relative(process.cwd(),u).replace(/\\/g,"/")}`;return`
30
30
 
31
31
  if (typeof window !== 'undefined' && typeof document !== 'undefined') {
32
32
  throw new Error('\u{1F6A8} [B-SSR SECURITY ALERT] Server-side code leaked to browser: ${o}');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bobtail.software/b-ssr",
3
- "version": "1.0.49",
3
+ "version": "1.0.50",
4
4
  "description": "Fastify + Vite SSR Plugin wrapper with RPC",
5
5
  "author": "Victor Moreno <info@bobtail.software> (https://bobtail.software)",
6
6
  "license": "GPL-3.0",