palabra 1.5.0 → 1.6.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.07, v1.6.0
2
+
3
+ feature:
4
+ - 76ed3a4 palabra: rust: add
5
+
1
6
  2026.04.07, v1.5.0
2
7
 
3
8
  feature:
package/letras/bun.json CHANGED
@@ -2,6 +2,6 @@
2
2
  "name": "bun",
3
3
  "url": "https://bun.sh/install",
4
4
  "env": {
5
- "BUN_INSTALL": "{{ camino }}"
5
+ "BUN_INSTALL": "{{ camino }}/bun"
6
6
  }
7
7
  }
package/letras/deno.json CHANGED
@@ -2,6 +2,6 @@
2
2
  "name": "deno",
3
3
  "url": "https://deno.land/install.sh",
4
4
  "env": {
5
- "DENO_DIR": "{{ camino }}"
5
+ "DENO_DIR": "{{ camino }}/deno"
6
6
  }
7
7
  }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "rust",
3
+ "url": "https://sh.rustup.rs",
4
+ "confirmar": false,
5
+ "env": {
6
+ "RUSTUP_HOME": "{{ camino }}/rustup",
7
+ "CARGO_HOME": "{{ camino }}/cargo"
8
+ }
9
+ }
package/lib/buscar.js CHANGED
@@ -14,6 +14,7 @@ export const buscar = async (name, values = {}) => {
14
14
 
15
15
  return {
16
16
  encontro: true,
17
+ confirmar: true,
17
18
  ...data,
18
19
  version,
19
20
  camino,
@@ -5,18 +5,22 @@ const {entries} = Object;
5
5
  export const execute = (letra) => {
6
6
  const commands = [];
7
7
  const {
8
+
8
9
  url,
9
10
  env = {},
11
+ confirmar,
10
12
  } = letra;
11
13
 
12
14
  const envLine = [];
13
15
 
14
16
  for (const [name, value] of entries(env)) {
15
17
  const envValue = rendy(value, letra);
18
+
16
19
  envLine.push(`${name}=${envValue}`);
17
20
  }
18
21
 
19
- const curl = `bash -c "$(curl -fsSL ${url})"`;
22
+ const arg = confirmar ? '' : ' -- -y';
23
+ const curl = `bash -c "$(curl -fsSL ${url})"${arg}`;
20
24
 
21
25
  if (!envLine.length) {
22
26
  commands.push(curl);
@@ -6,7 +6,15 @@ const {entries} = Object;
6
6
 
7
7
  const isString = (a) => typeof a === 'string';
8
8
 
9
+ const addDefaults = (letra) => ({
10
+ confirmar: true,
11
+ camino: '~/.local/src',
12
+ ...letra,
13
+ });
14
+
9
15
  export const parse = (letra) => {
16
+ letra = addDefaults(letra);
17
+
10
18
  const commands = [];
11
19
  const {
12
20
  url,
@@ -15,7 +23,7 @@ export const parse = (letra) => {
15
23
  camino,
16
24
  } = letra;
17
25
 
18
- const ext = extname(url);
26
+ const ext = extname(new URL(url).pathname);
19
27
 
20
28
  if (ext === '.tgz' || ext === '.gz')
21
29
  commands.push(...unpack(letra));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "palabra",
3
- "version": "1.5.0",
3
+ "version": "1.6.0",
4
4
  "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "Palabra software installer",