Socket
Socket
Sign inDemoInstall

fastify-sse-v2

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fastify-sse-v2 - npm Package Compare versions

Comparing version 3.0.0 to 3.1.0

8

lib/index.d.ts

@@ -22,2 +22,6 @@ import { Pushable } from "it-pushable";

retry?: number;
/**
* Message comment
*/
comment?: string;
}

@@ -48,2 +52,6 @@ interface FastifyReply {

retry?: number;
/**
* Message comment
*/
comment?: string;
}

3

lib/sse.js

@@ -57,2 +57,5 @@ "use strict";

}
if (chunk.comment) {
payload += `:${chunk.comment}\n`;
}
if (!payload) {

@@ -59,0 +62,0 @@ return "";

2

package.json
{
"name": "fastify-sse-v2",
"version": "3.0.0",
"version": "3.1.0",
"description": "Fastify plugin for sending server side events.",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -78,3 +78,3 @@ # Fastify SSE Plugin

yield {
type: event.name,
event: event.name,
data: JSON.stringify(event),

@@ -81,0 +81,0 @@ };

@@ -33,2 +33,7 @@ import fastifyPlugin from "fastify-plugin";

retry?: number;
/**
* Message comment
*/
comment?: string;
}

@@ -63,2 +68,7 @@

retry?: number;
/**
* Message comment
*/
comment?: string;
}

@@ -26,2 +26,5 @@ import { EventMessage } from "fastify";

}
if (chunk.comment) {
payload += `:${chunk.comment}\n`;
}
if (!payload) {

@@ -28,0 +31,0 @@ return "";

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc