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 2.0.0 to 2.0.1

7

CHANGELOG.md

@@ -9,2 +9,6 @@ # Changelog

## [2.0.1]
## Bugfix
- add headers to prevent compression
## [2.0.0]

@@ -30,3 +34,4 @@ ## Feature

[Unreleased]: https://github.com/nodefactoryio/fastify-sse-v2/compare/v2.0.0...HEAD
[Unreleased]: https://github.com/nodefactoryio/fastify-sse-v2/compare/v2.0.1...HEAD
[2.0.0]: https://github.com/nodefactoryio/fastify-sse-v2/compare/v2.0.0...v2.0.1
[2.0.0]: https://github.com/nodefactoryio/fastify-sse-v2/compare/v1.0.4...v2.0.0

@@ -33,0 +38,0 @@ [1.0.4]: https://github.com/nodefactoryio/fastify-sse-v2/compare/v1.0.3...v1.0.4

2

lib/plugin.js

@@ -20,3 +20,3 @@ "use strict";

}));
this.type("text/event-stream").header("Connection", "keep-alive").header("Cache-Control", "no-cache");
this.type("text/event-stream").header("Connection", "keep-alive").header("Cache-Control", "no-cache,no-transform").header("x-no-compression", true);
(0, _itToStream.default)((0, _sse.transformAsyncIterable)(source)).pipe(outputStream);

@@ -23,0 +23,0 @@ });

{
"name": "fastify-sse-v2",
"version": "2.0.0",
"version": "2.0.1",
"description": "Fastify plugin for sending server side events.",

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

@@ -16,5 +16,6 @@ import {EventMessage, FastifyPluginAsync, FastifyReply} from "fastify";

.header("Connection", "keep-alive")
.header("Cache-Control", "no-cache");
.header("Cache-Control", "no-cache,no-transform")
.header("x-no-compression", true);
toStream(transformAsyncIterable(source)).pipe(outputStream);
});
};

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