@uiw/react-amap-api-loader
Advanced tools
Comparing version 2.5.1 to 2.6.0
@@ -54,2 +54,3 @@ import React, { Component } from 'react'; | ||
static defaultProps: { | ||
protocol: string; | ||
akay: string; | ||
@@ -56,0 +57,0 @@ hostAndPath: string; |
@@ -243,2 +243,3 @@ "use strict"; | ||
(0, _defineProperty2["default"])(APILoader, "defaultProps", { | ||
protocol: /^file:/.test(window.location.protocol) ? 'https' : window.location.protocol, | ||
akay: '', | ||
@@ -245,0 +246,0 @@ hostAndPath: 'webapi.amap.com/maps', |
@@ -54,2 +54,3 @@ import React, { Component } from 'react'; | ||
static defaultProps: { | ||
protocol: string; | ||
akay: string; | ||
@@ -56,0 +57,0 @@ hostAndPath: string; |
@@ -150,2 +150,3 @@ import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator"; | ||
APILoader.defaultProps = { | ||
protocol: /^file:/.test(window.location.protocol) ? 'https' : window.location.protocol, | ||
akay: '', | ||
@@ -152,0 +153,0 @@ hostAndPath: 'webapi.amap.com/maps', |
{ | ||
"name": "@uiw/react-amap-api-loader", | ||
"version": "2.5.1", | ||
"version": "2.6.0", | ||
"description": "用于加载高德地图 SDK 依赖,加载完成,全局将会有 **`window.AMap`** 对象。", | ||
@@ -36,4 +36,4 @@ "homepage": "https://uiwjs.github.io/react-amap/#/api-loader", | ||
"dependencies": { | ||
"@uiw/react-amap-require-script": "2.5.1", | ||
"@uiw/react-amap-types": "2.5.1" | ||
"@uiw/react-amap-require-script": "2.6.0", | ||
"@uiw/react-amap-types": "2.6.0" | ||
}, | ||
@@ -40,0 +40,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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
39642
630
+ Added@uiw/react-amap-require-script@2.6.0(transitive)
+ Added@uiw/react-amap-types@2.6.0(transitive)
- Removed@uiw/react-amap-require-script@2.5.1(transitive)
- Removed@uiw/react-amap-types@2.5.1(transitive)
Updated@uiw/react-amap-types@2.6.0