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.223-alpha.0 to 0.0.224-alpha.0

./lib/bundle.bot.cjs

25

core/core.class.js

@@ -176,10 +176,10 @@ const { EventEmitter } = require('node:events')

const endFlow =
(flag) =>
async (message = null) => {
flag.endFlow = true
endFlowFlag = true
if (message) this.sendProviderAndSave(from, createCtxMessage(message))
clearQueue()
return
}
(flag) =>
async (message = null) => {
flag.endFlow = true
endFlowFlag = true
if (message) this.sendProviderAndSave(from, createCtxMessage(message))
clearQueue()
return
}

@@ -192,3 +192,3 @@ // 📄 Finalizar flujo (patch)

endFlowFlag = true
if (Array.isArray(messages)) {

@@ -269,4 +269,6 @@ for (const iteratorCtxMessage of messages) {

}
const filterNextFlow = nextFlow.filter((msg) => msg.refSerialize !== currentPrev?.refSerialize)
const isContinueFlow = filterNextFlow.map((i) => i.keyword).includes(currentPrev?.ref)
console.log('--------------->', isContinueFlow, initRef)

@@ -283,2 +285,6 @@ if (!isContinueFlow) {

}
if (initRef) {
return exportFunctionsSend(() => sendFlow(filterNextFlow, from, { prev: undefined }))
}
}

@@ -461,3 +467,2 @@ // 📄 [options: fallBack]: esta funcion se encarga de repetir el ultimo mensaje

cb: async (opts) => {
endFlowFlag = false
await runContext(true, { idleFallBack: opts.next, ref: opts.inRef, body: opts.body })

@@ -464,0 +469,0 @@ },

0

io/events/eventAction.js

@@ -0,0 +0,0 @@ const { generateRef } = require('../../utils/hash')

@@ -0,0 +0,0 @@ const { generateRef } = require('../../utils/hash')

@@ -0,0 +0,0 @@ const { generateRef } = require('../../utils/hash')

@@ -0,0 +0,0 @@ const { generateRef } = require('../../utils/hash')

@@ -0,0 +0,0 @@ const { generateRef } = require('../../utils/hash')

@@ -0,0 +0,0 @@ const { generateRef } = require('../../utils/hash')

@@ -0,0 +0,0 @@ const { generateRef } = require('../../utils/hash')

@@ -0,0 +0,0 @@ const { generateRef } = require('../../utils/hash')

@@ -0,0 +0,0 @@ const { eventDocument, REGEX_EVENT_DOCUMENT } = require('./eventDocument')

const addAction = () => async () => {}
module.exports = { addAction }

@@ -0,0 +0,0 @@ MIT License

{
"name": "@bot-whatsapp/bot",
"version": "0.0.223-alpha.0",
"version": "0.0.224-alpha.0",
"description": "",

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

@@ -0,0 +0,0 @@ const { EventEmitter } = require('node:events')

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