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 run: yarn install --immutable --network-timeout 300000
- name: Check Baileys - 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 - 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 - 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 - 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 - 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 - uses: stefanzweifel/git-auto-commit-action@v4
with: with:
commit_message: 'ci(providers): 🚩 Check BREAKING CHANGE' commit_message: 'ci(providers): 🚩 Check BREAKING CHANGE'
create_branch: true
branch: feature/breaking-change

View File

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

View File

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

View File

@@ -123,8 +123,9 @@ class CoreClass {
// 📄 [options: callback]: Si se tiene un callback se ejecuta // 📄 [options: callback]: Si se tiene un callback se ejecuta
if (!fallBackFlag) { if (!fallBackFlag) {
if (refToContinue?.options?.capture) cbEveryCtx(refToContinue?.ref)
for (const ite of this.flowClass.find(body)) { 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", "name": "@bot-whatsapp/bot",
"version": "0.0.38-alpha.0", "version": "0.0.39-alpha.0",
"description": "", "description": "",
"main": "./lib/bundle.bot.cjs", "main": "./lib/bundle.bot.cjs",
"scripts": { "scripts": {

View File

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

View File

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

View File

@@ -1,6 +1,6 @@
{ {
"name": "@bot-whatsapp/database", "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", "description": "Esto es el conector a mysql, pg, mongo",
"main": "./lib/mock/index.cjs", "main": "./lib/mock/index.cjs",
"keywords": [], "keywords": [],

View File

@@ -1,6 +1,6 @@
{ {
"name": "@bot-whatsapp/provider", "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...", "description": "Esto es el conector a Twilio, Meta, etc...",
"main": "./lib/mock/index.cjs", "main": "./lib/mock/index.cjs",
"keywords": [], "keywords": [],

View File

@@ -47,9 +47,15 @@ const checkPkgStable = async (pkgName = '', version = '') => {
} }
) )
const listVersions = JSON.parse(stdout).reverse() try {
console.log(`[${pkgName}]: `, listVersions) const listVersions = JSON.parse(stdout).reverse()
return listVersions.at(0) 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)
}
} }
/** /**