herramientaenvioestupendo 1.0.25 → 1.0.26
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/package.json +1 -1
- package/src/index.js +1 -1
- package/src/services.js +1 -1
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { program } from "commander"
|
|
|
3
3
|
import { sendTxt, sendXml, sendAttached } from "./services.js"
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
program.name("estupendo").version("1.0.
|
|
6
|
+
program.name("estupendo").version("1.0.26")
|
|
7
7
|
|
|
8
8
|
program.command("send_xml")
|
|
9
9
|
.requiredOption("-d, --directory <char>", "Directorio donde se encuentran los documentos XML")
|
package/src/services.js
CHANGED
|
@@ -83,7 +83,7 @@ const sendTxt = async (options) => {
|
|
|
83
83
|
const dataconsult =await request(urlApiConsulta, {nit: "891400754", numeral: data.documento_id})
|
|
84
84
|
console.log(dataconsult)
|
|
85
85
|
|
|
86
|
-
if (
|
|
86
|
+
if (dataconsult.result === true) {
|
|
87
87
|
const pdfUrl = dataconsult.pdf;
|
|
88
88
|
const pdfPath = path.join(pdfDir, `${data.documento_id}.pdf`);
|
|
89
89
|
try {
|