palabra 1.8.4 → 1.8.6

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.
package/ChangeLog CHANGED
@@ -1,3 +1,13 @@
1
+ 2026.04.08, v1.8.6
2
+
3
+ fix:
4
+ - 2dbf0c2 directorio
5
+
6
+ 2026.04.08, v1.8.5
7
+
8
+ fix:
9
+ - 54cd560 palabra: mkdir bin
10
+
1
11
  2026.04.08, v1.8.4
2
12
 
3
13
  feature:
@@ -1,9 +1,11 @@
1
1
  import {create, createPalabra} from '../palabra.js';
2
2
  import {readPalabra} from './read-palabra.js';
3
3
 
4
- export const instalar = async (nombres) => {
4
+ export const instalar = async (nombres, {directorio}) => {
5
5
  if (nombres) {
6
- const palabra = createPalabra(nombres);
6
+ const palabra = createPalabra(nombres, {
7
+ directorio,
8
+ });
7
9
  return create(palabra);
8
10
  }
9
11
 
package/lib/palabra.js CHANGED
@@ -10,7 +10,7 @@ export const create = async (palabras) => {
10
10
  return commands.join(' && ');
11
11
  };
12
12
 
13
- export const createPalabra = (nombres, letras) => {
13
+ export const createPalabra = (nombres, {letras, directorio}) => {
14
14
  if (letras)
15
15
  return {
16
16
  letras,
@@ -30,6 +30,7 @@ export const createPalabra = (nombres, letras) => {
30
30
  }
31
31
 
32
32
  return {
33
+ directorio,
33
34
  letras: newLetras,
34
35
  };
35
36
  };
@@ -44,9 +44,11 @@ function createSymlinks({directorio, name, bin}) {
44
44
  const commands = [];
45
45
  const parsedBin = parseBin(name, bin);
46
46
 
47
+ const binDir = join(directorio, '..', `bin`);
48
+ commands.push(`mkdir -p ${binDir}`);
47
49
  for (const [name, from] of entries(parsedBin)) {
48
50
  const binFrom = join(directorio, from);
49
- const binTo = join(directorio, '..', `bin/${name}`);
51
+ const binTo = join(binDir, name);
50
52
 
51
53
  commands.push(`ln -fs ${binFrom} ${binTo}`);
52
54
  }
@@ -9,10 +9,10 @@ export const unpack = (letra) => {
9
9
  directorio,
10
10
  } = letra;
11
11
 
12
- const renderedurl = rendy(url, letra);
13
- const filename = basename(renderedurl);
12
+ const renderedURL = rendy(url, letra);
13
+ const filename = basename(renderedURL);
14
14
 
15
- commands.push(`wget ${renderedurl}`);
15
+ commands.push(`wget ${renderedURL}`);
16
16
  commands.push(`rm -rf ${directorio}/${name}`);
17
17
  commands.push(`mkdir -p ${directorio}/${name}`);
18
18
  commands.push(`tar zxf ${filename} -C ${directorio}/${name}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "palabra",
3
- "version": "1.8.4",
3
+ "version": "1.8.6",
4
4
  "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "Palabra software installer",