validate-vat
Advanced tools
Comparing version 0.8.0 to 0.9.0
@@ -29,3 +29,3 @@ // Generated by CoffeeScript 1.12.7 | ||
headers = { | ||
'Content-Type': 'application/x-www-form-urlencoded', | ||
'Content-Type': 'text/xml; charset=utf-8', | ||
'User-Agent': 'node-soap', | ||
@@ -60,3 +60,3 @@ 'Accept': 'text/html,application/xhtml+xml,application/xml,text/xml;q=0.9,*/*;q=0.8', | ||
}; | ||
hasFault = soapMessage.match(/<soap:Fault>\S+<\/soap:Fault>/g); | ||
hasFault = soapMessage.match(/<env:Fault>\S+<\/env:Fault>/g); | ||
if (hasFault) { | ||
@@ -69,8 +69,8 @@ ret = { | ||
ret = { | ||
countryCode: parseField('countryCode'), | ||
vatNumber: parseField('vatNumber'), | ||
requestDate: parseField('requestDate'), | ||
valid: parseField('valid') === 'true', | ||
name: parseField('name'), | ||
address: parseField('address').replace(/\n/g, ', ') | ||
countryCode: parseField('ns2:countryCode'), | ||
vatNumber: parseField('ns2:vatNumber'), | ||
requestDate: parseField('ns2:requestDate'), | ||
valid: parseField('ns2:valid') === 'true', | ||
name: parseField('ns2:name'), | ||
address: parseField('ns2:address').replace(/\n/g, ', ') | ||
}; | ||
@@ -77,0 +77,0 @@ } |
{ | ||
"name": "validate-vat", | ||
"version": "0.8.0", | ||
"version": "0.9.0", | ||
"description": "A Europe VAT number validation lib", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
10092