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

country-vat

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

country-vat - npm Package Compare versions

Comparing version 0.0.0 to 1.0.0

CHANGELOG.md

41

package.json

@@ -5,3 +5,3 @@ {

"homepage": "https://nicedoc.io/Kikobeats/country-vat",
"version": "0.0.0",
"version": "1.0.0",
"main": "src/index.js",

@@ -13,6 +13,2 @@ "author": {

},
"files": [
"index.json",
"scripts"
],
"repository": {

@@ -25,3 +21,21 @@ "type": "git",

},
"keywords": [],
"keywords": [
"billing",
"country",
"gst",
"invoice",
"iso-31661",
"iso-31661-alpha2",
"iso-31661-alpha3",
"iso-31661-name",
"iso-31661-numeric",
"money",
"sales",
"salestax",
"tax",
"union",
"vat",
"vat",
"vatmoss"
],
"dependencies": {

@@ -36,2 +50,3 @@ "got": "~11.8.2",

"ava": "latest",
"ci-publish": "latest",
"conventional-github-releaser": "latest",

@@ -54,4 +69,7 @@ "coveralls": "latest",

},
"files": [
"index.json",
"scripts"
],
"scripts": {
"postinstall": "node scripts/postinstall",
"clean": "rm -rf node_modules",

@@ -61,8 +79,9 @@ "contributors": "(git-authors-cli && finepack && git add package.json && git commit -m 'build: contributors' --no-verify) || true",

"lint": "standard-markdown README.md && standard",
"postrelease": "npm run release:tags && npm run release:github && npm publish",
"prerelease": "git-dirty && npm run update:check && npm test && npm run contributors",
"postinstall": "node scripts/postinstall",
"postrelease": "npm run release:tags && npm run release:github && (ci-publish || npm publish --access=public)",
"prerelease": "npm run update:check && npm run contributors",
"pretest": "npm run lint",
"release": "git-authors-cli finepack && git add package.json && standard-version -a",
"release": "standard-version -a",
"release:github": "conventional-github-releaser -p angular",
"release:tags": "git push --follow-tags origin master",
"release:tags": "git push --follow-tags origin HEAD:master",
"test": "nyc ava",

@@ -69,0 +88,0 @@ "update": "ncu -u",

@@ -23,6 +23,6 @@ # country-vat

countriesVat('ES') // => 0.21
countriesVat('ESP') // => 0.21
countriesVat(724) // => 0.21
countriesVat('Spain') // => 0.21
countryVat('ES') // => 0.21
countryVat('ESP') // => 0.21
countryVat(724) // => 0.21
countryVat('Spain') // => 0.21
```

@@ -29,0 +29,0 @@

@@ -17,5 +17,5 @@ 'use strict'

module.exports = input => {
if (input === null || input === undefined) return null
if (input === null || input === undefined) return undefined
const item = iso31661.find(getValidator(input))
return item ? rates[item.alpha2] : null
return item ? rates[item.alpha2] : undefined
}
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