kubesail-shipping
Advanced tools
+3
-3
| const countryVat = require('country-vat') | ||
| const isEuropean = require('is-european') | ||
| const { euMember } = require('is-european') | ||
| const shippingCosts = require('./shippingCosts') | ||
@@ -18,3 +18,3 @@ const allowedCountries = require('./allowedCountries') | ||
| if (!countryCode) return false | ||
| if (isEuropean(countryCode)) return true | ||
| if (euMember(countryCode)) return true | ||
| if (allowedCountries.includes(countryCode)) return true | ||
@@ -28,3 +28,3 @@ return false | ||
| let currency = 'DOLLAR' | ||
| if (isEuropean(countryCode)) currency = 'EURO' | ||
| if (euMember(countryCode)) currency = 'EURO' | ||
| else if (countryCode === 'UK') currency = 'POUND' | ||
@@ -31,0 +31,0 @@ |
+1
-1
| { | ||
| "name": "kubesail-shipping", | ||
| "version": "1.0.0", | ||
| "version": "1.0.1", | ||
| "description": "KubeSail Shipping and Tax Cost logic", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
3671
-0.05%