@open-wa/wa-automate 4.35.7 → 4.35.8
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.
- 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