Publish DevRunbook source
Managed validation / full (push) Successful in 3m18s

This commit is contained in:
DevRunbook release export
2026-09-03 04:09:17 +02:00
commit cfd2804e27
928 changed files with 161642 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
{
"name": "@devrunbook/observability",
"version": "0.1.0",
"private": true,
"type": "module",
"exports": {
".": "./src/index.ts"
},
"scripts": {
"build": "tsc -p tsconfig.json",
"lint": "eslint src --max-warnings=0",
"test": "vitest run --passWithNoTests",
"typecheck": "tsc -p tsconfig.json --noEmit"
},
"dependencies": {
"pino": "10.3.1"
},
"devDependencies": {
"typescript": "5.9.3",
"vitest": "4.1.10"
}
}
+24
View File
@@ -0,0 +1,24 @@
import pino from 'pino'
export function createLogger(level = 'info') {
return pino({
level,
redact: {
paths: [
'req.headers.authorization',
'req.headers.cookie',
'password',
'token',
'secret',
'key',
'authorization',
'cookie',
'*.password',
'*.token',
'*.secret',
'*.key',
],
censor: '[REDACTED]',
},
})
}
+9
View File
@@ -0,0 +1,9 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"declaration": true,
"outDir": "dist",
"rootDir": "src"
},
"include": ["src/**/*.ts"]
}