palabra 2.3.0 → 2.3.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,8 @@
1
+ 2026.04.14, v2.3.1
2
+
3
+ fix:
4
+ - 71f1581 palabra: extract: XDG_CACHE_HOME
5
+
1
6
  2026.04.14, v2.3.0
2
7
 
3
8
  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
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "palabra",
3
- "version": "2.3.0",
3
+ "version": "2.3.1",
4
4
  "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "Palabra software installer",