trailpack-proxy-cart-countries
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -6,3 +6,3 @@ /* eslint no-console: [0] */ | ||
const _ = require('lodash') | ||
const countryList = require('../../lib/countries')() | ||
const countryList = require('../../lib/countries') | ||
@@ -9,0 +9,0 @@ /** |
@@ -14,14 +14,39 @@ // Copyright (c) 2016, Scott Wyatt <scottwyatt86@gmail.com> | ||
const bulkify = require('bulk-require') | ||
const _ = require('lodash') | ||
module.exports = function () { | ||
const totalList = [] | ||
const fileList = bulkify(__dirname, ['*.json']) | ||
_.forEach(fileList, function (file) { | ||
// file.ISO[2] = file.ISO.alpha2 | ||
// file.ISO[3] = file.ISO.alpha3 | ||
totalList.push(file) | ||
}) | ||
return totalList | ||
} | ||
module.exports = [ | ||
require('./argentina.json'), | ||
require('./australia.json'), | ||
require('./austria.json'), | ||
require('./bangladesh.json'), | ||
require('./belgium.json'), | ||
require('./bolivia.json'), | ||
require('./brazil.json'), | ||
require('./cambodia.json'), | ||
require('./canada.json'), | ||
require('./chile.json'), | ||
require('./china.json'), | ||
require('./cuba.json'), | ||
require('./denmark.json'), | ||
require('./ethiopia.json'), | ||
require('./finland.json'), | ||
require('./france.json'), | ||
require('./germany.json'), | ||
require('./india.json'), | ||
require('./indonesia.json'), | ||
require('./italy.json'), | ||
require('./japan.json'), | ||
require('./jordan.json'), | ||
require('./mexico.json'), | ||
require('./netherlands.json'), | ||
require('./nigeria.json'), | ||
require('./pakistan.json'), | ||
require('./peru.json'), | ||
require('./philippines.json'), | ||
require('./russia.json'), | ||
require('./south_korea.json'), | ||
require('./spain.json'), | ||
require('./sweden.json'), | ||
require('./turkey.json'), | ||
require('./united_kingdom.json'), | ||
require('./united_states_of_america.json'), | ||
require('./vietnam.json') | ||
] |
{ | ||
"name": "trailpack-proxy-cart-countries", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Proxy Cart Countries (Shipping Zone and Taxes)", | ||
@@ -22,12 +22,11 @@ "homepage": "https://cali-style.com", | ||
"dependencies": { | ||
"trailpack": "v2-latest", | ||
"bulk-require": "^1.0.0" | ||
"trailpack": "^2.0.0" | ||
}, | ||
"devDependencies": { | ||
"lodash": "^4.11.1", | ||
"trails": "latest", | ||
"eslint": "^3.0.0", | ||
"eslint-config-trails": "^2.0.0", | ||
"trails": "^2.0.0", | ||
"eslint": "^3.17.1", | ||
"eslint-config-trails": "^2.0.8", | ||
"mocha": "^2.4.5", | ||
"smokesignals": "v2-latest" | ||
"smokesignals": "^2.0.0" | ||
}, | ||
@@ -34,0 +33,0 @@ "scripts": { |
157196
1
8460
+ Addedtrailpack@2.1.3(transitive)
- Removedbulk-require@^1.0.0
- Removedbalanced-match@1.0.2(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedbulk-require@1.0.1(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedglob@7.2.3(transitive)
- Removedinflight@1.0.6(transitive)
- Removedinherits@2.0.4(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedonce@1.4.0(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedtrailpack@2.1.0(transitive)
- Removedwrappy@1.0.2(transitive)
Updatedtrailpack@^2.0.0