pino-abstract-transport
Advanced tools
Comparing version 0.5.0 to 1.0.0
@@ -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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
23089
0
540
+ Addedreadable-stream@^4.0.0
+ Addedabort-controller@3.0.0(transitive)
+ Addedbase64-js@1.5.1(transitive)
+ Addedbuffer@6.0.3(transitive)
+ Addedevent-target-shim@5.0.1(transitive)
+ Addedevents@3.3.0(transitive)
+ Addedieee754@1.2.1(transitive)
+ Addedprocess@0.11.10(transitive)
+ Addedreadable-stream@4.5.2(transitive)
- Removedduplexify@^4.1.2
- Removedduplexify@4.1.3(transitive)
- Removedend-of-stream@1.4.4(transitive)
- Removedinherits@2.0.4(transitive)
- Removedonce@1.4.0(transitive)
- Removedreadable-stream@3.6.2(transitive)
- Removedstream-shift@1.0.3(transitive)
- Removedutil-deprecate@1.0.2(transitive)
- Removedwrappy@1.0.2(transitive)