@open-wa/wa-automate 4.42.4 → 4.42.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.
@@ -153,7 +153,7 @@ function create(config = {}) {
|
|
153
153
|
const qrManager = new auth_1.QRManager(config);
|
154
154
|
const RAM_INFO = `Total: ${parseFloat(`${os.totalmem() / 1000000000}`).toFixed(2)} GB | Free: ${parseFloat(`${os.freemem() / 1000000000}`).toFixed(2)} GB`;
|
155
155
|
logging_1.log.info("RAM INFO", RAM_INFO);
|
156
|
-
const PPTR_VERSION = ((_a = (0, fs_extra_1.readJsonSync)(
|
156
|
+
const PPTR_VERSION = ((_a = (0, fs_extra_1.readJsonSync)(require.resolve("puppeteer/package.json"), { throws: false })) === null || _a === void 0 ? void 0 : _a.version) || "UNKNOWN";
|
157
157
|
logging_1.log.info("PPTR VERSION INFO", PPTR_VERSION);
|
158
158
|
try {
|
159
159
|
if (typeof config === 'string')
|
package/package.json
CHANGED