Skip to content

Commit 232450c

Browse files
committed
chore(packages): rename pino-serializer to pino-adapter and update references
1 parent c194e57 commit 232450c

6 files changed

Lines changed: 25 additions & 15 deletions

File tree

.github/workflows/bump-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ on:
1616
package:
1717
description: 'Package names (comma separated) or "all"'
1818
required: false
19-
default: 'core,pino-serializer'
19+
default: 'core,pino-adapter'
2020
type: string
2121
publish:
2222
description: 'Publish destination'

bun.lock

Lines changed: 6 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/core/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"type": "module",
77
"licenses": [
88
{
9+
"type": "MPL-2.0",
910
"url": "https://github.com/tarnishablec/thaterror/blob/main/LICENSE"
1011
}
1112
],
File renamed without changes.
Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,22 @@
11
{
2-
"name": "@thaterror/pino-serializer",
2+
"name": "@thaterror/pino-adapter",
33
"version": "0.3.0",
44
"module": "src/index.ts",
55
"type": "module",
66
"private": true,
7+
"licenses": [
8+
{
9+
"type": "MPL-2.0",
10+
"url": "https://github.com/tarnishablec/thaterror/blob/main/LICENSE"
11+
}
12+
],
13+
"repository": {
14+
"type": "git",
15+
"url": "https://github.com/tarnishablec/thaterror.git"
16+
},
17+
"publishConfig": {
18+
"access": "public"
19+
},
720
"devDependencies": {
821
"@types/bun": "latest"
922
},
Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,8 @@
22
* Copyright 2019-Present tarnishablec. All Rights Reserved.
33
*/
44

5-
import {
6-
codeOf,
7-
isDefinedError,
8-
payloadOf,
9-
type ThatError,
10-
} from "@thaterror/core";
11-
import pino, { type LoggerOptions, type SerializedError } from "pino";
5+
import {codeOf, isDefinedError, payloadOf, type ThatError,} from "@thaterror/core";
6+
import pino, {type LoggerOptions, type SerializedError} from "pino";
127

138
export const thaterrorSerializer = (e: ThatError): SerializedError => {
149
const pinoErr = pino.stdSerializers.errWithCause(e);
@@ -25,7 +20,7 @@ export const thaterrorHooks: LoggerOptions["hooks"] = {
2520
const err = args[0];
2621
if (err && isDefinedError(err)) {
2722
return method.apply(this, [
28-
{ thaterror: err },
23+
{thaterror: err},
2924
args[1],
3025
...args.slice(2),
3126
]);

0 commit comments

Comments
 (0)