fastify-sse-v2
Advanced tools
Comparing version 2.0.4 to 2.0.6
@@ -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; | ||
} |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
//# sourceMappingURL=types.js.map |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20315
21
239