@credithub/harlan-components 1.59.0 → 1.59.1
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/dist/utils/protestosp.js +1 -1
- package/lib/cjs/index.js +2 -2
- package/lib/esm/index.js +2 -2
- package/package.json +1 -1
package/dist/utils/protestosp.js
CHANGED
|
@@ -57,7 +57,7 @@ export function openFormThenRedirect(chaveUnica, devedorPrincipal) {
|
|
|
57
57
|
return;
|
|
58
58
|
}
|
|
59
59
|
// Build the HTML document for the new window with the form.
|
|
60
|
-
var html = "\n <!DOCTYPE html>\n <html lang=\"en\">\n <head>\n <meta charset=\"UTF-8\">\n <title>Instrumento de S\u00E3o Paulo</title>\n </head>\n <body>\n <form id=\"submissionForm\" method=\"POST\" action=\"https://protestosp.com.br/Validacoes/Consultar\">\n <input type=\"hidden\" name=\"vTipoDocumento\" value=\"1\">\n <input type=\"hidden\" name=\"ChaveUnica\" value=\"".concat(formattedChaveUnica, "\">\n <input type=\"hidden\" name=\"DevedorPrincipalTipo\" value=\"").concat(devedorPrincipalTipo, "\">\n <input type=\"hidden\" name=\"DevedorPrincipal\" value=\"").concat(formattedDevedorPrincipal, "\">\n <input type=\"hidden\" name=\"ChaveValidacao\" value=\"P35-5030-8000-\">\n <input type=\"hidden\" name=\"PesquisadoDocumentoTipo\" value=\"0\">\n <input type=\"hidden\" name=\"PesquisadoDocumento\" value=\"\">\n <input type=\"hidden\" name=\"X-Requested-With\" value=\"XMLHttpRequest\">\n </form>\n <script>\n // Auto-submit the form.\n document.getElementById('submissionForm').submit();\n // After 2 seconds, close this window.\n </script>\n </body>\n </html>\n ");
|
|
60
|
+
var html = "\n <!DOCTYPE html>\n <html lang=\"en\">\n <head>\n <meta charset=\"UTF-8\">\n <title>Instrumento de S\u00E3o Paulo</title>\n <meta name=\"referrer\" content=\"no-referrer\" />\n </head>\n <body>\n <form id=\"submissionForm\" method=\"POST\" action=\"https://protestosp.com.br/Validacoes/Consultar\">\n <input type=\"hidden\" name=\"vTipoDocumento\" value=\"1\">\n <input type=\"hidden\" name=\"ChaveUnica\" value=\"".concat(formattedChaveUnica, "\">\n <input type=\"hidden\" name=\"DevedorPrincipalTipo\" value=\"").concat(devedorPrincipalTipo, "\">\n <input type=\"hidden\" name=\"DevedorPrincipal\" value=\"").concat(formattedDevedorPrincipal, "\">\n <input type=\"hidden\" name=\"ChaveValidacao\" value=\"P35-5030-8000-\">\n <input type=\"hidden\" name=\"PesquisadoDocumentoTipo\" value=\"0\">\n <input type=\"hidden\" name=\"PesquisadoDocumento\" value=\"\">\n <input type=\"hidden\" name=\"X-Requested-With\" value=\"XMLHttpRequest\">\n </form>\n <script>\n // Auto-submit the form.\n document.getElementById('submissionForm').submit();\n // After 2 seconds, close this window.\n </script>\n </body>\n </html>\n ");
|
|
61
61
|
newWindow.document.open();
|
|
62
62
|
newWindow.document.write(html);
|
|
63
63
|
setTimeout(function () {
|