@vant/area-data 1.2.1 → 1.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Vant Area Data
2
2
 
3
- 省市区数据,适用于 Vant Area 组件。
3
+ 中国省市区数据,适用于 Vant Area 组件。
4
4
 
5
5
  ## 安装
6
6
 
@@ -20,3 +20,7 @@ pnpm add @vant/area-data
20
20
  ```ts
21
21
  import { areaList } from '@vant/area-data';
22
22
  ```
23
+
24
+ ## 数据更新
25
+
26
+ 中国的行政区划每年都会有变动,如果发现省市区数据未及时更新,欢迎提 Pull Request 帮助我们更新。
package/dist/index.cjs.js CHANGED
@@ -1,15 +1,27 @@
1
1
  var __defProp = Object.defineProperty;
2
- var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
3
5
  var __export = (target, all) => {
4
- __markAsModule(target);
5
6
  for (var name in all)
6
7
  __defProp(target, name, { get: all[name], enumerable: true });
7
8
  };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
8
18
 
9
19
  // src/index.ts
10
- __export(exports, {
20
+ var src_exports = {};
21
+ __export(src_exports, {
11
22
  areaList: () => areaList
12
23
  });
24
+ module.exports = __toCommonJS(src_exports);
13
25
  var areaList = {
14
26
  province_list: {
15
27
  11e4: "北京市",
@@ -521,15 +533,14 @@ var areaList = {
521
533
  130471: "邯郸经济技术开发区",
522
534
  130473: "邯郸冀南新区",
523
535
  130481: "武安市",
524
- 130502: "桥东区",
525
- 130503: "桥西区",
526
- 130521: "邢台县",
536
+ 130502: "襄都区",
537
+ 130503: "信都区",
538
+ 130505: "任泽区",
539
+ 130506: "南和区",
527
540
  130522: "临城县",
528
541
  130523: "内丘县",
529
542
  130524: "柏乡县",
530
543
  130525: "隆尧县",
531
- 130526: "任县",
532
- 130527: "南和县",
533
544
  130528: "宁晋县",
534
545
  130529: "巨鹿县",
535
546
  130530: "新河县",
@@ -1188,6 +1199,7 @@ var areaList = {
1188
1199
  320105: "建邺区",
1189
1200
  320106: "鼓楼区",
1190
1201
  320111: "浦口区",
1202
+ 320112: "江北新区",
1191
1203
  320113: "栖霞区",
1192
1204
  320114: "雨花台区",
1193
1205
  320115: "江宁区",
package/dist/index.d.ts CHANGED
@@ -511,13 +511,12 @@ export declare const areaList: {
511
511
  130481: string;
512
512
  130502: string;
513
513
  130503: string;
514
- 130521: string;
514
+ 130505: string;
515
+ 130506: string;
515
516
  130522: string;
516
517
  130523: string;
517
518
  130524: string;
518
519
  130525: string;
519
- 130526: string;
520
- 130527: string;
521
520
  130528: string;
522
521
  130529: string;
523
522
  130530: string;
@@ -1176,6 +1175,7 @@ export declare const areaList: {
1176
1175
  320105: string;
1177
1176
  320106: string;
1178
1177
  320111: string;
1178
+ 320112: string;
1179
1179
  320113: string;
1180
1180
  320114: string;
1181
1181
  320115: string;
package/dist/index.esm.js CHANGED
@@ -510,15 +510,14 @@ var areaList = {
510
510
  130471: "邯郸经济技术开发区",
511
511
  130473: "邯郸冀南新区",
512
512
  130481: "武安市",
513
- 130502: "桥东区",
514
- 130503: "桥西区",
515
- 130521: "邢台县",
513
+ 130502: "襄都区",
514
+ 130503: "信都区",
515
+ 130505: "任泽区",
516
+ 130506: "南和区",
516
517
  130522: "临城县",
517
518
  130523: "内丘县",
518
519
  130524: "柏乡县",
519
520
  130525: "隆尧县",
520
- 130526: "任县",
521
- 130527: "南和县",
522
521
  130528: "宁晋县",
523
522
  130529: "巨鹿县",
524
523
  130530: "新河县",
@@ -1177,6 +1176,7 @@ var areaList = {
1177
1176
  320105: "建邺区",
1178
1177
  320106: "鼓楼区",
1179
1178
  320111: "浦口区",
1179
+ 320112: "江北新区",
1180
1180
  320113: "栖霞区",
1181
1181
  320114: "雨花台区",
1182
1182
  320115: "江宁区",
package/package.json CHANGED
@@ -1,10 +1,13 @@
1
1
  {
2
2
  "name": "@vant/area-data",
3
- "version": "1.2.1",
3
+ "version": "1.2.4",
4
4
  "description": "Vant 省市区数据",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
7
7
  "types": "dist/index.d.ts",
8
+ "files": [
9
+ "dist"
10
+ ],
8
11
  "scripts": {
9
12
  "clean": "rimraf ./dist",
10
13
  "dev": "node ./build.js -w",
@@ -27,7 +30,7 @@
27
30
  "author": "chenjiahan",
28
31
  "license": "MIT",
29
32
  "devDependencies": {
30
- "esbuild": "^0.13.15",
33
+ "esbuild": "^0.14.29",
31
34
  "release-it": "^14.2.2",
32
35
  "typescript": "~4.5.2"
33
36
  },
package/build.js DELETED
@@ -1 +0,0 @@
1
- require('../vant-use/build');