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

@uiw/react-amap-polygon

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-polygon - npm Package Compare versions

Comparing version 5.0.4 to 5.0.5

13

cjs/usePolygon.js

@@ -33,8 +33,9 @@ "use strict";

if (instance) {
if (AMap.v) {
map && map.remove(instance);
} else {
// 暂不使用这个 API,这个不兼容 v1.4.xx,改用 map.remove API
map && map.removeLayer(instance);
}
map && map.remove(instance);
// if (AMap.v) {
// map && map.remove(instance);
// } else {
// // 暂不使用这个 API,这个不兼容 v1.4.xx,改用 map.remove API
// map && map.removeLayer(instance);
// }
setPolygon(undefined);

@@ -41,0 +42,0 @@ }

@@ -27,8 +27,9 @@ import _extends from "@babel/runtime/helpers/extends";

if (instance) {
if (AMap.v) {
map && map.remove(instance);
} else {
// 暂不使用这个 API,这个不兼容 v1.4.xx,改用 map.remove API
map && map.removeLayer(instance);
}
map && map.remove(instance);
// if (AMap.v) {
// map && map.remove(instance);
// } else {
// // 暂不使用这个 API,这个不兼容 v1.4.xx,改用 map.remove API
// map && map.removeLayer(instance);
// }
setPolygon(undefined);

@@ -35,0 +36,0 @@ }

{
"name": "@uiw/react-amap-polygon",
"version": "5.0.4",
"version": "5.0.5",
"description": "构造多边形对象,通过 PolygonOptions 指定多边形样式。",

@@ -37,4 +37,4 @@ "homepage": "https://uiwjs.github.io/react-amap/#/polygon",

"dependencies": {
"@uiw/react-amap-map": "5.0.4",
"@uiw/react-amap-utils": "5.0.4"
"@uiw/react-amap-map": "5.0.5",
"@uiw/react-amap-utils": "5.0.5"
},

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

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