@vant/area-data 1.1.0 → 1.1.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 +6 -7
- package/lib/index.d.ts +2 -3
- package/lib/index.js +5 -9
- package/package.json +15 -7
- package/src/index.ts +4 -5
- package/tsconfig.json +2 -6
package/README.md
CHANGED
|
@@ -4,16 +4,15 @@
|
|
|
4
4
|
|
|
5
5
|
## 安装
|
|
6
6
|
|
|
7
|
-
#### NPM
|
|
8
|
-
|
|
9
7
|
```shell
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
# 通过 npm
|
|
9
|
+
npm i @vant/area-data
|
|
12
10
|
|
|
13
|
-
|
|
11
|
+
# 通过 yarn
|
|
12
|
+
yarn add @vant/area-data
|
|
14
13
|
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
# 通过 pnpm
|
|
15
|
+
pnpm add @vant/area-data
|
|
17
16
|
```
|
|
18
17
|
|
|
19
18
|
## 使用
|
package/lib/index.d.ts
CHANGED
|
@@ -1283,8 +1283,6 @@ export declare const areaList: {
|
|
|
1283
1283
|
321324: string;
|
|
1284
1284
|
321371: string;
|
|
1285
1285
|
330102: string;
|
|
1286
|
-
330103: string;
|
|
1287
|
-
330104: string;
|
|
1288
1286
|
330105: string;
|
|
1289
1287
|
330106: string;
|
|
1290
1288
|
330108: string;
|
|
@@ -1292,6 +1290,8 @@ export declare const areaList: {
|
|
|
1292
1290
|
330110: string;
|
|
1293
1291
|
330111: string;
|
|
1294
1292
|
330112: string;
|
|
1293
|
+
330113: string;
|
|
1294
|
+
330114: string;
|
|
1295
1295
|
330122: string;
|
|
1296
1296
|
330127: string;
|
|
1297
1297
|
330182: string;
|
|
@@ -2545,7 +2545,6 @@ export declare const areaList: {
|
|
|
2545
2545
|
460205: string;
|
|
2546
2546
|
460321: string;
|
|
2547
2547
|
460322: string;
|
|
2548
|
-
460323: string;
|
|
2549
2548
|
460401: string;
|
|
2550
2549
|
460402: string;
|
|
2551
2550
|
460403: string;
|
package/lib/index.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.areaList = void 0;
|
|
4
|
-
exports.areaList = {
|
|
1
|
+
export const areaList = {
|
|
5
2
|
province_list: {
|
|
6
3
|
110000: '北京市',
|
|
7
4
|
120000: '天津市',
|
|
@@ -1286,8 +1283,6 @@ exports.areaList = {
|
|
|
1286
1283
|
321324: '泗洪县',
|
|
1287
1284
|
321371: '宿迁经济技术开发区',
|
|
1288
1285
|
330102: '上城区',
|
|
1289
|
-
330103: '下城区',
|
|
1290
|
-
330104: '江干区',
|
|
1291
1286
|
330105: '拱墅区',
|
|
1292
1287
|
330106: '西湖区',
|
|
1293
1288
|
330108: '滨江区',
|
|
@@ -1295,6 +1290,8 @@ exports.areaList = {
|
|
|
1295
1290
|
330110: '余杭区',
|
|
1296
1291
|
330111: '富阳区',
|
|
1297
1292
|
330112: '临安区',
|
|
1293
|
+
330113: '临平区',
|
|
1294
|
+
330114: '钱塘区',
|
|
1298
1295
|
330122: '桐庐县',
|
|
1299
1296
|
330127: '淳安县',
|
|
1300
1297
|
330182: '建德市',
|
|
@@ -2546,9 +2543,8 @@ exports.areaList = {
|
|
|
2546
2543
|
460203: '吉阳区',
|
|
2547
2544
|
460204: '天涯区',
|
|
2548
2545
|
460205: '崖州区',
|
|
2549
|
-
460321: '
|
|
2550
|
-
460322: '
|
|
2551
|
-
460323: '中沙群岛的岛礁及其海域',
|
|
2546
|
+
460321: '西沙区',
|
|
2547
|
+
460322: '南沙区',
|
|
2552
2548
|
460401: '那大镇',
|
|
2553
2549
|
460402: '和庆镇',
|
|
2554
2550
|
460403: '南丰镇',
|
package/package.json
CHANGED
|
@@ -1,16 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vant/area-data",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.4",
|
|
4
4
|
"description": "Vant 省市区数据",
|
|
5
|
-
"main": "lib/index.js",
|
|
5
|
+
"main": "./lib/index.js",
|
|
6
|
+
"typings": "./lib/index.d.ts",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"build": "rimraf ./lib && tsc",
|
|
9
|
+
"release": "pnpm build && npm publish",
|
|
10
|
+
"prepare": "pnpm build"
|
|
11
|
+
},
|
|
6
12
|
"publishConfig": {
|
|
7
13
|
"access": "public",
|
|
8
14
|
"registry": "https://registry.npmjs.org/"
|
|
9
15
|
},
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "https://github.com/youzan/vant.git",
|
|
19
|
+
"directory": "packages/vant-area-data"
|
|
13
20
|
},
|
|
14
|
-
"
|
|
15
|
-
"
|
|
21
|
+
"bugs": "https://github.com/youzan/vant/issues",
|
|
22
|
+
"author": "chenjiahan",
|
|
23
|
+
"license": "MIT"
|
|
16
24
|
}
|
package/src/index.ts
CHANGED
|
@@ -1283,8 +1283,6 @@ export const areaList = {
|
|
|
1283
1283
|
321324: '泗洪县',
|
|
1284
1284
|
321371: '宿迁经济技术开发区',
|
|
1285
1285
|
330102: '上城区',
|
|
1286
|
-
330103: '下城区',
|
|
1287
|
-
330104: '江干区',
|
|
1288
1286
|
330105: '拱墅区',
|
|
1289
1287
|
330106: '西湖区',
|
|
1290
1288
|
330108: '滨江区',
|
|
@@ -1292,6 +1290,8 @@ export const areaList = {
|
|
|
1292
1290
|
330110: '余杭区',
|
|
1293
1291
|
330111: '富阳区',
|
|
1294
1292
|
330112: '临安区',
|
|
1293
|
+
330113: '临平区',
|
|
1294
|
+
330114: '钱塘区',
|
|
1295
1295
|
330122: '桐庐县',
|
|
1296
1296
|
330127: '淳安县',
|
|
1297
1297
|
330182: '建德市',
|
|
@@ -2543,9 +2543,8 @@ export const areaList = {
|
|
|
2543
2543
|
460203: '吉阳区',
|
|
2544
2544
|
460204: '天涯区',
|
|
2545
2545
|
460205: '崖州区',
|
|
2546
|
-
460321: '
|
|
2547
|
-
460322: '
|
|
2548
|
-
460323: '中沙群岛的岛礁及其海域',
|
|
2546
|
+
460321: '西沙区',
|
|
2547
|
+
460322: '南沙区',
|
|
2549
2548
|
460401: '那大镇',
|
|
2550
2549
|
460402: '和庆镇',
|
|
2551
2550
|
460403: '南丰镇',
|
package/tsconfig.json
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
+
"extends": "../../tsconfig",
|
|
2
3
|
"compilerOptions": {
|
|
3
4
|
"target": "ES2019",
|
|
4
5
|
"outDir": "./lib",
|
|
5
|
-
"
|
|
6
|
-
"strict": true,
|
|
7
|
-
"declaration": true,
|
|
8
|
-
"skipLibCheck": true,
|
|
9
|
-
"esModuleInterop": true,
|
|
10
|
-
"lib": ["esnext"]
|
|
6
|
+
"declaration": true
|
|
11
7
|
},
|
|
12
8
|
"include": ["src/**/*"]
|
|
13
9
|
}
|