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

@beisen-platform/area-selector

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@beisen-platform/area-selector - npm Package Compare versions

Comparing version 2.1.2 to 2.1.3

22

lib/utils/index.js

@@ -57,5 +57,25 @@ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";

var china = ['', '', [chinaPart1].concat(_toConsumableArray(chinaPart2))];
var foreignData = disableForeignArea ? null : buildTree(foreign, index);
if (disableForeignArea) {
foreignData = null;
} else {
foreignData = buildTree(foreign, index);
foreignData.children.unshift({
code: "2",
name: '国外',
parentCode: null,
children: null
});
index['2'] = {
code: "2",
name: '国外',
parentCode: null,
children: null
};
}
return {
chinaData: buildTree(china, index),
foreignData: disableForeignArea ? null : buildTree(foreign, index),
foreignData: foreignData,
index: index

@@ -62,0 +82,0 @@ };

2

package.json
{
"name": "@beisen-platform/area-selector",
"version": "2.1.2",
"version": "2.1.3",
"description": "用于选择地区,多配合着选择器一起使用,可配置单选或多选",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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