mirror of
https://github.com/cheveguerra/bot-whatsapp.git
synced 2026-04-20 20:49:15 +00:00
Merge branch 'codigoencasa:main' into contributors-readme-action-vD8KNFS-uk
This commit is contained in:
12
.github/workflows/check-provider-major.yml
vendored
12
.github/workflows/check-provider-major.yml
vendored
@@ -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
|
||||||
|
|||||||
3
.github/workflows/check-providers.yml
vendored
3
.github/workflows/check-providers.yml
vendored
@@ -1,9 +1,6 @@
|
|||||||
name: Rev Providers
|
name: Rev Providers
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- dev
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- dev
|
- dev
|
||||||
|
|||||||
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
@@ -1,9 +1,6 @@
|
|||||||
name: Build and Test
|
name: Build and Test
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- dev
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- dev
|
- dev
|
||||||
|
|||||||
1
.github/workflows/contributors.yml
vendored
1
.github/workflows/contributors.yml
vendored
@@ -6,7 +6,6 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- dev
|
- dev
|
||||||
- main
|
|
||||||
types: [closed]
|
types: [closed]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|||||||
3
.github/workflows/releases.yml
vendored
3
.github/workflows/releases.yml
vendored
@@ -48,6 +48,9 @@ jobs:
|
|||||||
- name: Release @bot-whatsapp/provider
|
- name: Release @bot-whatsapp/provider
|
||||||
run: yarn node ./scripts/release.js --name=provider --version="${{ steps.vars.outputs.tag }}" --token="${{ secrets.NPM_TOKEN }}"
|
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
|
- name: Commit Versioning & Push changes
|
||||||
uses: stefanzweifel/git-auto-commit-action@v4
|
uses: stefanzweifel/git-auto-commit-action@v4
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -30,7 +30,7 @@
|
|||||||
"prepare": "npx husky install",
|
"prepare": "npx husky install",
|
||||||
"preinstall": "npx only-allow yarn",
|
"preinstall": "npx only-allow yarn",
|
||||||
"postinstall": "npx prettier --write .",
|
"postinstall": "npx prettier --write .",
|
||||||
"release": "standard-version -- --prerelease"
|
"release": "standard-version -- --prerelease --global"
|
||||||
},
|
},
|
||||||
"workspaces": [
|
"workspaces": [
|
||||||
"packages/create-bot-whatsapp",
|
"packages/create-bot-whatsapp",
|
||||||
|
|||||||
@@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@bot-whatsapp/bot",
|
"name": "@bot-whatsapp/bot",
|
||||||
"version": "0.0.39-alpha.0",
|
"version": "0.0.41-alpha.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "./lib/bundle.bot.cjs",
|
"main": "./lib/bundle.bot.cjs",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@bot-whatsapp/cli",
|
"name": "@bot-whatsapp/cli",
|
||||||
"version": "0.0.46-alpha.0",
|
"version": "0.0.48-alpha.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "create-bot-whatsapp",
|
"name": "create-bot-whatsapp",
|
||||||
"version": "0.0.57-alpha.0",
|
"version": "0.0.59-alpha.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "./lib/bundle.create-bot-whatsapp.cjs",
|
"main": "./lib/bundle.create-bot-whatsapp.cjs",
|
||||||
"files": [
|
"files": [
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@bot-whatsapp/database",
|
"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",
|
"description": "Esto es el conector a mysql, pg, mongo",
|
||||||
"main": "./lib/mock/index.cjs",
|
"main": "./lib/mock/index.cjs",
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@bot-whatsapp/provider",
|
"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...",
|
"description": "Esto es el conector a Twilio, Meta, etc...",
|
||||||
"main": "./lib/mock/index.cjs",
|
"main": "./lib/mock/index.cjs",
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
|
|||||||
@@ -47,9 +47,15 @@ const checkPkgStable = async (pkgName = '', version = '') => {
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
try {
|
||||||
const listVersions = JSON.parse(stdout).reverse()
|
const listVersions = JSON.parse(stdout).reverse()
|
||||||
console.log(`[${pkgName}]: `, listVersions)
|
console.log(`[${pkgName}]: `, listVersions)
|
||||||
return listVersions.at(0)
|
return listVersions.at(0)
|
||||||
|
} catch (e) {
|
||||||
|
const listVersions = [stdout.trim().replace('\n').replaceAll('"', '')]
|
||||||
|
console.log(`[${pkgName}]: `, listVersions)
|
||||||
|
return listVersions.at(0)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user