pino-abstract-transport
Advanced tools
Comparing version 0.4.0 to 0.5.0
{ | ||
"name": "pino-abstract-transport", | ||
"version": "0.4.0", | ||
"version": "0.5.0", | ||
"description": "Write Pino transports easily", | ||
@@ -8,4 +8,4 @@ "main": "index.js", | ||
"prepare": "husky install", | ||
"test": "standard | snazzy && tap test/*.test.js", | ||
"test-ci": "standard | snazzy && tap test/*.test.js --coverage-report=lcovonly" | ||
"test": "standard | snazzy && tap test/*.test.js && tsd", | ||
"test-ci": "standard | snazzy && tap test/*.test.js --coverage-report=lcovonly && tsd" | ||
}, | ||
@@ -28,10 +28,15 @@ "repository": { | ||
"duplexify": "^4.1.2", | ||
"split2": "^3.2.2" | ||
"split2": "^4.0.0" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^16.11.6", | ||
"husky": "^7.0.0", | ||
"snazzy": "^9.0.0", | ||
"standard": "^16.0.3", | ||
"tap": "^15.0.2" | ||
"tap": "^15.0.2", | ||
"tsd": "^0.18.0" | ||
}, | ||
"tsd": { | ||
"directory": "./test/types" | ||
} | ||
} |
@@ -21,3 +21,3 @@ # pino-abstract-transport | ||
exports default async function (opts) { | ||
export default async function (opts) { | ||
return build(async function (source) { | ||
@@ -47,2 +47,9 @@ for await (let obj of source) { | ||
## Typescript usage | ||
Install the type definitions for node. Make sure the major version of the type definitions matches the node version you are using. | ||
#### Node 16 | ||
``` | ||
npm i -D @types/node@16 | ||
``` | ||
## API | ||
@@ -65,3 +72,3 @@ | ||
* `unknown` where an unparsaeble line is found, both the line and optional error is emitted. | ||
* `unknown` where an unparsable line is found, both the line and optional error is emitted. | ||
@@ -75,3 +82,3 @@ #### Options | ||
* `parseLine(line)` a function that is used to parse line recieved from `pino`. | ||
* `parseLine(line)` a function that is used to parse line received from `pino`. | ||
@@ -78,0 +85,0 @@ ## Example |
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
22120
10
542
148
6
+ Addedsplit2@4.2.0(transitive)
- Removedsplit2@3.2.2(transitive)
Updatedsplit2@^4.0.0