Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@uiw/react-amap-api-loader

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

Comparing version 5.0.21 to 6.0.0

11

cjs/index.d.ts

@@ -37,13 +37,2 @@ import { FC, PropsWithChildren } from 'react';

export interface APILoaderProps extends APILoaderConfig {
/**
* 请使用 `key`
* @deprecated
*/
akay?: string;
/**
* 请使用 `plugins`
* @deprecated
* @example `AMap.ToolBar,AMap.Driving`
*/
plugin?: string;
}

@@ -50,0 +39,0 @@ /**

6

cjs/index.js

@@ -29,4 +29,4 @@ "use strict";

(0, _react.useEffect)(function () {
var aKey = config.akey || config.akay || '';
var plugins = config.plugins || (config.plugin ? config.plugin.split(',') : []);
var aKey = config.akey || '';
var plugins = config.plugins;
(0, _amapJsapiLoader.load)({

@@ -44,3 +44,3 @@ key: aKey,

});
}, [config.akey, config.akay]);
}, [config.akey]);
if (error) {

@@ -47,0 +47,0 @@ return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {

@@ -37,13 +37,2 @@ import { FC, PropsWithChildren } from 'react';

export interface APILoaderProps extends APILoaderConfig {
/**
* 请使用 `key`
* @deprecated
*/
akay?: string;
/**
* 请使用 `plugins`
* @deprecated
* @example `AMap.ToolBar,AMap.Driving`
*/
plugin?: string;
}

@@ -50,0 +39,0 @@ /**

@@ -19,4 +19,4 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";

useEffect(() => {
var aKey = config.akey || config.akay || '';
var plugins = config.plugins || (config.plugin ? config.plugin.split(',') : []);
var aKey = config.akey || '';
var plugins = config.plugins;
load({

@@ -34,3 +34,3 @@ key: aKey,

});
}, [config.akey, config.akay]);
}, [config.akey]);
if (error) {

@@ -37,0 +37,0 @@ return /*#__PURE__*/_jsx("div", {

{
"name": "@uiw/react-amap-api-loader",
"version": "5.0.21",
"version": "6.0.0",
"description": "用于加载高德地图 SDK 依赖,加载完成,全局将会有 **`window.AMap`** 对象。",

@@ -38,4 +38,4 @@ "funding": "https://jaywcjlove.github.io/#/sponsor",

"@amap/amap-jsapi-loader": "^1.0.1",
"@uiw/react-amap-require-script": "5.0.21",
"@uiw/react-amap-types": "5.0.21"
"@uiw/react-amap-require-script": "6.0.0",
"@uiw/react-amap-types": "6.0.0"
},

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

@@ -119,15 +119,3 @@ APILoader

}>;
export interface APILoaderProps extends APILoaderConfig {
/**
* 请使用 `key`
* @deprecated
*/
akay?: string;
/**
* 请使用 `plugins`
* @deprecated
* @example `AMap.ToolBar,AMap.Driving`
*/
plugin?: string;
}
export interface APILoaderProps extends APILoaderConfig { }
```

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