Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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 2.0.4 to 2.0.6

9

CHANGELOG.md

@@ -8,2 +8,11 @@ # Changelog

## [Unreleased]
## [2.0.6]
## Fixed
- removed vulnerable and not needed dependencies
## [2.0.5]
## Fixed
- added export for EventMessage
## [2.0.4]

@@ -10,0 +19,0 @@

@@ -27,1 +27,19 @@ /// <reference types="node" />

}
export interface EventMessage {
/**
* Message payload
*/
data?: string;
/**
* Message identifier, if set, client will send `Last-Event-ID: <id>` header on reconnect
*/
id?: string;
/**
* Message type
*/
event?: string;
/**
* Update client reconnect interval (how long will client wait before trying to reconnect).
*/
retry?: number;
}

4

lib/types.js
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
//# sourceMappingURL=types.js.map

18

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

@@ -33,12 +33,10 @@ "main": "lib/index.js",

"devDependencies": {
"@babel/cli": "^7.2.3",
"@babel/core": "^7.3.3",
"@babel/preset-env": "^7.3.1",
"@babel/preset-typescript": "^7.3.3",
"@babel/register": "^7.0.0",
"@types/bn.js": "^4.11.5",
"@babel/cli": "^7.14.5",
"@babel/core": "^7.14.6",
"@babel/preset-env": "^7.14.7",
"@babel/preset-typescript": "^7.14.5",
"@types/chai": "^4.1.7",
"@types/es6-promisify": "^6.0.0",
"@types/eventsource": "^1.1.2",
"@types/mocha": "^8.2.2",
"@types/node": "^16.0.0",
"@types/sinon": "^9.0.0",

@@ -48,8 +46,6 @@ "@typescript-eslint/eslint-plugin": "^1.3.0",

"chai": "^4.2.0",
"cross-env": "^7.0.2",
"es6-promisify": "^6.1.0",
"eslint": "5.16.0",
"eslint-plugin-import": "^2.18.2",
"eventsource": "^1.0.7",
"fastify": "3.1.1",
"fastify": "3.18.1",
"it-pushable": "^1.4.0",

@@ -56,0 +52,0 @@ "mocha": "^8.3.2",

@@ -39,1 +39,24 @@ import fastifyPlugin from "fastify-plugin";

}
//seems like fastify removed EventMessage in recent release so this is replacement for that
export interface EventMessage {
/**
* Message payload
*/
data?: string;
/**
* Message identifier, if set, client will send `Last-Event-ID: <id>` header on reconnect
*/
id?: string;
/**
* Message type
*/
event?: string;
/**
* Update client reconnect interval (how long will client wait before trying to reconnect).
*/
retry?: number;
}

Sorry, the diff of this file is not supported yet

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