react-geosuggest
Advanced tools
Comparing version 1.4.2 to 1.4.3
@@ -0,1 +1,9 @@ | ||
### 1.4.3 (2015-07-29) | ||
#### Bug Fixes | ||
* **example:** remove drop_console option from uglify ([e8e16112](https://github.com/ubilabs/react-geosuggest/commit/e8e16112d2d0f47f7ddc005dd485a25f7d55e4e7)) | ||
### 1.4.2 (2015-07-29) | ||
@@ -2,0 +10,0 @@ |
@@ -237,21 +237,22 @@ /* global google */ | ||
render: function render() { | ||
return // eslint-disable-line no-extra-parens | ||
React.createElement( | ||
'div', | ||
{ className: 'geosuggest ' + this.props.className, | ||
onClick: this.onClick }, | ||
React.createElement('input', { | ||
className: "geosuggest__input", | ||
ref: "geosuggestInput", | ||
type: "text", | ||
value: this.state.userInput, | ||
placeholder: this.props.placeholder, | ||
onKeyDown: this.onInputKeyDown, | ||
onChange: this.onInputChange, | ||
onFocus: this.showSuggests, | ||
onBlur: this.hideSuggests }), | ||
return ( // eslint-disable-line no-extra-parens | ||
React.createElement( | ||
'ul', | ||
{ className: this.getSuggestsClasses() }, | ||
this.getSuggestItems() | ||
'div', | ||
{ className: 'geosuggest ' + this.props.className, | ||
onClick: this.onClick }, | ||
React.createElement('input', { | ||
className: 'geosuggest__input', | ||
ref: 'geosuggestInput', | ||
type: 'text', | ||
value: this.state.userInput, | ||
placeholder: this.props.placeholder, | ||
onKeyDown: this.onInputKeyDown, | ||
onChange: this.onInputChange, | ||
onFocus: this.showSuggests, | ||
onBlur: this.hideSuggests }), | ||
React.createElement( | ||
'ul', | ||
{ className: this.getSuggestsClasses() }, | ||
this.getSuggestItems() | ||
) | ||
) | ||
@@ -269,8 +270,9 @@ ); | ||
return // eslint-disable-line no-extra-parens | ||
React.createElement(GeosuggestItem, { | ||
key: suggest.placeId, | ||
suggest: suggest, | ||
isActive: isActive, | ||
onSuggestSelect: this.selectSuggest }); | ||
return ( // eslint-disable-line no-extra-parens | ||
React.createElement(GeosuggestItem, { | ||
key: suggest.placeId, | ||
suggest: suggest, | ||
isActive: isActive, | ||
onSuggestSelect: this.selectSuggest }) | ||
); | ||
}).bind(this)); | ||
@@ -277,0 +279,0 @@ }, |
@@ -36,8 +36,9 @@ 'use strict'; | ||
render: function render() { | ||
return // eslint-disable-line no-extra-parens | ||
React.createElement( | ||
'li', | ||
{ className: this.getSuggestClasses(), | ||
onClick: this.onClick }, | ||
this.props.suggest.label | ||
return ( // eslint-disable-line no-extra-parens | ||
React.createElement( | ||
'li', | ||
{ className: this.getSuggestClasses(), | ||
onClick: this.onClick }, | ||
this.props.suggest.label | ||
) | ||
); | ||
@@ -44,0 +45,0 @@ }, |
{ | ||
"name": "react-geosuggest", | ||
"version": "1.4.2", | ||
"version": "1.4.3", | ||
"description": "A React autosuggest for the Google Maps Places API.", | ||
@@ -40,3 +40,3 @@ "main": "module/Geosuggest.js", | ||
"js:example": "browserify example/src/app.js -t babelify --extension=.jsx> example/dist/app.js", | ||
"js:example:uglify": "uglifyjs example/dist/app.js -o example/dist/app.js -c warnings=false,drop_console=true --mangle", | ||
"js:example:uglify": "uglifyjs example/dist/app.js -o example/dist/app.js -c warnings=false --mangle", | ||
"js:browser": "browserify src/Geosuggest.jsx --standalone Geosuggest --exclude react -t babelify --extension=.jsx > dist/react-geosuggest.js", | ||
@@ -43,0 +43,0 @@ "js:browser:uglify": "uglifyjs dist/react-geosuggest.js -o dist/react-geosuggest.min.js -c warnings=false,drop_console=true --mangle", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23464
301
1