@builderbot/cli 1.1.2-alpha.1 → 1.1.2-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.cjs +6 -6
  2. package/package.json +2 -2
package/dist/index.cjs CHANGED
@@ -210,17 +210,17 @@ const checkNodeVersion = () => {
210
210
  return new Promise((resolve) => {
211
211
  const version = node_os.version;
212
212
  const majorVersion = parseInt(version().replace('v', '').split('.')[0]);
213
- if (majorVersion < 18) {
214
- resolve({ pass: false, message: `Se requiere Node.js 18 o superior. (${version})` });
213
+ if (majorVersion < 20) {
214
+ resolve({ pass: false, message: `Node.js 20 or higher is required.. (${version})` });
215
215
  }
216
- resolve({ pass: true, message: `Node: ${version} compatible` });
216
+ resolve({ pass: true, message: `Node: ${version} supported` });
217
217
  });
218
218
  };
219
219
  const checkOs = () => {
220
220
  return new Promise((resolve) => {
221
221
  const os = node_os.platform();
222
222
  if (!os.includes('win32')) {
223
- resolve(`OS: ${os} (revisar documentación)`);
223
+ resolve(`OS: ${os}`);
224
224
  }
225
225
  resolve(`OS: ${os}`);
226
226
  });
@@ -229,10 +229,10 @@ const checkGit = () => {
229
229
  return new Promise((resolve, reject) => {
230
230
  node_child_process.exec('git --version', (error) => {
231
231
  if (error) {
232
- reject({ pass: false, message: `Requiere instalar GIT` });
232
+ reject({ pass: false, message: `Requires GIT installation` });
233
233
  }
234
234
  else {
235
- resolve({ pass: true, message: `Git: compatible` });
235
+ resolve({ pass: true, message: `Git: supported` });
236
236
  }
237
237
  });
238
238
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builderbot/cli",
3
- "version": "1.1.2-alpha.1",
3
+ "version": "1.1.2-alpha.3",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs",
6
6
  "types": "dist/index.d.ts",
@@ -41,5 +41,5 @@
41
41
  "type": "git",
42
42
  "url": "https://github.com/codigoencasa/bot-whatsapp/tree/main/packages/cli"
43
43
  },
44
- "gitHead": "06ae05a9adba9836d19fb931d21389b268a0eff0"
44
+ "gitHead": "fe8abd6f4a59b244b0cc5de57328276448ff61f8"
45
45
  }