Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

validate-vat

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

validate-vat - npm Package Compare versions

Comparing version 0.8.0 to 0.9.0

16

lib/index.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc