country-vat
Advanced tools
Comparing version 0.0.0 to 1.0.0
@@ -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 | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
6876
6
0
17