Socket
Socket
Sign inDemoInstall

location-autocomplete

Package Overview
Dependencies
20
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.2 to 1.2.4

29

index.js

@@ -21,2 +21,4 @@ 'use strict';

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

@@ -120,2 +122,13 @@

/* eslint-disable no-unused-vars */
var _props = this.props,
googleAPIKey = _props.googleAPIKey,
googlePlacesLibraryURL = _props.googlePlacesLibraryURL,
onDropdownSelect = _props.onDropdownSelect,
locationType = _props.locationType,
targetArea = _props.targetArea,
componentRestrictions = _props.componentRestrictions,
props = _objectWithoutProperties(_props, ['googleAPIKey', 'googlePlacesLibraryURL', 'onDropdownSelect', 'locationType', 'targetArea', 'componentRestrictions']);
/* eslint-enable no-unused-vars */
return _react2.default.createElement('input', _extends({

@@ -126,3 +139,3 @@ type: 'text',

}
}, this.filteredInputProps));
}, props));
}

@@ -135,16 +148,2 @@ }, {

}, {
key: 'filteredInputProps',
get: function get() {
var _this6 = this;
var keysToOmit = ['googleAPIKey', 'googlePlacesLibraryURL', 'onDropdownSelect', 'locationType', 'targetArea', 'componentRestrictions'];
return Object.keys(this.props).filter(function (key) {
return !keysToOmit.includes(key);
}).reduce(function (obj, key) {
obj[key] = _this6.props[key];
return obj;
}, {});
}
}, {
key: 'existingLibraryScript',

@@ -151,0 +150,0 @@ get: function get() {

{
"name": "location-autocomplete",
"version": "1.2.2",
"version": "1.2.4",
"description": "React location field component, wired with Google's API for autocomplete functionality.",

@@ -33,2 +33,3 @@ "main": "index.js",

"babel-loader": "^6.2.10",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-polyfill": "^6.20.0",

@@ -50,3 +51,3 @@ "babel-preset-env": "^1.1.8",

"react-dom": "^15.5.4",
"webpack": "^1.15.0",
"webpack": "^2.7.0",
"webpack-dev-server": "^2.9.7"

@@ -53,0 +54,0 @@ },

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc