@vant/area-data 1.2.2 → 1.3.0

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: "北京市",
@@ -1187,6 +1199,7 @@ var areaList = {
1187
1199
  320105: "建邺区",
1188
1200
  320106: "鼓楼区",
1189
1201
  320111: "浦口区",
1202
+ 320112: "江北新区",
1190
1203
  320113: "栖霞区",
1191
1204
  320114: "雨花台区",
1192
1205
  320115: "江宁区",
package/dist/index.d.ts CHANGED
@@ -1175,6 +1175,7 @@ export declare const areaList: {
1175
1175
  320105: string;
1176
1176
  320106: string;
1177
1177
  320111: string;
1178
+ 320112: string;
1178
1179
  320113: string;
1179
1180
  320114: string;
1180
1181
  320115: string;
@@ -1176,6 +1176,7 @@ var areaList = {
1176
1176
  320105: "建邺区",
1177
1177
  320106: "鼓楼区",
1178
1178
  320111: "浦口区",
1179
+ 320112: "江北新区",
1179
1180
  320113: "栖霞区",
1180
1181
  320114: "雨花台区",
1181
1182
  320115: "江宁区",
package/package.json CHANGED
@@ -1,10 +1,13 @@
1
1
  {
2
2
  "name": "@vant/area-data",
3
- "version": "1.2.2",
3
+ "version": "1.3.0",
4
4
  "description": "Vant 省市区数据",
5
5
  "main": "dist/index.cjs.js",
6
- "module": "dist/index.esm.js",
6
+ "module": "dist/index.esm.mjs",
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');