@open-wa/wa-automate 4.31.11 → 4.31.12
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.
@@ -52,7 +52,7 @@ function initPage(sessionId, config, qrManager, customUserAgent, spinner, _page,
|
|
52
52
|
var _a, _b, _c, _d, _e;
|
53
53
|
return __awaiter(this, void 0, void 0, function* () {
|
54
54
|
const setupPromises = [];
|
55
|
-
script_preloader_1.scriptLoader.loadScripts();
|
55
|
+
yield script_preloader_1.scriptLoader.loadScripts();
|
56
56
|
if ((config === null || config === void 0 ? void 0 : config.resizable) === undefined || !(config === null || config === void 0 ? void 0 : config.resizable) == false)
|
57
57
|
config.defaultViewport = null;
|
58
58
|
if (config === null || config === void 0 ? void 0 : config.useStealth) {
|
@@ -338,7 +338,7 @@ function injectWapi(page, spinner, force = false) {
|
|
338
338
|
if (initCheck)
|
339
339
|
return;
|
340
340
|
logging_1.log.info(`WAPI CHECK: ${initCheck}`);
|
341
|
-
if (!
|
341
|
+
if (!initCheck)
|
342
342
|
force = true;
|
343
343
|
if (wapiInjected && !force)
|
344
344
|
return page;
|
@@ -66,8 +66,10 @@ class ScriptLoader {
|
|
66
66
|
return __awaiter(this, void 0, void 0, function* () {
|
67
67
|
if (!this.contentRegistry[scriptName]) {
|
68
68
|
this.contentRegistry[scriptName] = yield read(scriptName);
|
69
|
-
logging_1.log.info(
|
69
|
+
logging_1.log.info(`SCRIPT READY: ${scriptName} ${this.contentRegistry[scriptName].length}`);
|
70
70
|
}
|
71
|
+
else
|
72
|
+
logging_1.log.info(`GET SCRIPT: ${scriptName} ${this.contentRegistry[scriptName].length}`);
|
71
73
|
return this.contentRegistry[scriptName];
|
72
74
|
});
|
73
75
|
}
|
package/package.json
CHANGED