@deinossrl/dgp-agent 1.5.20 → 1.5.22
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.md +10 -0
- package/index.mjs +4 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog - DGP Agent
|
|
2
2
|
|
|
3
|
+
## [1.5.22] - 2026-01-13
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
- Improved progress detection for `pg_restore` by including 'dropping' and 'from TOC entry' log lines usage.
|
|
7
|
+
|
|
8
|
+
## [1.5.21] - 2026-01-13
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
- Force `LC_ALL=C` on pg_restore to ensure progress bar works for restores on non-English systems.
|
|
12
|
+
|
|
3
13
|
## [1.5.20] - 2026-01-13
|
|
4
14
|
|
|
5
15
|
### Fixed
|
package/index.mjs
CHANGED
|
@@ -2354,7 +2354,7 @@ async function executePgRestore(command) {
|
|
|
2354
2354
|
|
|
2355
2355
|
const result = await new Promise((resolve, reject) => {
|
|
2356
2356
|
const child = spawn(pgRestorePath, pgRestoreArgs, {
|
|
2357
|
-
env: process.env,
|
|
2357
|
+
env: { ...process.env, LC_ALL: 'C' },
|
|
2358
2358
|
stdio: ['ignore', 'pipe', 'pipe'],
|
|
2359
2359
|
});
|
|
2360
2360
|
|
|
@@ -2382,7 +2382,9 @@ async function executePgRestore(command) {
|
|
|
2382
2382
|
const now = Date.now();
|
|
2383
2383
|
|
|
2384
2384
|
// LOGICA: Filtrar, calcular y MOSTRAR PROGRESO (Consola y Web)
|
|
2385
|
-
|
|
2385
|
+
// "from TOC entry" es clave para objetos metadata
|
|
2386
|
+
// "dropping" es para actividad de limpieza (si --clean)
|
|
2387
|
+
if (trimmed.includes('processing') || trimmed.includes('creating') || trimmed.includes('restoring') || trimmed.includes('creando') || trimmed.includes('procesando') || trimmed.includes('from TOC entry') || trimmed.includes('dropping')) {
|
|
2386
2388
|
processedObjects++;
|
|
2387
2389
|
|
|
2388
2390
|
// Si es un item procesado, mostrar progreso en consola
|