@abtnode/logger 1.17.12-beta-20260422-075550-7bd6bb1a → 1.17.12

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.
Files changed (2) hide show
  1. package/lib/logger.js +1 -1
  2. package/package.json +13 -17
package/lib/logger.js CHANGED
@@ -49,7 +49,7 @@ const getNoopLogger = (label = '') => {
49
49
  // singleton per process
50
50
  let addedRejectionExceptionTransport = false;
51
51
 
52
- // splat is intentionally unused here; the splat array unexpectedly contains all metadata
52
+ // 目前的实现不支持 splat, 但是我测试了好多次,但是依然没搞明白为什么 splat 中包含了所有的 metadata
53
53
  const customPrintfCallback = ({ level, message, label, timestamp, [Symbol.for('splat')]: metadata }) => {
54
54
  let result = `[${process.pid}] [${timestamp}] [${level}] [${label || 'default'}] [${message || ''}]`;
55
55
 
package/package.json CHANGED
@@ -1,25 +1,14 @@
1
1
  {
2
2
  "name": "@abtnode/logger",
3
- "version": "1.17.12-beta-20260422-075550-7bd6bb1a",
3
+ "version": "1.17.12",
4
4
  "description": "ABT Node logger lib",
5
5
  "keywords": [
6
6
  "logger",
7
7
  "lib"
8
8
  ],
9
- "author": {
10
- "name": "ArcBlock",
11
- "email": "blocklet@arcblock.io",
12
- "url": "https://github.com/ArcBlock"
13
- },
14
- "homepage": "https://github.com/ArcBlock/blocklet-server/tree/main/core/logger#readme",
9
+ "author": "polunzh <polunzh@gmail.com>",
10
+ "homepage": "https://github.com/ArcBlock/blocklet-server#readme",
15
11
  "license": "Apache-2.0",
16
- "repository": {
17
- "type": "git",
18
- "url": "git+https://github.com/ArcBlock/blocklet-server.git"
19
- },
20
- "bugs": {
21
- "url": "https://github.com/ArcBlock/blocklet-server/issues"
22
- },
23
12
  "main": "lib/logger.js",
24
13
  "publishConfig": {
25
14
  "access": "public"
@@ -31,13 +20,20 @@
31
20
  "files": [
32
21
  "lib"
33
22
  ],
23
+ "repository": {
24
+ "type": "git",
25
+ "url": "git+https://github.com/ArcBlock/blocklet-server.git"
26
+ },
34
27
  "scripts": {
35
28
  "lint": "eslint tests lib",
36
29
  "lint:fix": "eslint --fix tests lib"
37
30
  },
31
+ "bugs": {
32
+ "url": "https://github.com/ArcBlock/blocklet-server/issues"
33
+ },
38
34
  "dependencies": {
39
- "@abtnode/constant": "1.17.12-beta-20260422-075550-7bd6bb1a",
40
- "@abtnode/util": "1.17.12-beta-20260422-075550-7bd6bb1a",
35
+ "@abtnode/constant": "1.17.12",
36
+ "@abtnode/util": "1.17.12",
41
37
  "@abtnode/winston-daily-rotate-file": "^5.0.1",
42
38
  "debug": "^4.4.1",
43
39
  "fast-safe-stringify": "^2.1.1",
@@ -50,5 +46,5 @@
50
46
  "devDependencies": {
51
47
  "express": "^4.18.2"
52
48
  },
53
- "gitHead": "794d3409cad9e34ab741174aee873b48ec9f5222"
49
+ "gitHead": "a851c46d35a66372b7aa8fb5d7eed7d26980da8a"
54
50
  }