@skilbjo/logger 1.0.48 → 1.0.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +3 -3
- package/index.js +3 -3
- package/package.json +10 -12
package/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as pino from '
|
|
2
|
-
export * as reversePino from '
|
|
3
|
-
export { create as reverseCreate, type ReverseLogger, } from '
|
|
1
|
+
import * as pino from './pino.js';
|
|
2
|
+
export * as reversePino from './reverse-pino.js';
|
|
3
|
+
export { create as reverseCreate, type ReverseLogger, } from './reverse-pino.js';
|
|
4
4
|
export declare const infoLog: pino.Logger;
|
|
5
5
|
export declare const debugLog: pino.Logger;
|
|
6
6
|
export declare const warnLog: pino.Logger;
|
package/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as pino from '
|
|
2
|
-
export * as reversePino from '
|
|
3
|
-
export { create as reverseCreate, } from '
|
|
1
|
+
import * as pino from './pino.js';
|
|
2
|
+
export * as reversePino from './reverse-pino.js';
|
|
3
|
+
export { create as reverseCreate, } from './reverse-pino.js';
|
|
4
4
|
export const infoLog = pino.create({ level: 'info' });
|
|
5
5
|
export const debugLog = pino.create({ level: 'debug' });
|
|
6
6
|
export const warnLog = pino.create({ level: 'warn' });
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package",
|
|
3
3
|
"name": "@skilbjo/logger",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.50",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"typings": "index.d.ts",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"license": "ISC",
|
|
20
20
|
"scripts": {
|
|
21
|
-
"prepare": "husky
|
|
21
|
+
"prepare": "husky",
|
|
22
22
|
"exec": "node",
|
|
23
23
|
"eslint": "eslint .",
|
|
24
24
|
"depcheck": "depcheck",
|
|
@@ -26,31 +26,29 @@
|
|
|
26
26
|
"lint:fix": "eslint --fix .",
|
|
27
27
|
"test": "node --test",
|
|
28
28
|
"build": "tsgo -p tsconfig.build.json",
|
|
29
|
-
"postbuild": "node -e \"const f=require('fs'),p=JSON.parse(f.readFileSync('package.json','utf8'));delete p.files;p.imports=Object.fromEntries(Object.entries(p.imports??{}).map(([k,v])=>[k,Object.fromEntries(Object.entries(v).filter(([c])=>c!=='node').map(([c,s])=>{const x=s.replace('./dist/','./').replace('./src/','./');return[c,x.endsWith('.ts')?x.slice(0,-3)+'.d.ts':x]}))]));f.writeFileSync('dist/package.json',JSON.stringify(p,null,2))\"",
|
|
30
|
-
"prepare-npm": "jq 'del(.publishConfig
|
|
29
|
+
"postbuild": "node -e \"const f=require('fs'),{dirname,join,relative}=require('path'),p=JSON.parse(f.readFileSync('package.json','utf8'));delete p.files;p.imports=Object.fromEntries(Object.entries(p.imports??{}).filter(([,v])=>typeof v==='object'&&v!==null).map(([k,v])=>[k,Object.fromEntries(Object.entries(v).filter(([c])=>c!=='node').map(([c,s])=>{const x=s.replace('./dist/','./').replace('./src/','./');return[c,x.endsWith('.ts')?x.slice(0,-3)+'.d.ts':x]}))]));f.writeFileSync('dist/package.json',JSON.stringify(p,null,2));function fix(dir,root){for(const e of f.readdirSync(dir,{withFileTypes:true})){const fp=join(dir,e.name);if(e.isDirectory())fix(fp,root);else if(fp.endsWith('.js')||fp.endsWith('.d.ts')){const o=f.readFileSync(fp,'utf8'),u=o.replace(/from '#src\\/([^']+)'/g,(_,m)=>{const t=join(root,m);let r=relative(dirname(fp),t);if(!r.startsWith('.'))r='./'+r;return\\`from '\\${r}'\\`});if(o!==u)f.writeFileSync(fp,u)}}}fix('dist','dist')\"",
|
|
30
|
+
"prepare-npm": "jq 'del(.publishConfig) | . + { publishConfig: { registry: \"https://registry.npmjs.org/\", access: \"public\", provenance: true } }' dist/package.json >package2.json && mv package2.json dist/package.json"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"pino": "10.3.1",
|
|
34
34
|
"winston": "3.19.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@commitlint/cli": "20.5.
|
|
37
|
+
"@commitlint/cli": "20.5.2",
|
|
38
38
|
"@commitlint/config-angular": "20.5.0",
|
|
39
39
|
"@skilbjo/config-rc": "1.0.55",
|
|
40
40
|
"@types/http-errors": "2.0.5",
|
|
41
41
|
"depcheck": "1.4.7",
|
|
42
|
-
"eslint": "
|
|
42
|
+
"eslint": "10.2.1",
|
|
43
43
|
"http-errors": "2.0.1",
|
|
44
44
|
"husky": "9.1.7",
|
|
45
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
45
|
+
"@typescript/native-preview": "7.0.0-dev.20260426.1"
|
|
46
46
|
},
|
|
47
47
|
"imports": {
|
|
48
48
|
"#src/*.js": {
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
|
|
52
|
-
},
|
|
53
|
-
"#test/*.js": "./test/*.ts"
|
|
49
|
+
"import": "./*.js",
|
|
50
|
+
"types": "./*.d.ts"
|
|
51
|
+
}
|
|
54
52
|
},
|
|
55
53
|
"exports": {
|
|
56
54
|
".": {
|