koatty_validation 1.2.3 → 1.2.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.
@@ -0,0 +1,63 @@
1
+ /*
2
+ * @Description:
3
+ * @Usage:
4
+ * @Author: richen
5
+ * @Date: 2021-12-17 10:20:44
6
+ * @LastEditTime: 2021-12-18 11:58:46
7
+ */
8
+ import json from "@rollup/plugin-json";
9
+ import typescript from 'rollup-plugin-typescript2';
10
+ // import babel from '@rollup/plugin-babel';
11
+
12
+ export default [
13
+ {
14
+ input: './src/index.ts',
15
+ output: [{
16
+ format: 'cjs',
17
+ file: './dist/index.js',
18
+ banner: require('./scripts/copyright')
19
+ }],
20
+ plugins: [
21
+ // babel({
22
+ // babelHelpers: "runtime",
23
+ // configFile: './babel.config.js',
24
+ // exclude: 'node_modules/**',
25
+ // }),
26
+ json(),
27
+ typescript({
28
+ tsconfigOverride: {
29
+ compilerOptions: {
30
+ declaration: false,
31
+ declarationMap: false,
32
+ module: "ESNext"
33
+ }
34
+ }
35
+ })
36
+ ]
37
+ },
38
+ {
39
+ input: './src/index.ts',
40
+ output: [{
41
+ format: 'es',
42
+ file: './dist/index.mjs',
43
+ banner: require('./scripts/copyright')
44
+ }],
45
+ plugins: [
46
+ // babel({
47
+ // babelHelpers: "runtime",
48
+ // configFile: './babel.config.js',
49
+ // exclude: 'node_modules/**',
50
+ // }),
51
+ json(),
52
+ typescript({
53
+ tsconfigOverride: {
54
+ compilerOptions: {
55
+ declaration: false,
56
+ declarationMap: false,
57
+ module: "ESNext"
58
+ }
59
+ }
60
+ })
61
+ ]
62
+ }
63
+ ]
package/CHANGELOG.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [1.2.4](https://github.com/koatty/koatty_validation/compare/v1.2.3...v1.2.4) (2022-05-27)
6
+
5
7
  ### [1.2.3](https://github.com/koatty/koatty_validation/compare/v1.2.2...v1.2.3) (2022-03-09)
6
8
 
7
9
  ### [1.2.2](https://github.com/koatty/koatty_validation/compare/v1.2.0...v1.2.2) (2022-02-25)
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * @Author: richen
3
- * @Date: 2022-03-09 18:25:00
3
+ * @Date: 2022-05-27 09:55:28
4
4
  * @License: BSD (3-Clause)
5
5
  * @Copyright (c) - <richenlin(at)gmail.com>
6
6
  * @HomePage: https://koatty.org/
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * @Author: richen
3
- * @Date: 2022-03-09 18:24:48
3
+ * @Date: 2022-05-27 09:55:14
4
4
  * @License: BSD (3-Clause)
5
5
  * @Copyright (c) - <richenlin(at)gmail.com>
6
6
  * @HomePage: https://koatty.org/
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * @Author: richen
3
- * @Date: 2022-03-09 18:24:48
3
+ * @Date: 2022-05-27 09:55:14
4
4
  * @License: BSD (3-Clause)
5
5
  * @Copyright (c) - <richenlin(at)gmail.com>
6
6
  * @HomePage: https://koatty.org/
package/dist/package.json CHANGED
@@ -1,24 +1,18 @@
1
1
  {
2
2
  "name": "koatty_validation",
3
- "version": "1.2.3",
3
+ "version": "1.2.4",
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
7
  "build:cp": "node scripts/postBuild && copyfiles package.json LICENSE README.md dist/",
8
- "build:js": "del-cli --force dist && npx rollup -c",
8
+ "build:js": "del-cli --force dist && npx rollup -c .rollup.config.js",
9
9
  "build:doc": "del-cli --force docs/api && npx api-documenter markdown --input temp --output docs/api",
10
10
  "build:dts": "del-cli --force temp && npx tsc && npx api-extractor run --local --verbose",
11
11
  "eslint": "eslint --ext .ts,.js ./",
12
12
  "prepublishOnly": "npm test && npm run build",
13
13
  "prerelease": "npm test && npm run build",
14
14
  "release": "standard-version",
15
- "release:pre": "npm run release -- --prerelease",
16
- "release:major": "npm run release -- --release-as major",
17
- "release:minor": "npm run release -- --release-as minor",
18
- "pub": "git push --follow-tags origin && npm publish",
19
- "test": "npm run eslint && jest --passWithNoTests",
20
- "test:cov": "jest --collectCoverage --detectOpenHandles",
21
- "version": "conventional-changelog -p angular -i CHANGELOG.md -s"
15
+ "test": "npm run eslint && jest --passWithNoTests"
22
16
  },
23
17
  "main": "./dist/index.js",
24
18
  "exports": {
@@ -48,29 +42,29 @@
48
42
  }
49
43
  ],
50
44
  "devDependencies": {
45
+ "@commitlint/cli": "^17.x.x",
46
+ "@commitlint/config-conventional": "^17.x.x",
51
47
  "@microsoft/api-documenter": "^7.x.x",
52
48
  "@microsoft/api-extractor": "^7.x.x",
53
49
  "@rollup/plugin-json": "^4.x.x",
54
50
  "@types/jest": "^27.x.x",
55
51
  "@types/koa": "^2.x.x",
56
52
  "@types/node": "^16.x.x",
57
- "@types/validator": "^13.x.x",
53
+ "@types/validator": "^13.7.2",
58
54
  "@typescript-eslint/eslint-plugin": "^5.x.x",
59
55
  "@typescript-eslint/parser": "^5.x.x",
60
- "commitlint": "^15.x.x",
61
- "commitlint-config-gitmoji": "^2.x.x",
62
56
  "conventional-changelog-cli": "^2.x.x",
63
57
  "copyfiles": "^2.x.x",
64
58
  "del-cli": "^4.x.x",
65
59
  "eslint": "^8.x.x",
66
- "eslint-plugin-jest": "^25.x.x",
67
- "husky": "^7.x.x",
68
- "jest": "^27.x.x",
69
- "jest-html-reporters": "^2.x.x",
60
+ "eslint-plugin-jest": "^26.x.x",
61
+ "husky": "^4.x.x",
62
+ "jest": "^28.x.x",
63
+ "jest-html-reporters": "^3.x.x",
70
64
  "rollup": "^2.x.x",
71
65
  "rollup-plugin-typescript2": "^0.x.x",
72
66
  "standard-version": "^9.x.x",
73
- "ts-jest": "^27.x.x",
67
+ "ts-jest": "^28.x.x",
74
68
  "ts-node": "^10.x.x",
75
69
  "typescript": "^4.x.x"
76
70
  },
@@ -80,11 +74,11 @@
80
74
  "koatty_lib": "^1.x.x",
81
75
  "koatty_logger": "^1.x.x",
82
76
  "reflect-metadata": "^0.1.13",
83
- "tslib": "^2.3.1"
77
+ "tslib": "^2.4.0"
84
78
  },
85
79
  "peerDependencies": {
86
80
  "koatty_container": "^1.x.x",
87
81
  "koatty_lib": "^1.x.x",
88
82
  "koatty_logger": "^1.x.x"
89
83
  }
90
- }
84
+ }
package/package.json CHANGED
@@ -1,24 +1,18 @@
1
1
  {
2
2
  "name": "koatty_validation",
3
- "version": "1.2.3",
3
+ "version": "1.2.4",
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
7
  "build:cp": "node scripts/postBuild && copyfiles package.json LICENSE README.md dist/",
8
- "build:js": "del-cli --force dist && npx rollup -c",
8
+ "build:js": "del-cli --force dist && npx rollup -c .rollup.config.js",
9
9
  "build:doc": "del-cli --force docs/api && npx api-documenter markdown --input temp --output docs/api",
10
10
  "build:dts": "del-cli --force temp && npx tsc && npx api-extractor run --local --verbose",
11
11
  "eslint": "eslint --ext .ts,.js ./",
12
12
  "prepublishOnly": "npm test && npm run build",
13
13
  "prerelease": "npm test && npm run build",
14
14
  "release": "standard-version",
15
- "release:pre": "npm run release -- --prerelease",
16
- "release:major": "npm run release -- --release-as major",
17
- "release:minor": "npm run release -- --release-as minor",
18
- "pub": "git push --follow-tags origin && npm publish",
19
- "test": "npm run eslint && jest --passWithNoTests",
20
- "test:cov": "jest --collectCoverage --detectOpenHandles",
21
- "version": "conventional-changelog -p angular -i CHANGELOG.md -s"
15
+ "test": "npm run eslint && jest --passWithNoTests"
22
16
  },
23
17
  "main": "./dist/index.js",
24
18
  "exports": {
@@ -48,29 +42,29 @@
48
42
  }
49
43
  ],
50
44
  "devDependencies": {
45
+ "@commitlint/cli": "^17.x.x",
46
+ "@commitlint/config-conventional": "^17.x.x",
51
47
  "@microsoft/api-documenter": "^7.x.x",
52
48
  "@microsoft/api-extractor": "^7.x.x",
53
49
  "@rollup/plugin-json": "^4.x.x",
54
50
  "@types/jest": "^27.x.x",
55
51
  "@types/koa": "^2.x.x",
56
52
  "@types/node": "^16.x.x",
57
- "@types/validator": "^13.x.x",
53
+ "@types/validator": "^13.7.2",
58
54
  "@typescript-eslint/eslint-plugin": "^5.x.x",
59
55
  "@typescript-eslint/parser": "^5.x.x",
60
- "commitlint": "^15.x.x",
61
- "commitlint-config-gitmoji": "^2.x.x",
62
56
  "conventional-changelog-cli": "^2.x.x",
63
57
  "copyfiles": "^2.x.x",
64
58
  "del-cli": "^4.x.x",
65
59
  "eslint": "^8.x.x",
66
- "eslint-plugin-jest": "^25.x.x",
67
- "husky": "^7.x.x",
68
- "jest": "^27.x.x",
69
- "jest-html-reporters": "^2.x.x",
60
+ "eslint-plugin-jest": "^26.x.x",
61
+ "husky": "^4.x.x",
62
+ "jest": "^28.x.x",
63
+ "jest-html-reporters": "^3.x.x",
70
64
  "rollup": "^2.x.x",
71
65
  "rollup-plugin-typescript2": "^0.x.x",
72
66
  "standard-version": "^9.x.x",
73
- "ts-jest": "^27.x.x",
67
+ "ts-jest": "^28.x.x",
74
68
  "ts-node": "^10.x.x",
75
69
  "typescript": "^4.x.x"
76
70
  },
@@ -80,11 +74,11 @@
80
74
  "koatty_lib": "^1.x.x",
81
75
  "koatty_logger": "^1.x.x",
82
76
  "reflect-metadata": "^0.1.13",
83
- "tslib": "^2.3.1"
77
+ "tslib": "^2.4.0"
84
78
  },
85
79
  "peerDependencies": {
86
80
  "koatty_container": "^1.x.x",
87
81
  "koatty_lib": "^1.x.x",
88
82
  "koatty_logger": "^1.x.x"
89
83
  }
90
- }
84
+ }