Socket
Socket
Sign inDemoInstall

fastify-renderer

Package Overview
Dependencies
267
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.20 to 0.1.21

6

node/index.js

@@ -61,2 +61,3 @@ "use strict";

});
let devServer = undefined;
// register vite once all the routes have been defined

@@ -78,3 +79,2 @@ fastify.addHook('onReady', async () => {

let config;
let devServer = undefined;
if (plugin.devMode) {

@@ -92,2 +92,6 @@ fastify.log.debug('booting vite dev server');

});
fastify.addHook('onClose', async (_, done) => {
await (devServer === null || devServer === void 0 ? void 0 : devServer.close());
done();
});
}, {

@@ -94,0 +98,0 @@ fastify: '3.x',

3

node/renderers/react/ReactRenderer.js

@@ -37,2 +37,3 @@ "use strict";

async render(render) {
var _a;
const bus = this.startRenderBus(render);

@@ -59,3 +60,3 @@ try {

catch (error) {
// this.devServer?.ssrFixStacktrace(error)
(_a = this.devServer) === null || _a === void 0 ? void 0 : _a.ssrFixStacktrace(error);
// let fastify's error handling system figure out what to do with this after fixing the stack trace

@@ -62,0 +63,0 @@ throw error;

{
"name": "fastify-renderer",
"version": "0.1.20",
"version": "0.1.21",
"description": "Simple, high performance client side app renderer for Fastify.",

@@ -5,0 +5,0 @@ "exports": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc