@open-wa/wa-automate 4.30.12 → 4.30.13

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/README.md CHANGED
@@ -13,10 +13,10 @@
13
13
  [![Average time to resolve an issue](http://isitmaintained.com/badge/resolution/open-wa/wa-automate-nodejs.svg)](http://isitmaintained.com/project/open-wa/wa-automate-nodejs "Average time to resolve an issue")
14
14
  [![Percentage of issues still open](http://isitmaintained.com/badge/open/open-wa/wa-automate-nodejs.svg)](http://isitmaintained.com/project/open-wa/wa-automate-nodejs "Percentage of issues still open")
15
15
 
16
- <a href="https://discord.gg/dnpp72a"><img src="https://img.shields.io/discord/661438166758195211?color=blueviolet&label=discord&style=flat" /></a> ![WhatsApp_Web 2.2147.16](https://img.shields.io/badge/WhatsApp_Web-2.2147.16-brightgreen.svg)<img alt="Twitter Follow" src="https://img.shields.io/twitter/follow/openwadev?label=Follow%20%40openwadev%20for%20updates&logo=twitter&style=social">
16
+ <a href="https://discord.gg/dnpp72a"><img src="https://img.shields.io/discord/661438166758195211?color=blueviolet&label=discord&style=flat" /></a> ![WhatsApp_Web 2.2147.16](https://img.shields.io/badge/WhatsApp_Web-2.2147.16-brightgreen.svg)<img alt="Twitter Follow" src="https://img.shields.io/twitter/follow/openwadev?label=Follow%20%40openwadev%20for%20updates&logo=twitter&style=social"/>
17
17
 
18
18
  <a href="https://cloud.digitalocean.com/apps/new?repo=https://github.com/open-wa/wa-automate-nodejs/tree/deploy&refcode=4b093f6ecd3a&utm_campaign=Referral_Invite&utm_medium=Referral_Program&utm_source=badge">
19
- <img style="max-height:200px" src="https://raw.githubusercontent.com/open-wa/wa-automate-deploy-heroku/main/assets/do_deploy.png" alt="Deploy to DO">
19
+ <img style="max-height:200px" src="https://raw.githubusercontent.com/open-wa/wa-automate-deploy-heroku/main/assets/do_deploy.png" alt="Deploy to DO"/>
20
20
  </a>
21
21
 
22
22
 
@@ -155,7 +155,7 @@ If you need paid support, consulting, or just want support/sponsor the ongoing d
155
155
  |- |:-:|
156
156
  | Get a License key | <a class="gumroad-button" href="https://gum.co/BTMt?wanted=true" target="_blank" data-gumroad-single-product="true" style='background-color: white !important;background-image: url(https://gumroad.com/button/button_bar.jpg) !important;background-repeat: repeat-x !important;border-radius: 4px !important;box-shadow: rgba(0, 0, 0, 0.4) 0 0 2px !important;color: #999 !important;display: inline-block !important;font-family: -apple-system, ".SFNSDisplay-Regular", "Helvetica Neue", Helvetica, Arial, sans-serif !important;font-size: 16px !important;font-style: normal !important;font-weight: 500 !important;line-height: 50px !important;padding: 0 15px !important;text-shadow: none !important;text-decoration: none !important;'><span class="gumroad-button-logo" style='background-image: url(https://gumroad.com/button/button_logo.png) !important;background-size: cover !important;height: 17px !important;width: 16px !important;display: inline-block !important;margin-bottom: -3px !important;margin-right: 15px !important;'></span>Get a License key</a>
157
157
  | Donate or Book 1 hour consult | [![Buy me a coffee][buymeacoffee-shield]][buymeacoffee]
158
- | Per-minute consulting | <a href="http://otechie.com/smashah"><img src="https://api.otechie.com/consultancy/smashah/badge.svg" alt="Consulting"></a>
158
+ | Per-minute consulting | <a href="http://otechie.com/smashah"><img src="https://api.otechie.com/consultancy/smashah/badge.svg" alt="Consulting"/></a>
159
159
  | Hire me! | [![Consulting Request][consult-shield]][consult]
160
160
 
161
161
  ## License
@@ -257,7 +257,7 @@ class Client {
257
257
  const emojiId = message.body.replace(new RegExp(ident, 'g'), "");
258
258
  if (!emojiId)
259
259
  return;
260
- return yield this.sendEmoji(message.from, emojiId, message.id);
260
+ return yield this.sendEmoji(message.from, emojiId, message.id).catch(() => { });
261
261
  }
262
262
  }));
263
263
  this._autoEmojiSet = true;
@@ -116,6 +116,7 @@ class QRManager {
116
116
  this.qrEvF(this.config);
117
117
  }
118
118
  qrEvF(config = this.config) {
119
+ return new events_1.EvEmitter(config.sessionId || 'session', 'qr');
119
120
  if (!this.qrEv)
120
121
  this.qrEv = new events_1.EvEmitter(config.sessionId || 'session', 'qr');
121
122
  return this.qrEv;
@@ -363,7 +363,7 @@ function create(config = {}) {
363
363
  waPage.on('error', error => {
364
364
  if (config === null || config === void 0 ? void 0 : config.logConsoleErrors)
365
365
  console.error(error);
366
- logging_1.log.error('Page Console Error:', error.text());
366
+ logging_1.log.error('Page Console Error:', error.message || (error === null || error === void 0 ? void 0 : error.text()));
367
367
  });
368
368
  if (config === null || config === void 0 ? void 0 : config.restartOnCrash)
369
369
  waPage.on('error', (error) => __awaiter(this, void 0, void 0, function* () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-wa/wa-automate",
3
- "version": "4.30.12",
3
+ "version": "4.30.13",
4
4
  "licenseCheckUrl": "https://openwa.dev/license-check",
5
5
  "brokenMethodReportUrl": "https://openwa.dev/report-bm",
6
6
  "patches": "https://cdn.openwa.dev/patches.json",