@vant/area-data 1.1.1 → 1.1.5
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 +0 -1
- 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
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: '天津市',
|
|
@@ -1293,8 +1290,8 @@ exports.areaList = {
|
|
|
1293
1290
|
330110: '余杭区',
|
|
1294
1291
|
330111: '富阳区',
|
|
1295
1292
|
330112: '临安区',
|
|
1296
|
-
330113: '
|
|
1297
|
-
330114: '
|
|
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.5",
|
|
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
|
@@ -1290,8 +1290,8 @@ export const areaList = {
|
|
|
1290
1290
|
330110: '余杭区',
|
|
1291
1291
|
330111: '富阳区',
|
|
1292
1292
|
330112: '临安区',
|
|
1293
|
-
330113: '
|
|
1294
|
-
330114: '
|
|
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
|
}
|