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.12.0 to 2.13.0

16

CHANGELOG.md
Changelog
=========
## 2.13.0 (2024-02-05)
### Tax Rate Updates
* **Estonia**: 20% to 22% (1st January 2024) [[@DanielRaouf](https://github.com/DanielRaouf), [#63](https://github.com/valeriansaliou/node-sales-tax/pull/63)].
## 2.12.0 (2023-08-12)
### New Features
* Return a `currency` attribute in all sales tax response objects [[@mindflowgo](https://github.com/mindflowgo), [#61](https://github.com/valeriansaliou/node-sales-tax/pull/61)].
### Non-Breaking Changes
* Replace deprecated `request` dependency with `node-fetch` [[@wootra](https://github.com/wootra), [#53](https://github.com/valeriansaliou/node-sales-tax/pull/53)].
* Return a `currency` attribute in all sales tax response objects [[@mindflowgo](https://github.com/mindflowgo), [#61](https://github.com/valeriansaliou/node-sales-tax/pull/61)].
### Tax Rate Updates
* Add tax entries for: Bosnia, Ukraine and Eritrea [[@mindflowgo](https://github.com/mindflowgo), [#61](https://github.com/valeriansaliou/node-sales-tax/pull/61)].

@@ -9,0 +23,0 @@

6

lib/sales_tax.js

@@ -25,5 +25,2 @@ /*

);
var validate_gb_vat_options = {
timeout : 20000
};

@@ -244,4 +241,3 @@ var tax_rates = require("../res/sales_tax_rates.json");

return fetch(
validate_gb_vat_url + "/" + splitMatch[1],
validate_gb_vat_options
validate_gb_vat_url + "/" + splitMatch[1]
)

@@ -248,0 +244,0 @@ .then(function(response) {

{
"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.12.0",
"version": "2.13.0",
"homepage": "https://github.com/valeriansaliou/node-sales-tax",

@@ -6,0 +6,0 @@ "license": "MIT",

@@ -300,3 +300,11 @@ {

"currency": "EUR",
"rate": 0.2
"rate": 0.22,
"before": {
"2023-12-31T22:00:00.000Z": {
"type": "vat",
"currency": "EUR",
"rate": 0.2
}
}
},

@@ -303,0 +311,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