Comparing version 2.6.0 to 2.7.0
# Changelog | ||
## 2.7.0 (2022-10-21) | ||
### Non-Breaking Changes | ||
* Update the `jsvat` offline VAT number format validator to its latest version [[@valeriansaliou](https://github.com/valeriansaliou), [403b38e](https://github.com/valeriansaliou/node-sales-tax/commit/403b38e7edc7b5db76a9b2c237d8e8601bc3206f)]. | ||
### Bug Fixes | ||
* Fix broken EU VAT numbers fraud-checks due to (_once again_) changed Europa VAT APIs data schema (from `ec.europa.eu`) [[@valeriansaliou](https://github.com/valeriansaliou), [403b38e](https://github.com/valeriansaliou/node-sales-tax/commit/403b38e7edc7b5db76a9b2c237d8e8601bc3206f)]. | ||
## 2.6.0 (2022-08-19) | ||
@@ -4,0 +14,0 @@ |
@@ -265,4 +265,8 @@ /* | ||
return new Promise(function(resolve, reject) { | ||
// Validate EU VAT number | ||
var validationInfo = validate_eu_vat.checkVAT(cleanTaxNumber); | ||
// Validate EU VAT number (offline check) | ||
var validationInfo = validate_eu_vat.checkVAT( | ||
cleanTaxNumber, validate_eu_vat.countries | ||
); | ||
// Check if VAT number is valid | ||
var isValid = (validationInfo.isValid && true); | ||
@@ -269,0 +273,0 @@ |
{ | ||
"name": "sales-tax", | ||
"description": "International sales tax calculator for Node (offline, but provides optional online VAT number fraud check). Tax rates are kept up-to-date.", | ||
"version": "2.6.0", | ||
"version": "2.7.0", | ||
"homepage": "https://github.com/valeriansaliou/node-sales-tax", | ||
@@ -34,4 +34,4 @@ "license": "MIT", | ||
"request": "2.88.2", | ||
"validate-vat": "0.8.0", | ||
"jsvat": "1.2.4", | ||
"validate-vat": "0.9.0", | ||
"jsvat": "2.5.3", | ||
"ein-validator": "1.0.1" | ||
@@ -38,0 +38,0 @@ }, |
63464
1364
+ Addedjsvat@2.5.3(transitive)
+ Addedvalidate-vat@0.9.0(transitive)
- Removedjsvat@1.2.4(transitive)
- Removedvalidate-vat@0.8.0(transitive)
Updatedjsvat@2.5.3
Updatedvalidate-vat@0.9.0