@vant/area-data 1.1.2 → 1.2.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 +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.d.ts +0 -1
- package/lib/index.js +3 -7
- package/package.json +30 -6
- package/src/index.ts +2 -2
- package/tsconfig.json +3 -8
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: '天津市',
|
|
@@ -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,40 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vant/area-data",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
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
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
|
}
|