New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

wbm

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wbm - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

4

package.json

@@ -8,3 +8,3 @@ {

"description": "wbm is an API to send bulk messages in whatsapp.",
"version": "1.0.7",
"version": "1.0.8",
"main": "src/index.js",

@@ -29,2 +29,2 @@ "devDependencies": {},

"homepage": "https://github.com/Briuor/wbm#readme"
}
}

@@ -27,3 +27,3 @@ [![npm version](https://img.shields.io/npm/v/wbm.svg?color=%2378e08f)](https://www.npmjs.com/package/wbm)

await wbm.send(phones, message);
});
}).catch(err => console.log(err));

@@ -41,3 +41,3 @@ ```

await wbm.sendCustom(contacts, message);
});
}).catch(err => console.log(err));
```

@@ -66,3 +66,3 @@

await wbm.end();
});
}).catch(err => console.log(err));

@@ -69,0 +69,0 @@ ```

@@ -39,2 +39,5 @@ const puppeteer = require("puppeteer");

/**
* return the data used to create the QR Code
*/
async function getQRCodeData() {

@@ -65,2 +68,5 @@ await page.goto("https://web.whatsapp.com");

/**
* Wait 30s to the qrCode be hidden on page
*/
async function waitQRCode() {

@@ -75,2 +81,6 @@ // if user scan QR Code it will be hidden

/**
* Close browser and show an error message
* @param {string} msg
*/
async function QRCodeExeption(msg) {

@@ -89,3 +99,3 @@ await browser.close();

process.stdout.write("Sending Message...\r");
await page.goto(`https://web.whatsapp.com/send?phone=${phone}&text=${message}`);
await page.goto(`https://web.whatsapp.com/send?phone=${phone}&text=${encodeURI(message)}`);
await page.waitForSelector("div#startup", { hidden: true, timeout: 60000 });

@@ -92,0 +102,0 @@ await page.waitForSelector('div[data-tab="1"]', { timeout: 5000 });

@@ -6,3 +6,3 @@ const wbm = require('./src/index');

await wbm.send(phones, message);
}).catch(err => console.log(err))
}).catch(err => console.log(err));

@@ -9,0 +9,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc