@open-wa/wa-automate 4.35.7 → 4.35.8
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/api/Client.js +5 -1
- package/package.json +1 -1
package/dist/api/Client.js
CHANGED
@@ -479,7 +479,11 @@ class Client {
|
|
479
479
|
if (logging) {
|
480
480
|
const wapis = (_e = (((_d = pageFunction === null || pageFunction === void 0 ? void 0 : pageFunction.toString()) === null || _d === void 0 ? void 0 : _d.match(/WAPI\.(\w*)\(/g)) || [])) === null || _e === void 0 ? void 0 : _e.map(s => s.replace(/WAPI|\.|\(/g, ''));
|
481
481
|
_t = Date.now();
|
482
|
-
|
482
|
+
const _args = ["string", "number", "boolean"].includes(typeof args[0]) ? args[0] : Object.assign({}, args[0]);
|
483
|
+
logging_1.log.info(`IN ${invocation_id}`, {
|
484
|
+
_method: (wapis === null || wapis === void 0 ? void 0 : wapis.length) === 1 ? wapis[0] : wapis,
|
485
|
+
_args
|
486
|
+
});
|
483
487
|
}
|
484
488
|
if (callTimeout)
|
485
489
|
return yield Promise.race([this._page.evaluate(pageFunction, ...args), new Promise((resolve, reject) => { var _a; return setTimeout(reject, (_a = this._createConfig) === null || _a === void 0 ? void 0 : _a.callTimeout, new errors_1.PageEvaluationTimeout()); })]);
|
package/package.json
CHANGED