palabra 2.3.0 → 2.3.2

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.14, v2.3.2
2
+
3
+ fix:
4
+ - 3f2d5c0 palabra: parser: rename: mv -f -> mv -T
5
+
6
+ 2026.04.14, v2.3.1
7
+
8
+ fix:
9
+ - 71f1581 palabra: extract: XDG_CACHE_HOME
10
+
1
11
  2026.04.14, v2.3.0
2
12
 
3
13
  feature:
@@ -1,4 +1,8 @@
1
- import {basename, extname} from 'node:path';
1
+ import {
2
+ basename,
3
+ extname,
4
+ join,
5
+ } from 'node:path';
2
6
  import {rendy} from 'rendy';
3
7
 
4
8
  const exts = [
@@ -31,12 +35,15 @@ export const extract = (letra) => {
31
35
  const renderedURL = rendy(url, letra);
32
36
  const filename = basename(renderedURL);
33
37
  const renderedextractDirectory = rendy(extractDirectory, letra);
38
+ const tmpDir = '${XDG_CACHE_HOME:-/tmp}';
39
+ const tmpFile = join(tmpDir, filename);
34
40
 
35
- commands.push(`wget ${CONTINUE} ${NOT_OVERWRITE} ${renderedURL} -O \${XDG_CACHE_HOME:-/tmp}/${filename}`);
41
+ commands.push(`wget ${CONTINUE} ${NOT_OVERWRITE} ${renderedURL} -O ${tmpFile}`);
36
42
  commands.push(`rm -rf ${directorio}/${name}`);
37
43
  commands.push(`mkdir -p ${directorio}/${name}`);
38
- commands.push(`tar xf /tmp/${filename} -C ${renderedextractDirectory}`);
39
- commands.push(`rm /tmp/${filename}`);
44
+ commands.push(`tar xf ${tmpFile} -C ${renderedextractDirectory}`);
45
+ commands.push(`rm ${tmpFile}`);
40
46
 
41
47
  return commands;
42
48
  };
49
+
@@ -8,7 +8,7 @@ export const rename = (letra) => {
8
8
  const from = join(directorio, renderedRename);
9
9
  const to = join(directorio, name);
10
10
 
11
- commands.push(`mv -f ${from} ${to}`);
11
+ commands.push(`mv -T ${from} ${to}`);
12
12
 
13
13
  return commands;
14
14
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "palabra",
3
- "version": "2.3.0",
3
+ "version": "2.3.2",
4
4
  "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "Palabra software installer",