@devlas/dte-sii 2.5.3 → 2.5.4

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.
Files changed (2) hide show
  1. package/SiiPortalAuth.js +3 -3
  2. package/package.json +2 -1
package/SiiPortalAuth.js CHANGED
@@ -1,5 +1,5 @@
1
- // Copyright (c) 2026 Devlas SpA — https://devlas.cl
2
- // Licencia MIT. Ver archivo LICENSE para mas detalles.
1
+ // Copyright (c) 2026 Devlas SpA — https://devlas.cl
2
+ // Licencia MIT. Ver archivo LICENSE para mas detalles.
3
3
  /**
4
4
  * SiiPortalAuth.js
5
5
  *
@@ -411,7 +411,7 @@ class SiiPortalAuth {
411
411
  static _parsearTablaEmpresa(html) {
412
412
  const datos = {};
413
413
 
414
- for (const row of html.matchAll(/<tr>[\s\S]*?<\/tr>/gi)) {
414
+ for (const row of html.matchAll(/<tr[^>]*>[\s\S]*?<\/tr>/gi)) {
415
415
  const celdas = [...row[0].matchAll(/<td[^>]*>([\s\S]*?)<\/td>/gi)]
416
416
  .map(m => m[1]
417
417
  .replace(/<[^>]+>/g, '')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devlas/dte-sii",
3
- "version": "2.5.3",
3
+ "version": "2.5.4",
4
4
  "description": "Facturación y boletas electrónicas para el SII de Chile. Genera, timbra, firma y envía DTEs, libros electrónicos y automatiza la certificación.",
5
5
  "main": "index.js",
6
6
  "types": "dte-sii.d.ts",
@@ -30,6 +30,7 @@
30
30
  },
31
31
  "dependencies": {
32
32
  "@xmldom/xmldom": "^0.8.11",
33
+ "bwip-js": "^4.8.0",
33
34
  "fast-xml-parser": "^5.3.3",
34
35
  "got": "^11.8.6",
35
36
  "node-forge": "^1.3.3",