Skip to content

Commit

Permalink
🔥 [feature] Add e164 format (#7)
Browse files Browse the repository at this point in the history
* 🔥 [feature] Add e164 format

* 🔥 [feature] Add e164 format
  • Loading branch information
LouisMazel authored Mar 4, 2019
1 parent bc18648 commit 97c70ad
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 9 deletions.
4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=favicon.ico><title>vue-phone-number-input</title><link href=css/app.2097f55f.css rel=preload as=style><link href=css/chunk-vendors.2f72d5cd.css rel=preload as=style><link href=js/app.665f98d1.js rel=preload as=script><link href=js/chunk-vendors.ec267950.js rel=preload as=script><link href=css/chunk-vendors.2f72d5cd.css rel=stylesheet><link href=css/app.2097f55f.css rel=stylesheet></head><body><noscript><strong>We're sorry but vue-phone-number-input doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><style>html, body {
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=favicon.ico><title>vue-phone-number-input</title><link href=css/app.2097f55f.css rel=preload as=style><link href=css/chunk-vendors.2f72d5cd.css rel=preload as=style><link href=js/app.9a34a8db.js rel=preload as=script><link href=js/chunk-vendors.ec267950.js rel=preload as=script><link href=css/chunk-vendors.2f72d5cd.css rel=stylesheet><link href=css/app.2097f55f.css rel=stylesheet></head><body><noscript><strong>We're sorry but vue-phone-number-input doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><style>html, body {
margin: 0;
min-height: 100%;
}
Expand All @@ -17,4 +17,4 @@
-moz-flex: 1;
-ms-flex: 1;
flex: 1;
}</style><script src=js/chunk-vendors.ec267950.js></script><script src=js/app.665f98d1.js></script></body></html>
}</style><script src=js/chunk-vendors.ec267950.js></script><script src=js/app.9a34a8db.js></script></body></html>
1 change: 0 additions & 1 deletion docs/js/app.665f98d1.js.map

This file was deleted.

4 changes: 2 additions & 2 deletions docs/js/app.665f98d1.js → docs/js/app.9a34a8db.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/js/app.9a34a8db.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "vue-phone-number-input",
"version": "0.1.7",
"version": "0.1.8",
"description": "A phone number input made with Vue JS && libphonenumber-js",
"author": "Louis Mazel <[email protected]>",
"scripts": {
"serve": "vue-cli-service serve --mode development --open",
"build": "npm run build:lib && npm run build:docs",
"test": "vue-cli-service test:unit /test/specs",
"lint": "vue-cli-service lint",
"before-publish": "npm i && npm run lint && npm run build",
"before-publish": "npm audit && npm i && npm run lint && npm run build",
"build:docs": "vue-cli-service build --dest docs --mode production",
"build:lib": "vue-cli-service build --target lib ./src/VuePhoneNumberInput/index.vue",
"publish-npm:beta": "npm publish --tag beta",
Expand Down
3 changes: 2 additions & 1 deletion src/VuePhoneNumberInput/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,8 @@
type: parsing.getType(),
formatInternational: parsing.formatInternational(),
formatNational: parsing.formatNational(),
uri: parsing.getURI()
uri: parsing.getURI(),
e164: parsing.format('E.164')
}
: null
)
Expand Down

0 comments on commit 97c70ad

Please sign in to comment.