Skip to content

Commit

Permalink
fix(iso3166): add new rules
Browse files Browse the repository at this point in the history
  • Loading branch information
jian.gong committed Dec 29, 2018
1 parent 98c597f commit 732be37
Show file tree
Hide file tree
Showing 5 changed files with 334 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -22,3 +22,6 @@ dist
web

coverage

# ==== .env
.env
1 change: 1 addition & 0 deletions .npmignore
Expand Up @@ -10,6 +10,7 @@
.tern-project
lib/
src/
script/
example/
.babelrc
.eslintignore
Expand Down
6 changes: 3 additions & 3 deletions lib/iso3166Data.js
Expand Up @@ -102,7 +102,7 @@ module.exports = [
country_code: '54',
country_name: 'Argentina',
mobile_begin_with: [],
phone_number_lengths: [6, 7, 8, 9]
phone_number_lengths: [6, 7, 8, 9, 11]
},
{
alpha2: 'AM',
Expand Down Expand Up @@ -169,8 +169,8 @@ module.exports = [
alpha3: 'BEL',
country_code: '32',
country_name: 'Belgium',
mobile_begin_with: ['4'],
phone_number_lengths: [9]
mobile_begin_with: ['4', '3'],
phone_number_lengths: [9, 8]
},
{
alpha2: 'BJ',
Expand Down
9 changes: 8 additions & 1 deletion package.json
Expand Up @@ -14,7 +14,8 @@
"lint": "eslint .",
"build": "webpack --hide-modules --progress",
"start:example": "yarn build && webpack-dev-server --config ./example/webpack.config.js --progress",
"prepublishOnly": "yarn build"
"prepublishOnly": "yarn build",
"fix:numbers": "ts-node -P scripts/add-new-rules/tsconfig.json scripts/add-new-rules"
},
"repository": {
"type": "git",
Expand All @@ -24,16 +25,22 @@
"url": "https://github.com/aftership/phone/issues"
},
"devDependencies": {
"@types/node": "^10.12.18",
"babel-cli": "^6.26.0",
"babel-loader": "^7.1.5",
"babel-minify-webpack-plugin": "^0.2.0",
"babel-polyfill": "^6.26.0",
"babel-preset-env": "^1.7.0",
"codecov": "^2.3.1",
"dotenv": "^6.2.0",
"eslint": "^4.5.0",
"eslint-config-aftership": "^4.5.0",
"eslint-plugin-import": "^2.13.0",
"jest": "^23.3.0",
"lodash": "^4.17.11",
"ts-node": "^7.0.1",
"twilio": "^3.26.0",
"typescript": "^3.2.2",
"webpack": "^3.5.5",
"webpack-dev-server": "^2.9.1"
},
Expand Down

0 comments on commit 732be37

Please sign in to comment.