koatty_validation 1.3.4 → 1.3.6

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/dist/package.json CHANGED
@@ -1,27 +1,30 @@
1
1
  {
2
2
  "name": "koatty_validation",
3
- "version": "1.3.4",
3
+ "version": "1.3.6",
4
4
  "description": "Validation Util for Koatty and ThinkORM.",
5
5
  "scripts": {
6
6
  "build": "npm run build:js && npm run build:dts && npm run build:doc && npm run build:cp",
7
- "build:cp": "node scripts/postBuild && copyfiles package.json LICENSE README.md dist/",
8
- "build:js": "del-cli --force dist && npx rollup --bundleConfigAsCjs -c .rollup.config.js",
9
- "build:doc": "del-cli --force docs/api && npx api-documenter markdown --input temp --output docs/api",
10
- "build:dts": "del-cli --force temp && npx tsc && npx api-extractor run --local --verbose",
7
+ "build:cp": "node scripts/postBuild && npx copyfiles package.json LICENSE README.md dist/",
8
+ "build:js": "npx rollup --bundleConfigAsCjs -c .rollup.config.js",
9
+ "build:doc": "npx api-documenter markdown --input temp --output docs/api",
10
+ "build:dts": "npx tsc && npx api-extractor run --local --verbose",
11
11
  "eslint": "eslint --ext .ts,.js ./",
12
- "lock": "npm i --package-lock-only",
12
+ "lock": "npx del-cli --force node_modules && npm i --package-lock-only && npx pnpm i",
13
13
  "prepublishOnly": "npm test && npm run build && git push --follow-tags origin",
14
- "prerelease": "npm test && npm run build",
14
+ "prerelease": "npm run lock && npm test && npm run build",
15
15
  "release": "standard-version",
16
16
  "release:pre": "npm run release -- --prerelease",
17
17
  "release:major": "npm run release -- --release-as major",
18
18
  "release:minor": "npm run release -- --release-as minor",
19
- "test": "npm run eslint && jest --passWithNoTests"
19
+ "test": "npm run eslint && jest --passWithNoTests",
20
+ "test:cov": "jest --collectCoverage --detectOpenHandles",
21
+ "version": "conventional-changelog -p angular -i CHANGELOG.md -s"
20
22
  },
21
23
  "main": "./dist/index.js",
22
24
  "exports": {
23
25
  "require": "./dist/index.js",
24
- "import": "./dist/index.mjs"
26
+ "import": "./dist/index.mjs",
27
+ "types": "./dist/index.d.ts"
25
28
  },
26
29
  "repository": {
27
30
  "type": "git",
@@ -50,18 +53,18 @@
50
53
  "@commitlint/config-conventional": "^19.x.x",
51
54
  "@microsoft/api-documenter": "^7.x.x",
52
55
  "@microsoft/api-extractor": "^7.x.x",
53
- "@rollup/plugin-commonjs": "^28.0.1",
56
+ "@rollup/plugin-commonjs": "^28.x.x",
54
57
  "@rollup/plugin-json": "^6.x.x",
58
+ "@rollup/plugin-node-resolve": "^15.x.x",
55
59
  "@types/jest": "^29.x.x",
56
60
  "@types/koa": "^2.x.x",
61
+ "@types/lodash": "^4.x.x",
57
62
  "@types/node": "^22.x.x",
58
63
  "@types/validator": "^13.x.x",
59
64
  "@typescript-eslint/eslint-plugin": "^8.x.x",
60
65
  "@typescript-eslint/parser": "^8.x.x",
61
66
  "conventional-changelog-cli": "^5.x.x",
62
- "copyfiles": "^2.x.x",
63
- "del-cli": "^6.x.x",
64
- "eslint": "^8.57.x",
67
+ "eslint": "^8.x.x",
65
68
  "eslint-plugin-jest": "^28.x.x",
66
69
  "husky": "^4.x.x",
67
70
  "jest": "^29.x.x",
@@ -69,6 +72,7 @@
69
72
  "libphonenumber-js": "^1.x.x",
70
73
  "reflect-metadata": "^0.x.x",
71
74
  "rollup": "^4.x.x",
75
+ "rollup-plugin-delete": "^2.1.0",
72
76
  "rollup-plugin-typescript2": "^0.x.x",
73
77
  "standard-version": "^9.x.x",
74
78
  "ts-jest": "^29.x.x",
@@ -80,8 +84,7 @@
80
84
  "class-validator": "^0.14.1",
81
85
  "koatty_container": "^1.x.x",
82
86
  "koatty_lib": "^1.x.x",
83
- "koatty_logger": "^2.x.x",
84
- "koatty_validation": "file:"
87
+ "koatty_logger": "^2.x.x"
85
88
  },
86
89
  "peerDependencies": {
87
90
  "koatty_container": "^1.x.x",
package/package.json CHANGED
@@ -1,27 +1,30 @@
1
1
  {
2
2
  "name": "koatty_validation",
3
- "version": "1.3.4",
3
+ "version": "1.3.6",
4
4
  "description": "Validation Util for Koatty and ThinkORM.",
5
5
  "scripts": {
6
6
  "build": "npm run build:js && npm run build:dts && npm run build:doc && npm run build:cp",
7
- "build:cp": "node scripts/postBuild && copyfiles package.json LICENSE README.md dist/",
8
- "build:js": "del-cli --force dist && npx rollup --bundleConfigAsCjs -c .rollup.config.js",
9
- "build:doc": "del-cli --force docs/api && npx api-documenter markdown --input temp --output docs/api",
10
- "build:dts": "del-cli --force temp && npx tsc && npx api-extractor run --local --verbose",
7
+ "build:cp": "node scripts/postBuild && npx copyfiles package.json LICENSE README.md dist/",
8
+ "build:js": "npx rollup --bundleConfigAsCjs -c .rollup.config.js",
9
+ "build:doc": "npx api-documenter markdown --input temp --output docs/api",
10
+ "build:dts": "npx tsc && npx api-extractor run --local --verbose",
11
11
  "eslint": "eslint --ext .ts,.js ./",
12
- "lock": "npm i --package-lock-only",
12
+ "lock": "npx del-cli --force node_modules && npm i --package-lock-only && npx pnpm i",
13
13
  "prepublishOnly": "npm test && npm run build && git push --follow-tags origin",
14
- "prerelease": "npm test && npm run build",
14
+ "prerelease": "npm run lock && npm test && npm run build",
15
15
  "release": "standard-version",
16
16
  "release:pre": "npm run release -- --prerelease",
17
17
  "release:major": "npm run release -- --release-as major",
18
18
  "release:minor": "npm run release -- --release-as minor",
19
- "test": "npm run eslint && jest --passWithNoTests"
19
+ "test": "npm run eslint && jest --passWithNoTests",
20
+ "test:cov": "jest --collectCoverage --detectOpenHandles",
21
+ "version": "conventional-changelog -p angular -i CHANGELOG.md -s"
20
22
  },
21
23
  "main": "./dist/index.js",
22
24
  "exports": {
23
25
  "require": "./dist/index.js",
24
- "import": "./dist/index.mjs"
26
+ "import": "./dist/index.mjs",
27
+ "types": "./dist/index.d.ts"
25
28
  },
26
29
  "repository": {
27
30
  "type": "git",
@@ -50,18 +53,18 @@
50
53
  "@commitlint/config-conventional": "^19.x.x",
51
54
  "@microsoft/api-documenter": "^7.x.x",
52
55
  "@microsoft/api-extractor": "^7.x.x",
53
- "@rollup/plugin-commonjs": "^28.0.1",
56
+ "@rollup/plugin-commonjs": "^28.x.x",
54
57
  "@rollup/plugin-json": "^6.x.x",
58
+ "@rollup/plugin-node-resolve": "^15.x.x",
55
59
  "@types/jest": "^29.x.x",
56
60
  "@types/koa": "^2.x.x",
61
+ "@types/lodash": "^4.x.x",
57
62
  "@types/node": "^22.x.x",
58
63
  "@types/validator": "^13.x.x",
59
64
  "@typescript-eslint/eslint-plugin": "^8.x.x",
60
65
  "@typescript-eslint/parser": "^8.x.x",
61
66
  "conventional-changelog-cli": "^5.x.x",
62
- "copyfiles": "^2.x.x",
63
- "del-cli": "^6.x.x",
64
- "eslint": "^8.57.x",
67
+ "eslint": "^8.x.x",
65
68
  "eslint-plugin-jest": "^28.x.x",
66
69
  "husky": "^4.x.x",
67
70
  "jest": "^29.x.x",
@@ -69,6 +72,7 @@
69
72
  "libphonenumber-js": "^1.x.x",
70
73
  "reflect-metadata": "^0.x.x",
71
74
  "rollup": "^4.x.x",
75
+ "rollup-plugin-delete": "^2.1.0",
72
76
  "rollup-plugin-typescript2": "^0.x.x",
73
77
  "standard-version": "^9.x.x",
74
78
  "ts-jest": "^29.x.x",
@@ -80,8 +84,7 @@
80
84
  "class-validator": "^0.14.1",
81
85
  "koatty_container": "^1.x.x",
82
86
  "koatty_lib": "^1.x.x",
83
- "koatty_logger": "^2.x.x",
84
- "koatty_validation": "file:"
87
+ "koatty_logger": "^2.x.x"
85
88
  },
86
89
  "peerDependencies": {
87
90
  "koatty_container": "^1.x.x",