@bobtail.software/b-ssr 1.0.16 → 1.0.17
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/vite-rpc-plugin.js +4 -0
- package/package.json +1 -1
package/dist/vite-rpc-plugin.js
CHANGED
|
@@ -616,6 +616,10 @@ node_modules`),!r)return;let i=(0,Isr.default)({allowRelativePaths:!0}).add(r);r
|
|
|
616
616
|
`:v.type==="api"?P=`
|
|
617
617
|
await getOptionsMaps();
|
|
618
618
|
const options = loaderApiOptionsMap.get('${v.url}');
|
|
619
|
+
if (!options?.handler) {
|
|
620
|
+
console.warn('\u26A0\uFE0F [B-SSR Warning] Handler API aun no cargado para: ${v.name} (${v.url}). Retornando null.');
|
|
621
|
+
return null;
|
|
622
|
+
}
|
|
619
623
|
if (!options?.handler) throw new Error('Handler no encontrado para API Loader: ${v.name}');
|
|
620
624
|
const augmentedReq = Object.assign(Object.create(ssrContext.req), ${C});
|
|
621
625
|
return await options.handler.call(ssrContext.req.server, augmentedReq, ssrContext.reply);
|
package/package.json
CHANGED