entexto-cli 1.4.0 → 1.4.1

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/lib/utils/api.js +1 -1
  2. package/package.json +1 -1
package/lib/utils/api.js CHANGED
@@ -79,11 +79,11 @@ async function streamEvents(uuid, onEvent) {
79
79
  });
80
80
  const stream = response.data;
81
81
  let buffer = '';
82
+ let eventType = 'message', dataStr = '';
82
83
  stream.on('data', (chunk) => {
83
84
  buffer += chunk.toString();
84
85
  const parts = buffer.split('\n');
85
86
  buffer = parts.pop();
86
- let eventType = 'message', dataStr = '';
87
87
  for (const line of parts) {
88
88
  if (line.startsWith('event: ')) eventType = line.slice(7).trim();
89
89
  else if (line.startsWith('data: ')) dataStr = line.slice(6).trim();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "entexto-cli",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "CLI oficial de Entexto — Deploy y gestión de proyectos desde tu terminal",
5
5
  "main": "lib/index.js",
6
6
  "bin": {