Comparing version 1.2.1 to 1.2.2
@@ -73,3 +73,3 @@ // VIES-VAT - bitinix@gmail.com | ||
headers: { | ||
'Content-Type': 'application/x-www-form-urlencoded', | ||
'Content-Type': 'text/xml; charset=utf-8', | ||
'Accept': 'text/html,application/xhtml+xml,application/xml,text/xml;q=0.9,*/*;q=0.8', | ||
@@ -113,3 +113,3 @@ 'Accept-Encoding': 'none', | ||
if (!response.body.includes('<valid>true</valid>')) { | ||
if (!response.body.includes('<ns2:valid>true</ns2:valid>')) { | ||
if (call.debug) console.error(`vies debug - Error 2019 - ${error} `) | ||
@@ -137,3 +137,3 @@ resolve({ error: false, viesInfo: output }) | ||
try { | ||
let fnd = new RegExp(`<${tag}>(.*?)<\/${tag}>`, 'ig') | ||
let fnd = new RegExp(`<ns2:${tag}>(.*?)<\/ns2:${tag}>`, 'ig') | ||
let rpl = new RegExp(`<\/?${tag}>`, 'ig') | ||
@@ -140,0 +140,0 @@ str.match(fnd).map(function (val) { |
{ | ||
"name": "vies-vat", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "A EU VAT Number validation via European Union VIES API including company information", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -125,5 +125,7 @@ | ||
### 1.2.2 | ||
Apply EU Updates<br /> | ||
### 1.2.1 | ||
Make for public use on GITHUB<br /> | ||
@@ -133,3 +135,3 @@ ## License | ||
Copyright (c) 2021 bitinix@gmail.com<br /> | ||
Copyright (c) 2022 bitinix@gmail.com<br /> | ||
@@ -136,0 +138,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12973
152