palabra 2.4.5 → 2.5.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,13 @@
1
+ 2026.04.20, v2.5.0
2
+
3
+ feature:
4
+ - e7aeb96 palabra: bun: add ability to set version
5
+
6
+ 2026.04.14, v2.4.6
7
+
8
+ fix:
9
+ - 1da327d palabra: letras: yara
10
+
1
11
  2026.04.14, v2.4.5
2
12
 
3
13
  feature:
package/README.md CHANGED
@@ -104,8 +104,7 @@ extracted and then copied to directory `$PALABRA_DIR` and made symlinks.
104
104
 
105
105
  ### Script
106
106
 
107
- Provided url to script that should be downloaded and executed
108
-
107
+ Provided url to script that should be downloaded and executed
109
108
 
110
109
  ## License
111
110
 
@@ -1,9 +1,13 @@
1
1
  {
2
2
  "name": "bun",
3
+ "version": "1.3.12",
3
4
  "url": "https://bun.sh/install",
4
5
  "env": {
5
6
  "BUN_INSTALL": "{{ directorio }}/bun"
6
7
  },
8
+ "args": [
9
+ "\"bun-v{{ version }}\""
10
+ ],
7
11
  "test": [
8
12
  "bun -v",
9
13
  "bunx -v"
@@ -12,6 +12,6 @@
12
12
  ],
13
13
  "commands": [
14
14
  "mkdir -p {{ directorio }}/yara",
15
- "mv -T {{ directorio }}/yr {{ directorio }}/yara/"
15
+ "mv {{ directorio }}/yr {{ directorio }}/yara/"
16
16
  ]
17
17
  }
@@ -20,7 +20,11 @@ export const isExecute = (letra) => {
20
20
 
21
21
  export const execute = (letra) => {
22
22
  const commands = [];
23
- const {url, confirmar} = letra;
23
+ const {
24
+ url,
25
+ confirmar,
26
+ args = [],
27
+ } = letra;
24
28
 
25
29
  const envLine = parseEnv(letra);
26
30
  const renderedURL = rendy(url, letra);
@@ -28,7 +32,15 @@ export const execute = (letra) => {
28
32
  const arg = confirmar ? '' : ' -- -y';
29
33
  const curl = `bash -c "$(curl -fsSL ${renderedURL})"${arg}`;
30
34
 
31
- commands.push(`${envLine}${curl}`);
35
+ const argsLines = [];
36
+
37
+ for (const arg of args) {
38
+ argsLines.push(rendy(arg, letra));
39
+ }
40
+
41
+ const argsResult = !argsLines.length ? '' : ` _ ${argsLines.join(' ')}`;
42
+
43
+ commands.push(`${envLine}${curl}${argsResult}`);
32
44
 
33
45
  return commands;
34
46
  };
@@ -13,15 +13,17 @@ export const prepare = (letra) => {
13
13
  name,
14
14
  bin = parseBin(letra),
15
15
  hogar = name,
16
+ afterInstall = [],
16
17
  } = letra;
17
18
 
18
19
  return {
20
+ ...letra,
19
21
  confirmar,
20
22
  directorio,
21
23
  url,
22
24
  name,
23
25
  bin,
24
26
  hogar,
25
- ...letra,
27
+ afterInstall,
26
28
  };
27
29
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "palabra",
3
- "version": "2.4.5",
3
+ "version": "2.5.0",
4
4
  "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "Palabra software installer",