whalibmob 5.33.3 → 5.33.5

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/cli.js +5 -3
  2. package/package.json +2 -2
package/cli.js CHANGED
@@ -83,9 +83,11 @@ function enableWireTrace() {
83
83
  const { configureLogger } = require('./lib/logger');
84
84
  const https = require('https');
85
85
 
86
- const C = process.stdout.isTTY
87
- ? { out:'\x1b[36m', in:'\x1b[32m', http:'\x1b[35m', dim:'\x1b[2m', tag:'\x1b[33m', off:'\x1b[0m' }
88
- : { out:'', in:'', http:'', dim:'', tag:'', off:'' };
86
+ // Logs are printed without ANSI colour, so the output is plain text wherever
87
+ // it is read — a terminal, a file, a pipe, or a log collector. The structure
88
+ // (timestamp, level, SENT/RECV markers, XML) is unchanged; only the colour
89
+ // escape codes are gone.
90
+ const C = { out:'', in:'', http:'', dim:'', tag:'', off:'' };
89
91
 
90
92
  // pino writes newline-delimited JSON to stdout. That is the right shape for a
91
93
  // log collector and the wrong one for someone watching a live session, so
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "whalibmob",
3
- "version": "5.33.3",
3
+ "version": "5.33.5",
4
4
  "description": "Node.js library for WhatsApp — register a number over SMS, or link as a companion by QR. Signal E2E encryption, media, groups, channels.",
5
5
  "author": "Kunboruto20",
6
6
  "main": "index.js",
7
7
  "types": "index.d.ts",
8
8
  "bin": {
9
- "wa": "./cli.js"
9
+ "wa": "cli.js"
10
10
  },
11
11
  "files": [
12
12
  "index.js",