@vant/area-data 1.2.2 → 1.2.3

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,13 +1,29 @@
1
1
  var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
2
5
  var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
3
6
  var __export = (target, all) => {
4
- __markAsModule(target);
5
7
  for (var name in all)
6
8
  __defProp(target, name, { get: all[name], enumerable: true });
7
9
  };
10
+ var __reExport = (target, module2, copyDefault, desc) => {
11
+ if (module2 && typeof module2 === "object" || typeof module2 === "function") {
12
+ for (let key of __getOwnPropNames(module2))
13
+ if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
14
+ __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
15
+ }
16
+ return target;
17
+ };
18
+ var __toCommonJS = /* @__PURE__ */ ((cache) => {
19
+ return (module2, temp) => {
20
+ return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
21
+ };
22
+ })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
8
23
 
9
24
  // src/index.ts
10
- __export(exports, {
25
+ var src_exports = {};
26
+ __export(src_exports, {
11
27
  areaList: () => areaList
12
28
  });
13
29
  var areaList = {
@@ -1187,6 +1203,7 @@ var areaList = {
1187
1203
  320105: "建邺区",
1188
1204
  320106: "鼓楼区",
1189
1205
  320111: "浦口区",
1206
+ 320112: "江北新区",
1190
1207
  320113: "栖霞区",
1191
1208
  320114: "雨花台区",
1192
1209
  320115: "江宁区",
@@ -3897,3 +3914,4 @@ var areaList = {
3897
3914
  820204: "圣方济各堂区"
3898
3915
  }
3899
3916
  };
3917
+ module.exports = __toCommonJS(src_exports);
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;
package/dist/index.esm.js CHANGED
@@ -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,6 +1,6 @@
1
1
  {
2
2
  "name": "@vant/area-data",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "description": "Vant 省市区数据",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -27,7 +27,7 @@
27
27
  "author": "chenjiahan",
28
28
  "license": "MIT",
29
29
  "devDependencies": {
30
- "esbuild": "^0.13.15",
30
+ "esbuild": "^0.14.21",
31
31
  "release-it": "^14.2.2",
32
32
  "typescript": "~4.5.2"
33
33
  },
package/src/index.ts CHANGED
@@ -1175,6 +1175,7 @@ export const areaList = {
1175
1175
  320105: '建邺区',
1176
1176
  320106: '鼓楼区',
1177
1177
  320111: '浦口区',
1178
+ 320112: '江北新区',
1178
1179
  320113: '栖霞区',
1179
1180
  320114: '雨花台区',
1180
1181
  320115: '江宁区',