@devlas/dte-sii 2.12.3 → 2.12.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.
package/CafSolicitor.js CHANGED
@@ -395,6 +395,10 @@ class CafSolicitor {
395
395
  response = await this.session.submitForm('/cvc_cgi/dte/of_solicita_folios_dcto', selectFields);
396
396
  currentHtml = response.body || '';
397
397
  this._saveDebug(debugDir, 'select.html', currentHtml);
398
+
399
+ if (currentHtml.includes('NO SE AUTORIZA')) {
400
+ return response; // solicitar() detectará el bloqueo en response.body
401
+ }
398
402
  }
399
403
 
400
404
  // Paso 3: Solicitar numeración
package/FolioService.js CHANGED
@@ -62,6 +62,7 @@ class FolioService {
62
62
  ambiente: this.ambiente,
63
63
  certificado: options.certificado,
64
64
  pfxPath: options.pfxPath,
65
+ pfxBuffer: options.pfxBuffer,
65
66
  pfxPassword: options.pfxPassword,
66
67
  });
67
68
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devlas/dte-sii",
3
- "version": "2.12.3",
3
+ "version": "2.12.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",