@vant/area-data 1.1.3 → 1.2.1
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/build.js +1 -0
- package/dist/index.cjs.js +3900 -0
- package/dist/index.d.ts +3888 -0
- package/dist/index.esm.js +3892 -0
- package/lib/index.js +1 -4
- package/package.json +30 -6
- package/src/index.ts +3 -3
- package/tsconfig.json +3 -8
package/lib/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,16 +1,40 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vant/area-data",
|
|
3
|
-
"version": "1.1
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "Vant 省市区数据",
|
|
5
|
-
"main": "
|
|
5
|
+
"main": "dist/index.cjs.js",
|
|
6
|
+
"module": "dist/index.esm.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"clean": "rimraf ./dist",
|
|
10
|
+
"dev": "node ./build.js -w",
|
|
11
|
+
"build:types": "tsc -p ./tsconfig.json --emitDeclarationOnly",
|
|
12
|
+
"build:bundle": "node ./build.js",
|
|
13
|
+
"build": "pnpm clean && pnpm build:bundle && pnpm build:types",
|
|
14
|
+
"release": "pnpm build && release-it",
|
|
15
|
+
"prepare": "pnpm build"
|
|
16
|
+
},
|
|
6
17
|
"publishConfig": {
|
|
7
18
|
"access": "public",
|
|
8
19
|
"registry": "https://registry.npmjs.org/"
|
|
9
20
|
},
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
21
|
+
"repository": {
|
|
22
|
+
"type": "git",
|
|
23
|
+
"url": "https://github.com/youzan/vant.git",
|
|
24
|
+
"directory": "packages/vant-area-data"
|
|
13
25
|
},
|
|
26
|
+
"bugs": "https://github.com/youzan/vant/issues",
|
|
27
|
+
"author": "chenjiahan",
|
|
14
28
|
"license": "MIT",
|
|
15
|
-
"
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"esbuild": "^0.13.15",
|
|
31
|
+
"release-it": "^14.2.2",
|
|
32
|
+
"typescript": "~4.5.2"
|
|
33
|
+
},
|
|
34
|
+
"release-it": {
|
|
35
|
+
"git": {
|
|
36
|
+
"tag": false,
|
|
37
|
+
"commitMessage": "release: @vant/area-data ${version}"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
16
40
|
}
|
package/src/index.ts
CHANGED
|
@@ -390,7 +390,7 @@ export const areaList = {
|
|
|
390
390
|
711100: '新北市',
|
|
391
391
|
711200: '宜兰县',
|
|
392
392
|
711300: '新竹县',
|
|
393
|
-
711400: '
|
|
393
|
+
711400: '桃园市',
|
|
394
394
|
711500: '苗栗县',
|
|
395
395
|
711700: '彰化县',
|
|
396
396
|
711900: '嘉义县',
|
|
@@ -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: '建德市',
|
package/tsconfig.json
CHANGED
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
+
"extends": "../../tsconfig",
|
|
2
3
|
"compilerOptions": {
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"module": "commonjs",
|
|
6
|
-
"strict": true,
|
|
7
|
-
"declaration": true,
|
|
8
|
-
"skipLibCheck": true,
|
|
9
|
-
"esModuleInterop": true,
|
|
10
|
-
"lib": ["esnext"]
|
|
4
|
+
"outDir": "./dist",
|
|
5
|
+
"declaration": true
|
|
11
6
|
},
|
|
12
7
|
"include": ["src/**/*"]
|
|
13
8
|
}
|