Socket
Socket
Sign inDemoInstall

@uiw/react-amap-auto-complete

Package Overview
Dependencies
Maintainers
2
Versions
103
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uiw/react-amap-auto-complete - npm Package Compare versions

Comparing version 4.4.1 to 4.4.2

15

cjs/useAutoComplete.js

@@ -20,6 +20,13 @@ "use strict";

var instance;
AMap.plugin(['AMap.AutoComplete'], function () {
instance = new AMap.AutoComplete(props);
setAutoComplete(instance);
});
if (AMap.v) {
AMap.plugin(['AMap.Autocomplete'], function () {
instance = new AMap.Autocomplete(props);
setAutoComplete(instance);
});
} else {
AMap.plugin(['AMap.AutoComplete'], function () {
instance = new AMap.AutoComplete(props);
setAutoComplete(instance);
});
}
return function () {

@@ -26,0 +33,0 @@ if (instance) {

@@ -11,6 +11,13 @@ import { useState, useEffect } from 'react';

var instance;
AMap.plugin(['AMap.AutoComplete'], () => {
instance = new AMap.AutoComplete(props);
setAutoComplete(instance);
});
if (AMap.v) {
AMap.plugin(['AMap.Autocomplete'], () => {
instance = new AMap.Autocomplete(props);
setAutoComplete(instance);
});
} else {
AMap.plugin(['AMap.AutoComplete'], () => {
instance = new AMap.AutoComplete(props);
setAutoComplete(instance);
});
}
return () => {

@@ -17,0 +24,0 @@ if (instance) {

{
"name": "@uiw/react-amap-auto-complete",
"version": "4.4.1",
"version": "4.4.2",
"description": "通常情况下,开发者需要根据表单控件相关事件的触发来执行 `AMap.AutoComplete` 的 search 方法,并将返回结果绘制成DOM显示到页面上。",

@@ -37,5 +37,5 @@ "homepage": "https://uiwjs.github.io/react-amap/#/auto-complete",

"dependencies": {
"@uiw/react-amap-map": "4.4.1",
"@uiw/react-amap-types": "4.4.1",
"@uiw/react-amap-utils": "4.4.1"
"@uiw/react-amap-map": "4.4.2",
"@uiw/react-amap-types": "4.4.2",
"@uiw/react-amap-utils": "4.4.2"
},

@@ -42,0 +42,0 @@ "devDependencies": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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