palabra 1.13.7 → 1.14.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.10, v1.14.0
2
+
3
+ feature:
4
+ - 0348f79 palabra: letras: bin: add
5
+
1
6
  2026.04.10, v1.13.7
2
7
 
3
8
  fix:
@@ -0,0 +1,14 @@
1
+ {
2
+ "name": "bin",
3
+ "version": "v0.24.3",
4
+ "url": "https://github.com/marcosnils/bin/releases/download/{{ version }}/bin_{{ version }}_linux_amd64",
5
+ "bin": {
6
+ "bin": "bin"
7
+ },
8
+ "execute": false,
9
+ "commands": [
10
+ "mkdir -f {{ directorio }}/bin",
11
+ "mv -f {{ directorio }}/bin_{{ version }}_linux_amd64 {{ directorio }}/bin/bin",
12
+ "chmod +x {{ directorio }}/bin/bin"
13
+ ]
14
+ }
@@ -5,8 +5,7 @@
5
5
  "env": {
6
6
  "NVM_DIR": "{{ directorio }}/nvm"
7
7
  },
8
- "bin": {
9
- },
8
+ "bin": {},
10
9
  "preinstall": [
11
10
  "mkdir -p {{ directorio }}/nvm"
12
11
  ],
@@ -5,6 +5,8 @@ import {execute} from './execute.js';
5
5
  import {parseEnv} from './parse-env.js';
6
6
  import {run} from './run.js';
7
7
 
8
+ const isBool = (a) => typeof a === 'boolean';
9
+
8
10
  const {entries} = Object;
9
11
 
10
12
  const isString = (a) => typeof a === 'string';
@@ -42,9 +44,14 @@ export const parse = (letra) => {
42
44
  if (isArchive(ext))
43
45
  commands.push(...extract(letra));
44
46
 
45
- if (!ext || ext === '.sh')
47
+ if (letra.execute !== false && (!ext || ext === '.sh'))
46
48
  commands.push(...execute(letra));
47
49
 
50
+ if (isBool(letra.execute) && !letra.execute) {
51
+ const renderedURL = rendy(url, letra);
52
+ commands.push(`curl -fsSL ${renderedURL}`);
53
+ }
54
+
48
55
  commands.push(...createSymlinks({
49
56
  directorio,
50
57
  hogar,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "palabra",
3
- "version": "1.13.7",
3
+ "version": "1.14.0",
4
4
  "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "Palabra software installer",