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

regionalinfo

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

regionalinfo - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

58

dist/index.js

@@ -1882,36 +1882,34 @@ (function (global, factory) {

let districtFun = () =>{
let first = [];
let fristParam = {};
let second = [];
let secondParam = {};
province.map(item =>{
fristParam.labal = item.name;
fristParam.value = item.id;
for(let key in city){
if(key === item.id){
city[key].map(item =>{
secondParam.labal = item.name;
secondParam.value = item.id;
second.push(secondParam);
secondParam = {};
});
class Index {
static district(){
let first = [];
let fristParam = {};
let second = [];
let secondParam = {};
province.map(item =>{
fristParam.labal = item.name;
fristParam.value = item.id;
for(let key in city){
if(key === item.id){
city[key].map(item =>{
secondParam.labal = item.name;
secondParam.value = item.id;
second.push(secondParam);
secondParam = {};
});
}
}
}
fristParam.children = second;
first.push(fristParam);
fristParam = {};
second = [];
});
console.log(first,'-----------------');
return first
};
let district = districtFun();
var index = {
district
fristParam.children = second;
first.push(fristParam);
fristParam = {};
second = [];
});
return first
}
}
return index;
return Index;
})));
{
"name": "regionalinfo",
"version": "1.0.4",
"version": "1.0.5",
"description": "regionalinfo",

@@ -5,0 +5,0 @@ "main": "dist/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