Merge branch 'codigoencasa:main' into main

This commit is contained in:
2023-01-06 06:59:50 -06:00
committed by GitHub
18 changed files with 32 additions and 27 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,6 @@
name: Rev Providers
on:
push:
branches:
- dev
pull_request:
branches:
- dev

View File

@@ -1,9 +1,6 @@
name: Build and Test
on:
push:
branches:
- dev
pull_request:
branches:
- dev

View File

@@ -6,7 +6,6 @@ on:
pull_request:
branches:
- dev
- main
types: [closed]
jobs:

View File

@@ -48,6 +48,9 @@ jobs:
- name: Release @bot-whatsapp/provider
run: yarn node ./scripts/release.js --name=provider --version="${{ steps.vars.outputs.tag }}" --token="${{ secrets.NPM_TOKEN }}"
- name: Set CHANGELOG
run: yarn release
- name: Commit Versioning & Push changes
uses: stefanzweifel/git-auto-commit-action@v4
with:

View File

@@ -30,7 +30,7 @@
"prepare": "npx husky install",
"preinstall": "npx only-allow yarn",
"postinstall": "npx prettier --write .",
"release": "standard-version -- --prerelease"
"release": "standard-version -- --prerelease --global"
},
"workspaces": [
"packages/create-bot-whatsapp",

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.39-alpha.0",
"version": "0.0.41-alpha.0",
"description": "",
"main": "./lib/bundle.bot.cjs",
"scripts": {

View File

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

View File

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

View File

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

View File

@@ -1,6 +1,6 @@
{
"dependencies": {
"@adiwajshing/baileys": "5.0.0",
"@adiwajshing/baileys": "4.4.0",
"mime-types": "2.1.35",
"wa-sticker-formatter": "4.3.2"
}

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)
}
}
/**

View File

@@ -13,7 +13,7 @@
"@bot-whatsapp/cli": "latest",
"@bot-whatsapp/database": "latest",
"@bot-whatsapp/provider": "latest",
"@adiwajshing/baileys": "5.0.0",
"@adiwajshing/baileys": "4.4.0",
"mime-types": "2.1.35",
"wa-sticker-formatter": "4.3.2"
},

View File

@@ -13,7 +13,7 @@
"@bot-whatsapp/cli": "latest",
"@bot-whatsapp/database": "latest",
"@bot-whatsapp/provider": "latest",
"@adiwajshing/baileys": "5.0.0",
"@adiwajshing/baileys": "4.4.0",
"mime-types": "2.1.35",
"wa-sticker-formatter": "4.3.2"
},

View File

@@ -13,7 +13,7 @@
"@bot-whatsapp/cli": "latest",
"@bot-whatsapp/database": "latest",
"@bot-whatsapp/provider": "latest",
"@adiwajshing/baileys": "5.0.0",
"@adiwajshing/baileys": "4.4.0",
"mime-types": "2.1.35",
"mongodb": "^4.12.1",
"wa-sticker-formatter": "4.3.2"

View File

@@ -13,7 +13,7 @@
"@bot-whatsapp/cli": "latest",
"@bot-whatsapp/database": "latest",
"@bot-whatsapp/provider": "latest",
"@adiwajshing/baileys": "5.0.0",
"@adiwajshing/baileys": "4.4.0",
"mime-types": "2.1.35",
"mysql2": "^2.3.3",
"wa-sticker-formatter": "4.3.2"