@wppconnect-team/wppconnect 1.10.1 → 1.11.1

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.
@@ -235,6 +235,8 @@ function injectApi(page) {
235
235
  .waitForFunction(function () {
236
236
  // @ts-ignore
237
237
  return typeof window.WPP !== 'undefined' && window.WPP.isReady;
238
+ }, {
239
+ timeout: 60000,
238
240
  })
239
241
  .catch(function () { return false; })];
240
242
  case 3:
@@ -124,7 +124,7 @@ function create(sessionOrOption, catchQR, statusFind, options, browserSessionTok
124
124
  logger.info('Initializing browser...', { session: session, type: 'browser' });
125
125
  return [4 /*yield*/, (0, browser_1.initBrowser)(session, mergedOptions, logger).catch(function (e) {
126
126
  if (mergedOptions.browserWS && mergedOptions.browserWS != '') {
127
- logger.error("Error when try to connect " + mergedOptions.browserWS, {
127
+ logger.error("Error when try to connect ".concat(mergedOptions.browserWS), {
128
128
  session: session,
129
129
  type: 'browser',
130
130
  });
@@ -126,9 +126,9 @@ function checkWPPConnectVersion() {
126
126
  */
127
127
  function logUpdateAvailable(current, latest) {
128
128
  // prettier-ignore
129
- var newVersionLog = "There is a new version of " + chalk_1.default.bold("Wppconnect") + " " + chalk_1.default.gray(current) + " \u279C " + chalk_1.default.bold.green(latest) + "\n" +
129
+ var newVersionLog = "There is a new version of ".concat(chalk_1.default.bold("Wppconnect"), " ").concat(chalk_1.default.gray(current), " \u279C ").concat(chalk_1.default.bold.green(latest), "\n") +
130
130
  "Update your package by running:\n\n" +
131
- (chalk_1.default.bold('\>') + " " + chalk_1.default.blueBright('npm update @wppconnect-team/wppconnect'));
131
+ "".concat(chalk_1.default.bold('\>'), " ").concat(chalk_1.default.blueBright('npm update @wppconnect-team/wppconnect'));
132
132
  logger_1.defaultLogger.info((0, boxen_1.default)(newVersionLog, { padding: 1 }));
133
- logger_1.defaultLogger.info("For more info visit: " + chalk_1.default.underline('https://github.com/wppconnect-team/wppconnect/blob/master/Update.md') + "\n");
133
+ logger_1.defaultLogger.info("For more info visit: ".concat(chalk_1.default.underline('https://github.com/wppconnect-team/wppconnect/blob/master/Update.md'), "\n"));
134
134
  }