Merge pull request #368 from codigoencasa/dev

Dev
This commit is contained in:
Leifer Mendez
2023-01-06 12:25:21 +01:00
committed by GitHub
10 changed files with 27 additions and 15 deletions

View File

@@ -25,20 +25,22 @@ jobs:
run: yarn install --immutable --network-timeout 300000
- name: Check Baileys
run: yarn node ./scripts/checker.js --name=baileys --stable=false
run: yarn node ./scripts/checker.js --name=baileys --stable=true
- name: Check Venom
run: yarn node ./scripts/checker.js --name=venom --stable=false
run: yarn node ./scripts/checker.js --name=venom --stable=true
- name: Check web-whatsapp
run: yarn node ./scripts/checker.js --name=web-whatsapp --stable=false
run: yarn node ./scripts/checker.js --name=web-whatsapp --stable=true
- name: Check Meta
run: yarn node ./scripts/checker.js --name=meta --stable=false
run: yarn node ./scripts/checker.js --name=meta --stable=true
- name: Check Twilio
run: yarn node ./scripts/checker.js --name=twilio --stable=false
run: yarn node ./scripts/checker.js --name=twilio --stable=true
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: 'ci(providers): 🚩 Check BREAKING CHANGE'
create_branch: true
branch: feature/breaking-change

View File

@@ -1,9 +1,11 @@
name: Revisando Colaboradores
on:
push:
branches:
- main
pull_request:
branches:
- dev
- main
types: [closed]
jobs:

View File

@@ -3,6 +3,7 @@ name: 📄 (PROD) Desplegando documentacion
on:
push:
branches:
- main
- next-release
jobs:

View File

@@ -123,8 +123,9 @@ class CoreClass {
// 📄 [options: callback]: Si se tiene un callback se ejecuta
if (!fallBackFlag) {
if (refToContinue?.options?.capture) cbEveryCtx(refToContinue?.ref)
for (const ite of this.flowClass.find(body)) {
cbEveryCtx(ite?.ref)
if (!ite?.options?.capture) cbEveryCtx(ite?.ref)
}
}

View File

@@ -1,6 +1,6 @@
{
"name": "@bot-whatsapp/bot",
"version": "0.0.38-alpha.0",
"version": "0.0.39-alpha.0",
"description": "",
"main": "./lib/bundle.bot.cjs",
"scripts": {

View File

@@ -1,6 +1,6 @@
{
"name": "@bot-whatsapp/cli",
"version": "0.0.45-alpha.0",
"version": "0.0.46-alpha.0",
"description": "",
"main": "index.js",
"devDependencies": {

View File

@@ -1,6 +1,6 @@
{
"name": "create-bot-whatsapp",
"version": "0.0.56-alpha.0",
"version": "0.0.57-alpha.0",
"description": "",
"main": "./lib/bundle.create-bot-whatsapp.cjs",
"files": [

View File

@@ -1,6 +1,6 @@
{
"name": "@bot-whatsapp/database",
"version": "0.0.37-alpha.0",
"version": "0.0.38-alpha.0",
"description": "Esto es el conector a mysql, pg, mongo",
"main": "./lib/mock/index.cjs",
"keywords": [],

View File

@@ -1,6 +1,6 @@
{
"name": "@bot-whatsapp/provider",
"version": "0.0.43-alpha.0",
"version": "0.0.44-alpha.0",
"description": "Esto es el conector a Twilio, Meta, etc...",
"main": "./lib/mock/index.cjs",
"keywords": [],

View File

@@ -47,9 +47,15 @@ const checkPkgStable = async (pkgName = '', version = '') => {
}
)
const listVersions = JSON.parse(stdout).reverse()
console.log(`[${pkgName}]: `, listVersions)
return listVersions.at(0)
try {
const listVersions = JSON.parse(stdout).reverse()
console.log(`[${pkgName}]: `, listVersions)
return listVersions.at(0)
} catch (e) {
const listVersions = [stdout.trim().replace('\n').replaceAll('"', '')]
console.log(`[${pkgName}]: `, listVersions)
return listVersions.at(0)
}
}
/**