Skip to content

Commit

Permalink
refactor: Use official pino-pretty #1
Browse files Browse the repository at this point in the history
Use pino-pretty@11.0.0 which includes merged PR for additional functionality from pinojs/pino-pretty#495 and replaces scoped package
  • Loading branch information
FoxxMD committed Mar 20, 2024
1 parent 0c615da commit f12f08a
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 45 deletions.
76 changes: 38 additions & 38 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@foxxmd/logging",
"type": "module",
"version": "0.1.8",
"version": "0.1.9",
"repository": "https://github.com/foxxmd/logging",
"description": "A typed, opinionated, batteries-included, Pino-based logging solution for backend TS/JS projects",
"scripts": {
Expand Down Expand Up @@ -67,8 +67,8 @@
"with-local-tmp-dir": "^5.1.1"
},
"dependencies": {
"@foxxmd/pino-pretty": "^10.3.2",
"pino": "^8.19.0",
"pino-pretty": "^11.0.0",
"pino-roll": "^1.0.1"
},
"overrides": {
Expand Down
6 changes: 3 additions & 3 deletions src/destinations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import {
StreamDestination,
FileDestination,
} from "./types.js";
import {DestinationStream, pino, destination} from "pino";
import {build} from "@foxxmd/pino-pretty"
import {PRETTY_OPTS_CONSOLE, PRETTY_OPTS_FILE, prettyOptsConsoleFactory, prettyOptsFileFactory} from "./pretty.js";
import {destination} from "pino";
import {build} from "pino-pretty"
import {PRETTY_OPTS_FILE, prettyOptsConsoleFactory, prettyOptsFileFactory} from "./pretty.js";
import {fileOrDirectoryIsWriteable} from "./util.js";
import path from "path";

Expand Down
2 changes: 1 addition & 1 deletion src/pretty.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {PrettyOptions} from "@foxxmd/pino-pretty";
import {PrettyOptions} from "pino-pretty";
import {CWD, getLongestStr} from "./util.js";
import {
LOG_LEVEL_NAMES,
Expand Down
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {DestinationStream, Logger as PinoLogger, LoggerOptions, StreamEntry, Level} from 'pino';
import {PrettyOptions} from "@foxxmd/pino-pretty";
import {PrettyOptions} from "pino-pretty";
import {MarkRequired} from "ts-essentials";

export type LogLevel = typeof LOG_LEVEL_NAMES[number];
Expand Down

0 comments on commit f12f08a

Please sign in to comment.