@bot-whatsapp/bot
Advanced tools
Comparing version 0.0.215-alpha.0 to 0.0.216-alpha.0
@@ -180,3 +180,3 @@ const { EventEmitter } = require('node:events') | ||
endFlowFlag = true | ||
console.log({messages}) | ||
if (typeof messages === 'string' || messages === null) { | ||
@@ -192,3 +192,3 @@ await this.sendProviderAndSave(from, createCtxMessage(messages)) | ||
let counterFor = 0 | ||
console.log({inRef}) | ||
// const indexLimit = messages.findIndex((m) => m.ref === inRef) | ||
@@ -198,3 +198,3 @@ for (const iteratorCtxMessage of messages) { | ||
// if(indexLimit !== -1 && counterFor === indexLimit) break | ||
await resolveCbEveryCtx(iteratorCtxMessage, { | ||
const scopeCtx = await resolveCbEveryCtx(iteratorCtxMessage, { | ||
omitEndFlow: options.fromGotoFlow, | ||
@@ -204,2 +204,5 @@ idleCtx: !!iteratorCtxMessage?.options?.idle, | ||
}) | ||
if(scopeCtx?.endFlow) break | ||
counterFor++ | ||
@@ -396,8 +399,8 @@ // options.fromGotoFlow = false | ||
if (ctxMessage?.options?.idle) { | ||
await cbEveryCtx(ctxMessage?.ref, { ...options, startIdleMs: ctxMessage?.options?.idle }) | ||
return | ||
const run = await cbEveryCtx(ctxMessage?.ref, { ...options, startIdleMs: ctxMessage?.options?.idle }) | ||
return run | ||
} | ||
if (!ctxMessage?.options?.capture) { | ||
await cbEveryCtx(ctxMessage?.ref, options) | ||
return | ||
const run = await cbEveryCtx(ctxMessage?.ref, options) | ||
return run | ||
} | ||
@@ -471,3 +474,3 @@ } | ||
await runContext() | ||
return | ||
return {...flags} | ||
} | ||
@@ -474,0 +477,0 @@ |
{ | ||
"name": "@bot-whatsapp/bot", | ||
"version": "0.0.215-alpha.0", | ||
"version": "0.0.216-alpha.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./lib/bundle.bot.cjs", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
100111