node-dfe icon indicating copy to clipboard operation
node-dfe copied to clipboard

Alguma alternativa ao request?

Open uilhianet opened this issue 4 years ago • 3 comments

O mesmo está descontinuado faz bastante tempo.

uilhianet avatar Feb 03 '22 12:02 uilhianet

usei o repo como base em outra aplicação, substitui o request pelo axios

const response = await axios.post(params.url, body, {
        headers: {
          'Content-Type': 'text/xml;charset=utf-8',
          SOAPAction: params.action,
        },
        httpsAgent: new https.Agent({
          pfx: fs.readFileSync(filePathCertificate),
          passphrase: certificatePassphrase,
          rejectUnauthorized: false,
        }),
      })

GabrielMachado11 avatar Feb 10 '22 19:02 GabrielMachado11

Podemos substituir sim.

Se voces quiserem, podem fazer uma PR que eu avalio ;)

lealhugui avatar Feb 14 '22 01:02 lealhugui

See #49

lealhugui avatar Feb 14 '22 01:02 lealhugui