Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@bot-whatsapp/bot

Package Overview
Dependencies
Maintainers
1
Versions
286
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bot-whatsapp/bot - npm Package Compare versions

Comparing version 0.0.166-alpha.0 to 0.0.167-alpha.0

13

core/core.class.js

@@ -175,3 +175,5 @@ const { toCtx } = require('../io/methods')

// 📄 Esta funcion se encarga de enviar un array de mensajes dentro de este ctx
const sendFlow = async (messageToSend, numberOrId, options = { prev: prevMsg, forceQueue: false }) => {
const sendFlow = async (messageToSend, numberOrId, options = {}) => {
options = { prev: prevMsg, forceQueue: false, ...options }
if (options.prev?.options?.capture) {

@@ -199,6 +201,7 @@ await cbEveryCtx(options.prev?.ref)

} else {
this.queuePrincipal.clearQueue(from)
const lastMessage = messageToSend[messageToSend.length - 1]
await this.databaseClass.save({ ...lastMessage, from: numberOrId })
if (listProcessWait.includes(lastMessage.ref)) return
if (listProcessWait.includes(lastMessage.ref)) {
this.queuePrincipal.clearQueue(from);
}
}

@@ -240,3 +243,3 @@ }

await sendFlow(filterNextFlow, from, { prev: undefined, forceQueue: true })
await sendFlow(filterNextFlow, from, { prev: undefined })
return

@@ -388,3 +391,3 @@ }

}
return sendFlow(msgToSend, from)
return sendFlow(msgToSend, from, {forceQueue:true})
}

@@ -391,0 +394,0 @@

{
"name": "@bot-whatsapp/bot",
"version": "0.0.166-alpha.0",
"version": "0.0.167-alpha.0",
"description": "",

@@ -5,0 +5,0 @@ "main": "./lib/bundle.bot.cjs",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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