palabra 1.18.0 → 1.19.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.
package/ChangeLog CHANGED
@@ -1,3 +1,13 @@
1
+ 2026.04.11, v1.19.1
2
+
3
+ feature:
4
+ - 480aea7 palabra: letras: rizin: extractDirectory
5
+
6
+ 2026.04.11, v1.19.0
7
+
8
+ feature:
9
+ - 2e7fe91 palabra: wget: continue, do not overwrite
10
+
1
11
  2026.04.11, v1.18.0
2
12
 
3
13
  feature:
@@ -1,21 +1,19 @@
1
1
  {
2
- "name": "rizin",
3
- "version": "0.8.2",
4
- "url": "https://github.com/rizinorg/rizin/releases/download/v{{ version }}/rizin-v{{ version }}-static-x86_64.tar.xz",
5
- "bin": {
6
- "rizin": "bin/rizin",
7
- "rz-asm": "bin/rasm",
8
- "rz-ax": "bin/rax",
9
- "rz-bin": "bin/rz-bin",
10
- "rz-diff": "bin/rz-diff",
11
- "rz-find": "bin/rz-find",
12
- "rz-gg": "bin/rz-gg",
13
- "rz-hash": "bin/rz-hash",
14
- "rz-run": "bin/rz-run",
15
- "rz-sign": "bin/rz-sign",
16
- "rz-test": "bin/rz-test"
17
- },
18
- "commands": [
19
- "mv {{ directorio }}/rizin-v0.8.2-static-x86_64 {{ directorio }}/rizin"
20
- ]
21
- }
2
+ "name": "rizin",
3
+ "version": "0.8.2",
4
+ "url": "https://github.com/rizinorg/rizin/releases/download/v{{ version }}/rizin-v{{ version }}-static-x86_64.tar.xz",
5
+ "extractDirectory": "{{ directorio }}/ {{ name }}",
6
+ "bin": {
7
+ "rizin": "bin/rizin",
8
+ "rz-asm": "bin/rasm",
9
+ "rz-ax": "bin/rax",
10
+ "rz-bin": "bin/rz-bin",
11
+ "rz-diff": "bin/rz-diff",
12
+ "rz-find": "bin/rz-find",
13
+ "rz-gg": "bin/rz-gg",
14
+ "rz-hash": "bin/rz-hash",
15
+ "rz-run": "bin/rz-run",
16
+ "rz-sign": "bin/rz-sign",
17
+ "rz-test": "bin/rz-test"
18
+ }
19
+ }
@@ -1,13 +1,13 @@
1
1
  {
2
- "name": "yara",
3
- "version": "1.14.0",
4
- "url": "https://github.com/VirusTotal/yara-x/releases/download/v{{ version }}/yara-x-v{{ version }}-x86_64-unknown-linux-gnu.gz",
5
- "bin": {
6
- "yara": "yr",
7
- "yr": "yr"
8
- },
9
- "commands": [
10
- "mkdir -f {{ directorio }}/yara",
11
- "mv -f {{ directorio }}/yr {{ directorio }}/yara/"
12
- ]
13
- }
2
+ "name": "yara",
3
+ "version": "1.14.0",
4
+ "url": "https://github.com/VirusTotal/yara-x/releases/download/v{{ version }}/yara-x-v{{ version }}-x86_64-unknown-linux-gnu.gz",
5
+ "bin": {
6
+ "yara": "yr",
7
+ "yr": "yr"
8
+ },
9
+ "commands": [
10
+ "mkdir -f {{ directorio }}/yara",
11
+ "mv -f {{ directorio }}/yr {{ directorio }}/yara/"
12
+ ]
13
+ }
@@ -7,6 +7,9 @@ const exts = [
7
7
  '.xz',
8
8
  ];
9
9
 
10
+ const CONTINUE = '-c';
11
+ const NOT_OVERWRITE = '-nc';
12
+
10
13
  export const isArchive = ({url}) => {
11
14
  const ext = extname(new URL(url).pathname);
12
15
  return exts.includes(ext);
@@ -18,15 +21,17 @@ export const extract = (letra) => {
18
21
  name,
19
22
  url,
20
23
  directorio,
24
+ extractDirectory = directorio,
21
25
  } = letra;
22
26
 
23
27
  const renderedURL = rendy(url, letra);
24
28
  const filename = basename(renderedURL);
29
+ const renderedextractDirectory = rendy(extractDirectory, letra);
25
30
 
26
- commands.push(`wget ${renderedURL} -O /tmp/${filename}`);
31
+ commands.push(`wget ${CONTINUE} ${NOT_OVERWRITE} ${renderedURL} -O /tmp/${filename}`);
27
32
  commands.push(`rm -rf ${directorio}/${name}`);
28
33
  commands.push(`mkdir -p ${directorio}/${name}`);
29
- commands.push(`tar xf /tmp/${filename} -C ${directorio}`);
34
+ commands.push(`tar xf /tmp/${filename} -C ${renderedextractDirectory}`);
30
35
  commands.push(`rm /tmp/${filename}`);
31
36
 
32
37
  return commands;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "palabra",
3
- "version": "1.18.0",
3
+ "version": "1.19.1",
4
4
  "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "Palabra software installer",