Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pino-abstract-transport

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pino-abstract-transport - npm Package Compare versions

Comparing version 0.4.0 to 0.5.0

index.d.ts

15

package.json
{
"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

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