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.5.0 to 1.0.0

6

index.js

@@ -5,3 +5,3 @@ 'use strict'

const split = require('split2')
const duplexify = require('duplexify')
const { Duplex } = require('readable-stream')

@@ -71,5 +71,3 @@ module.exports = function build (fn, opts = {}) {

} else if (opts.enablePipelining && res) {
return duplexify(stream, res, {
objectMode: true
})
return Duplex.from({ writable: stream, readable: res, objectMode: true })
}

@@ -76,0 +74,0 @@

{
"name": "pino-abstract-transport",
"version": "0.5.0",
"version": "1.0.0",
"description": "Write Pino transports easily",

@@ -26,12 +26,12 @@ "main": "index.js",

"dependencies": {
"duplexify": "^4.1.2",
"readable-stream": "^4.0.0",
"split2": "^4.0.0"
},
"devDependencies": {
"@types/node": "^16.11.6",
"husky": "^7.0.0",
"@types/node": "^18.0.0",
"husky": "^8.0.0",
"snazzy": "^9.0.0",
"standard": "^16.0.3",
"tap": "^15.0.2",
"tsd": "^0.18.0"
"standard": "^17.0.0",
"tap": "^16.0.0",
"tsd": "^0.21.0"
},

@@ -38,0 +38,0 @@ "tsd": {

# pino-abstract-transport
[![npm version](https://img.shields.io/npm/v/pino-abstract-transport)](https://www.npmjs.com/package/pino-abstract-transport)
[![Build Status](https://img.shields.io/github/workflow/status/pinojs/pino-abstract-transport/CI)](https://github.com/pinojs/pino-abstract-transport/actions)
[![Known Vulnerabilities](https://snyk.io/test/github/pinojs/pino-abstract-transport/badge.svg)](https://snyk.io/test/github/pinojs/pino-abstract-transport)
[![Coverage Status](https://coveralls.io/repos/github/pinojs/pino-abstract-transport/badge.svg?branch=master)](https://coveralls.io/github/pinojs/pino-abstract-transport?branch=master)

@@ -74,3 +73,4 @@ [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://standardjs.com/)

* `parse` an option to change to data format passed to build function. Default: `undefined`.
* `parse` an option to change to data format passed to build function. When this option is set to `lines`,
the data is passed as a string, otherwise the data is passed as an object. Default: `undefined`.

@@ -77,0 +77,0 @@ * `close(err, cb)` a function that is called to shutdown the transport. It's called both on error and non-error shutdowns.

Sorry, the diff of this file is not supported yet

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