node-sped-nfe 1.2.39 → 1.2.40

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/README.md CHANGED
@@ -13,6 +13,18 @@ Seja bem-vindo(a) à **Biblioteca de Emissão de NF-e** — sua parceira definit
13
13
 
14
14
  </div>
15
15
 
16
+
17
+ ## 📦 Instalação
18
+ <div align="center">
19
+ <a href="https://www.npmjs.com/package/node-sped-nfe">
20
+ NPM: <strong>node-sped-nfe</strong>
21
+ </a>
22
+ </div>
23
+
24
+ ```bash
25
+ npm install node-sped-nfe
26
+ ```
27
+
16
28
  ---
17
29
 
18
30
  ## ✨ Por que usar esta biblioteca?
@@ -177,6 +177,9 @@ class Tools {
177
177
  let cUF = `${chNFe}`.substring(0, 2);
178
178
  let UF = cUF2UF[cUF];
179
179
  let mod = `${chNFe}`.substring(20, 22);
180
+ //https://www.nfe.fazenda.gov.br/portal/webservices.aspx?AspxAutoDetectCookieSupport=1
181
+ if (['AC', 'ES', 'RN', 'PB', 'SC'].includes(UF))
182
+ UF = 'SVRS';
180
183
  if (typeof __classPrivateFieldGet(this, _Tools_config, "f").tpAmb === "undefined")
181
184
  throw "consultarNFe({...tpAmb}) -> não definido!";
182
185
  let consSitNFe = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-sped-nfe",
3
- "version": "1.2.39",
3
+ "version": "1.2.40",
4
4
  "author": "Kalmon V. Tavares",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",