@open-wa/wa-automate 4.31.10 → 4.31.11

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.
@@ -40,6 +40,7 @@ const tools_1 = require("../utils/tools");
40
40
  const browser_1 = require("./browser");
41
41
  const axios_1 = __importDefault(require("axios"));
42
42
  const logging_1 = require("../logging/logging");
43
+ const boxen_1 = __importDefault(require("boxen"));
43
44
  /**
44
45
  * isAuthenticated
45
46
  * Validates if client is authenticated
@@ -145,8 +146,11 @@ class QRManager {
145
146
  spinner.info(`First QR: ${Date.now() - browser_1.BROWSER_START_TS} ms`);
146
147
  if (qrData) {
147
148
  qrEv.emit(qrData, `qrData`);
148
- if (!config.qrLogSkip)
149
- qrcode.generate(qrData, { small: true });
149
+ if (!config.qrLogSkip) {
150
+ qrcode.generate(qrData, { small: true }, terminalQrCode => {
151
+ console.log((0, boxen_1.default)(terminalQrCode, { title: config.sessionId, padding: 1, titleAlignment: 'center' }));
152
+ });
153
+ }
150
154
  else {
151
155
  console.log(`New QR Code generated. Not printing in console because qrLogSkip is set to true`);
152
156
  logging_1.log.info(`New QR Code generated. Not printing in console because qrLogSkip is set to true`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-wa/wa-automate",
3
- "version": "4.31.10",
3
+ "version": "4.31.11",
4
4
  "licenseCheckUrl": "https://funcs.openwa.dev/license-check",
5
5
  "brokenMethodReportUrl": "https://funcs.openwa.dev/report-bm",
6
6
  "patches": "https://cdn.openwa.dev/patches.json",