@alicloud/console-base-rc-region-flag
Advanced tools
Comparing version 1.1.49 to 1.3.0
@@ -40,2 +40,4 @@ "use strict"; | ||
var _ph = _interopRequireDefault(require("./ph")); | ||
// 国家代码与域名缩写 http://www.vuln.cn/webtools/yumingsuoxie/index.html | ||
@@ -92,2 +94,7 @@ // 可以通过前缀就判定国家和地域:中国、美国、俄罗斯 | ||
if (/ap-southeast-6[-\w]*/.test(regionId)) { | ||
// 菲律宾 | ||
return /*#__PURE__*/_react.default.createElement(_ph.default, null); | ||
} | ||
if (/eu-west-1[-\w]*/.test(regionId)) { | ||
@@ -94,0 +101,0 @@ // 英国(伦敦) |
@@ -17,2 +17,3 @@ import React from 'react'; // 国家代码与域名缩写 http://www.vuln.cn/webtools/yumingsuoxie/index.html | ||
import Ru from './ru'; | ||
import Ph from './ph'; | ||
// 可以通过前缀就判定国家和地域:中国、美国、俄罗斯 | ||
@@ -67,2 +68,7 @@ var REG_CN = /^cn-/i; | ||
if (/ap-southeast-6[-\w]*/.test(regionId)) { | ||
// 菲律宾 | ||
return /*#__PURE__*/React.createElement(Ph, null); | ||
} | ||
if (/eu-west-1[-\w]*/.test(regionId)) { | ||
@@ -69,0 +75,0 @@ // 英国(伦敦) |
{ | ||
"name": "@alicloud/console-base-rc-region-flag", | ||
"version": "1.1.49", | ||
"version": "1.3.0", | ||
"description": "ConsoleBase 组件 - Region 旗帜", | ||
@@ -51,3 +51,3 @@ "license": "MIT", | ||
}, | ||
"gitHead": "dc5850425d3513be7361f285ebd8f9e1b3f0d1d9" | ||
"gitHead": "67c2e7ba8463e89f73c7edd9a3c76f794dd1762f" | ||
} |
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
57523
61
1080