winston-koa-sse
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -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", |
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
13465
6
83