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

whatsapp-chapi

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

whatsapp-chapi - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

11

lib/index.js
const https = require('https');
class Chapi {
hostname = "https://botqa.live";
hostname;
instanceID;

@@ -9,2 +9,3 @@ token;

constructor(instanceID, token) {
this.hostname = "http://194.34.245.24:3333"
this.token = token;

@@ -32,2 +33,8 @@ this.instanceID = instanceID;

setWebhook(webhook) {
return this._request('POST', `webhook/${this.instanceID}`, {
webhook: webhook
});
}
getStatus() {

@@ -59,3 +66,3 @@ return this._request('GET', `status/${this.instanceID}`);

'port': 8000,
'path': `/api/v1/${path}`,
'path': `/api/v1/${path}?token=${token}`,
'headers': {

@@ -62,0 +69,0 @@ 'Content-Type': 'application/json'

2

package.json
{
"name": "whatsapp-chapi",
"version": "1.0.2",
"version": "1.0.3",
"description": "WhatsApp chat api",

@@ -5,0 +5,0 @@ "keywords": [

# WhatsApp Node.JS Bot API
Use this library to develop a bot for the WhatsApp platform.
The library is available on **[GitHub](https://github.com/dwintechnology/whatsapp-chapi)** as well as a package on [npm](https://github.com/dwintechnology/whatsapp-chapi).
The library is available on **[GitHub](https://github.com/dwintechnology/whatsapp-chapi)** as well as a package on [npm](https://www.npmjs.com/package/whatsapp-chapi).

@@ -5,0 +5,0 @@ ## License

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