Socket
Socket
Sign inDemoInstall

winston-koa-sse

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

winston-koa-sse - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

yarn.lock

3

example/server.js

@@ -15,5 +15,6 @@ const winston = require('winston');

winston.info("info is good as well", i);
winston.debug("debug works too", i);
winston.debug(`debug works too ${i},
on multiple lines`);
}, 1000);
app.listen(3000);

@@ -7,3 +7,4 @@ const winston = require('winston');

const sse = (type, msg) => {
return `event: ${ type }\ndata: ${ msg }\n\n`
const multiLineMsg = msg.split('\n').join('\ndata: ');
return `event: ${ type }\ndata: ${ multiLineMsg }\n\n`
}

@@ -10,0 +11,0 @@

{
"name": "winston-koa-sse",
"version": "1.0.3",
"version": "1.0.4",
"description": "winston koa transport based on sse",

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

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