Socket
Socket
Sign inDemoInstall

ember-phone-input

Package Overview
Dependencies
363
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.7 to 3.0.0

35

addon/components/phone-input.js

@@ -19,2 +19,3 @@ /* global intlTelInputUtils */

preferredCountries=englishSpeakingCountries
separateDialCode=true
update=(action 'handleUpdate')}}

@@ -95,2 +96,10 @@ ```

/**
Display the country dial code next to the selected flag so it's not part of the typed number
@argument separateDialCode
@type {boolean}
*/
this.separateDialCode = this.separateDialCode || false
/**
You have to implement this function to update the `number`.

@@ -134,3 +143,4 @@

onlyCountries,
preferredCountries
preferredCountries,
separateDialCode
} = this

@@ -145,3 +155,4 @@

onlyCountries,
preferredCountries
preferredCountries,
separateDialCode
})

@@ -160,6 +171,8 @@

this.update(number, this._metaData(_iti))
this.element.addEventListener(
'countrychange',
this.onCountryChange.bind(this)
)
this.onCountryChange = () => {
this._iti.setCountry(this._iti.getSelectedCountryData().iso2)
this.input()
}
this.element.addEventListener('countrychange', this.onCountryChange)
},

@@ -186,6 +199,3 @@

this._iti.destroy()
this.element.removeEventListener(
'countrychange',
this.onCountryChange.bind(this)
)
this.element.removeEventListener('countrychange', this.onCountryChange)

@@ -195,7 +205,2 @@ this._super(...arguments)

onCountryChange() {
this._iti.setCountry(this._iti.getSelectedCountryData().iso2)
this.input()
},
_metaData(iti) {

@@ -202,0 +207,0 @@ const extension = iti.getExtension()

# Change Log
## v3.0.0 (2019-09-23)
#### :boom: Breaking Change
* [#83](https://github.com/qonto/ember-phone-input/pull/83) Drop node 6 support ([@dcyriller](https://github.com/dcyriller))
#### :rocket: Enhancement
* [#123](https://github.com/qonto/ember-phone-input/pull/123) Feature: Add separateDialCode option ([@AleksandrBorovkov](https://github.com/AleksandrBorovkov))
#### :bug: Bug Fix
* [#84](https://github.com/qonto/ember-phone-input/pull/84) Upgrade ember-cli-favicon ([@dcyriller](https://github.com/dcyriller))
#### :house: Internal
* [#65](https://github.com/qonto/ember-phone-input/pull/65) Do not bind eventListener callback ([@dcyriller](https://github.com/dcyriller))
#### Committers: 3
- Cyrille David ([@dcyriller](https://github.com/dcyriller))
- [@AleksandrBorovkov](https://github.com/AleksandrBorovkov)
## v2.0.7 (2019-04-18)
#### :bug: Bug Fix
* [#61](https://github.com/qonto/ember-phone-input/pull/61) Make sure valid check updates when country changes ([@locks](https://github.com/locks))
* [#57](https://github.com/qonto/ember-phone-input/pull/57) Make sure correct path is used for intl-tel-input assets ([@danwenzel](https://github.com/danwenzel))
#### :memo: Documentation
* [#59](https://github.com/qonto/ember-phone-input/pull/59) Update import naming in the documentation ([@ctjhoa](https://github.com/ctjhoa))
* [#58](https://github.com/qonto/ember-phone-input/pull/58) Update README to add ember-observer score ([@dbendaou](https://github.com/dbendaou))
#### :house: Internal
* [#60](https://github.com/qonto/ember-phone-input/pull/60) Update testing scenarios ([@dcyriller](https://github.com/dcyriller))
* [#51](https://github.com/qonto/ember-phone-input/pull/51) Adjust eslint config / run prettier ([@dcyriller](https://github.com/dcyriller))
* [#36](https://github.com/qonto/ember-phone-input/pull/36) Add files to npmignore ([@dcyriller](https://github.com/dcyriller))
#### Committers: 5
- Camille TJHOA ([@ctjhoa](https://github.com/ctjhoa))
- Cyrille David ([@dcyriller](https://github.com/dcyriller))
- Dan Wenzel ([@danwenzel](https://github.com/danwenzel))
- Djamel B. ([@dbendaou](https://github.com/dbendaou))
- Ricardo Mendes ([@locks](https://github.com/locks))
## v2.0.6 (2019-02-18)

@@ -79,2 +119,1 @@

- Cyrille David ([@dcyriller](https://github.com/dcyriller))
yarn run v1.13.0
{
"name": "ember-phone-input",
"version": "2.0.7",
"version": "3.0.0",
"description": "A component to input / validate / submit phone numbers",

@@ -49,3 +49,3 @@ "keywords": [

"broccoli-merge-trees": "^3.0.1",
"ember-cli": "~3.8.1",
"ember-cli": "~3.12.0",
"ember-cli-addon-docs": "^0.6.1",

@@ -58,4 +58,4 @@ "ember-cli-addon-docs-yuidoc": "^0.2.1",

"ember-cli-deploy-git-ci": "^1.0.1",
"ember-cli-favicon": "^2.0.0",
"ember-cli-htmlbars-inline-precompile": "^2.0.0",
"ember-cli-favicon": "^2.2.0",
"ember-cli-htmlbars-inline-precompile": "^3.0.0",
"ember-cli-inject-live-reload": "^2.0.1",

@@ -66,3 +66,3 @@ "ember-cli-qunit": "^4.3.2",

"ember-cli-sri": "^2.1.0",
"ember-cli-uglify": "^2.0.0",
"ember-cli-uglify": "^3.0.0",
"ember-disable-prototype-extensions": "^1.1.2",

@@ -74,8 +74,8 @@ "ember-export-application-global": "^2.0.0",

"ember-source": "^3.4.0",
"ember-source-channel-url": "^1.0.1",
"ember-source-channel-url": "^2.0.1",
"ember-template-lint": "^1.1.0",
"ember-try": "^1.0.0",
"eslint": "^5.10.0",
"eslint-plugin-ember": "^6.1.0",
"eslint-plugin-node": "^8.0.0",
"eslint": "^6.0.1",
"eslint-plugin-ember": "^7.0.0",
"eslint-plugin-node": "^9.1.0",
"eslint-plugin-prettier": "^3.0.0",

@@ -85,3 +85,3 @@ "lerna-changelog": "^0.8.2",

"prettier": "^1.15.3",
"qunit-dom": "^0.8.3"
"qunit-dom": "^0.9.0"
},

@@ -92,3 +92,3 @@ "resolutions": {

"engines": {
"node": "6.* || 8.* || >= 10.*"
"node": "8.* || >= 10.*"
},

@@ -95,0 +95,0 @@ "ember-addon": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc