New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-google-autocomplete

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-google-autocomplete - npm Package Compare versions

Comparing version 1.0.8 to 1.0.9

3

lib/index.js

@@ -68,3 +68,4 @@ 'use strict';

types = _props2.types,
rest = _objectWithoutProperties(_props2, ['onPlaceSelected', 'types']);
componentRestrictions = _props2.componentRestrictions,
rest = _objectWithoutProperties(_props2, ['onPlaceSelected', 'types', 'componentRestrictions']);

@@ -71,0 +72,0 @@ return _react2.default.createElement(

{
"name": "react-google-autocomplete",
"version": "1.0.8",
"version": "1.0.9",
"description": "React component for google autocomplete.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -26,2 +26,3 @@ ## React google autocomplete

types={['(regions)']}
componentRestrictions={{country: "ru"}}
/>

@@ -32,2 +33,3 @@ ```

A `types` props means type of places in [google place API](https://developers.google.com/places/web-service/autocomplete#place_types). By default it uses (cities).
A [componentRestrictions](https://developers.google.com/maps/documentation/javascript/reference#ComponentRestrictions) prop by default is empty.
You also can pass any props you want to the final input.

@@ -33,3 +33,3 @@ import React, {PropTypes} from 'react';

render() {
const {onPlaceSelected, types, ...rest} = this.props;
const {onPlaceSelected, types, componentRestrictions, ...rest} = this.props;

@@ -36,0 +36,0 @@ return (

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc