Socket
Socket
Sign inDemoInstall

pino-pretty

Package Overview
Dependencies
Maintainers
4
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pino-pretty - npm Package Compare versions

Comparing version 7.5.1 to 7.5.2

16

index.d.ts

@@ -11,2 +11,3 @@ // Type definitions for pino-pretty 7.0

import { OnUnknown } from 'pino-abstract-transport';
import { DestinationStream } from 'pino';

@@ -111,2 +112,17 @@ type LogDescriptor = Record<string, unknown>;

/**
* The file, file descriptor, or stream to write to. Defaults to 1 (stdout).
* @default 1
*/
destination?: string | number | DestinationStream | NodeJS.WritableStream;
/**
* Opens the file with the 'a' flag.
* @default true
*/
append?: boolean;
/**
* Ensure directory for destination file exists.
* @default false
*/
mkdir?: boolean;
/**
* Provides the ability to add a custom prettify function for specific log properties.

@@ -113,0 +129,0 @@ * `customPrettifiers` is an object, where keys are log properties that will be prettified

2

package.json
{
"name": "pino-pretty",
"version": "7.5.1",
"version": "7.5.2",
"description": "Prettifier for Pino log lines",

@@ -5,0 +5,0 @@ "type": "commonjs",

@@ -255,3 +255,3 @@ <a id="intro"></a>

append: true, // the file is opened with the 'a' flag
mdkdir: true, // create the target destination
mkdir: true, // create the target destination

@@ -266,2 +266,5 @@

The defaults for `sync`, `append`, `mkdir` inherit from
[`SonicBoom(opts)`](https://github.com/pinojs/sonic-boom#API).
`customPrettifiers` option provides the ability to add a custom prettify function

@@ -341,5 +344,16 @@ for specific log properties. `customPrettifiers` is an object, where keys are

<a id="license"><a>
## Limitations
Because `pino-pretty` uses stdout redirection, in some cases the command may
terminate with an error due to shell limitations.
For example, currently, mingw64 based shells (e.g. Bash as supplied by [git for
Windows](https://gitforwindows.org)) are affected and terminate the process with
a `stdout is not a tty` error message.
Any PRs are welcomed!
<a id="license"></a>
## License
MIT License

@@ -32,2 +32,5 @@ import { expectType } from "tsd";

sync: false,
destination: 2,
append: true,
mkdir: true,
};

@@ -56,2 +59,5 @@

sync: false,
destination: 2,
append: true,
mkdir: true,
};

@@ -58,0 +64,0 @@

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