@dotrino/vaultd 0.7.7 → 0.7.8
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/bin/dotrino-vaultd.js +1 -1
- package/package.json +1 -1
- package/src/ctl.js +1 -1
- package/src/tui/app.js +1 -1
package/bin/dotrino-vaultd.js
CHANGED
|
@@ -38,7 +38,7 @@ const mgr = await runDaemon()
|
|
|
38
38
|
if (process.argv.includes('--pair')) {
|
|
39
39
|
const { qr, expiresInMs } = mgr.current().startPairing({ label: 'cli' })
|
|
40
40
|
console.log(`\nEmparejá un dispositivo (válido ${expiresInMs / 60000} min):\n`)
|
|
41
|
-
console.log(qrToString(JSON.stringify(qr)))
|
|
41
|
+
console.log(qrToString(JSON.stringify(qr), 2))
|
|
42
42
|
console.log(JSON.stringify(qr))
|
|
43
43
|
}
|
|
44
44
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dotrino/vaultd",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Certificador personal de Dotrino: daemon headless que custodia la clave maestra y delega capacidades a tus dispositivos por el proxy. Tu CA propia.",
|
|
6
6
|
"bin": {
|
package/src/ctl.js
CHANGED
|
@@ -186,7 +186,7 @@ async function cmdPair (args = []) {
|
|
|
186
186
|
const acct = pair.profileName || pair.profile
|
|
187
187
|
if (acct) console.log('\nCuenta que se comparte: %s%s', acct, pair.profileName && pair.profile ? ` (${pair.profile})` : '')
|
|
188
188
|
console.log('\nEscanea este QR con el dispositivo que quieres conectar (válido %d min):\n', mins)
|
|
189
|
-
console.log(qrToString(
|
|
189
|
+
console.log(qrToString(payload, 2)) // QR con el JSON crudo (menos datos) y zona de silencio reducida
|
|
190
190
|
console.log(`${R}${B}⚠ Este código deja LEER tus datos y FIRMAR con tu identidad.${Z}`)
|
|
191
191
|
console.log(`${R} NO lo compartas con nadie, ni con "soporte". Solo escanéalo en TU dispositivo.${Z}`)
|
|
192
192
|
console.log('\nO abre esta dirección en el dispositivo:\n ' + url)
|
package/src/tui/app.js
CHANGED
|
@@ -701,7 +701,7 @@ function pairingBody (st, t, cols, height) {
|
|
|
701
701
|
// QR: se dibuja siempre que quepa de ancho; si es más alto que la pantalla se
|
|
702
702
|
// puede hacer scroll hacia arriba/abajo para verlo completo.
|
|
703
703
|
let qr = ''
|
|
704
|
-
try { qr = qrToString(info.
|
|
704
|
+
try { qr = qrToString(info.payload, 2) } catch (_) {}
|
|
705
705
|
const qrLines = qr ? qr.replace(/\n$/, '').split('\n') : []
|
|
706
706
|
const qrWidth = qrLines.length ? Math.max(...qrLines.map((l) => l.replace(/\x1b\[[0-9;]*m/g, '').length)) : 0
|
|
707
707
|
if (qrLines.length && qrWidth <= cols) {
|