New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

sales-tax

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sales-tax - npm Package Compare versions

Comparing version 2.6.0 to 2.7.0

10

CHANGELOG.md
# 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 @@

8

lib/sales_tax.js

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

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