palabra 1.9.4 → 1.10.0

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,8 @@
1
+ 2026.04.08, v1.10.0
2
+
3
+ feature:
4
+ - 710f39e palabra: hogar
5
+
1
6
  2026.04.08, v1.9.4
2
7
 
3
8
  fix:
@@ -18,7 +18,7 @@
18
18
  "rustfmt": "bin/rustfmt",
19
19
  "rustup": "bin/rustup"
20
20
  },
21
- "dir": "cargo",
21
+ "hogar": "cargo",
22
22
  "env": {
23
23
  "RUSTUP_HOME": "{{ directorio }}/rustup",
24
24
  "CARGO_HOME": "{{ directorio }}/cargo"
@@ -20,6 +20,7 @@ export const parse = (letra) => {
20
20
  url,
21
21
  name,
22
22
  bin = `/bin/${name}`,
23
+ hogar = name,
23
24
  directorio,
24
25
  } = letra;
25
26
 
@@ -33,6 +34,7 @@ export const parse = (letra) => {
33
34
 
34
35
  commands.push(...createSymlinks({
35
36
  directorio,
37
+ hogar,
36
38
  name,
37
39
  bin,
38
40
  }));
@@ -43,9 +45,13 @@ export const parse = (letra) => {
43
45
  return commands;
44
46
  };
45
47
 
46
- function createSymlinks({directorio, name, bin}) {
48
+ function createSymlinks({name, directorio, hogar, bin}) {
47
49
  const commands = [];
48
- const parsedBin = parseBin(name, bin);
50
+ const parsedBin = parseBin({
51
+ name,
52
+ hogar,
53
+ bin,
54
+ });
49
55
 
50
56
  const binDir = join(directorio, '..', `bin`);
51
57
  commands.push(`mkdir -p ${binDir}`);
@@ -59,11 +65,18 @@ function createSymlinks({directorio, name, bin}) {
59
65
  return commands;
60
66
  }
61
67
 
62
- function parseBin(name, bin) {
68
+ function parseBin({name, hogar, bin}) {
63
69
  if (isString(bin))
64
70
  return {
65
- [name]: `${name}/${bin}`,
71
+ [name]: join(name, bin),
66
72
  };
67
73
 
68
- return bin;
74
+ const result = {};
75
+
76
+ for (const [currentName, binPath] of entries(bin)) {
77
+ result[currentName] = join(hogar, binPath);
78
+ }
79
+
80
+ return result;
69
81
  }
82
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "palabra",
3
- "version": "1.9.4",
3
+ "version": "1.10.0",
4
4
  "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "Palabra software installer",