@bobtail.software/b-ssr 1.0.24 → 1.0.25

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.
@@ -599,9 +599,14 @@ node_modules`),!r)return;let i=(0,Isr.default)({allowRelativePaths:!0}).add(r);r
599
599
  if (prop === 'addRpcRoute') return (url, options) => rpcOptionsMap.set(url, options);
600
600
  if (prop === 'addRenderRoute') return (url, options) => renderOptionsMap.set(url, options);
601
601
  if (prop === 'addLoaderRoute') return (url, options) => loaderApiOptionsMap.set(url, options);
602
-
603
- // "Agujero negro": devuelve una funci\xF3n muda para cualquier otro m\xE9todo
604
- return () => {};
602
+ if (prop === 'register') return (plugin) => {
603
+ if (typeof plugin === 'function') plugin(mockFastify);
604
+ return mockFastify;
605
+ };
606
+ if (prop === 'decorate' || prop === 'decorateReply' || prop === 'addHook' || prop === 'after') {
607
+ return () => mockFastify;
608
+ }
609
+ return () => mockFastify;
605
610
  }
606
611
  });
607
612
  if (routeModule.default) await routeModule.default(mockFastify);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bobtail.software/b-ssr",
3
- "version": "1.0.24",
3
+ "version": "1.0.25",
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",