koatty_validation 1.0.0 → 1.0.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/package.json CHANGED
@@ -1,16 +1,21 @@
1
1
  {
2
2
  "name": "koatty_validation",
3
- "version": "1.0.0",
3
+ "version": "1.0.6",
4
4
  "description": "Validation Util for Koatty and ThinkORM.",
5
5
  "scripts": {
6
6
  "build": "del-cli --force dist && tsc",
7
+ "eslint": "eslint --ext .ts,.js ./",
7
8
  "prepublishOnly": "npm test && npm run build",
8
- "test": "tslint 'src/**/*.ts'"
9
+ "release": "npm run prepublishOnly && standard-version",
10
+ "pub": "git push --follow-tags origin && npm publish",
11
+ "test": "npm run eslint && jest --passWithNoTests",
12
+ "test:cov": "jest --collectCoverage --detectOpenHandles",
13
+ "version": "conventional-changelog -p angular -i CHANGELOG.md -s"
9
14
  },
10
15
  "main": "./dist/index.js",
11
16
  "repository": {
12
17
  "type": "git",
13
- "url": "git+https://github.com/thinkkoa/koatty_validation.git"
18
+ "url": "git+https://github.com/koatty/koatty_validation.git"
14
19
  },
15
20
  "keywords": [
16
21
  "validation",
@@ -24,31 +29,53 @@
24
29
  "name": "richenlin",
25
30
  "email": "richenlin@gmail.com"
26
31
  },
27
- "license": "MIT",
32
+ "license": "BSD-3-Clause",
28
33
  "bugs": {
29
- "url": "https://github.com/thinkkoa/koatty_validation/issues"
34
+ "url": "https://github.com/koatty/koatty_validation/issues"
30
35
  },
31
- "homepage": "https://github.com/thinkkoa/koatty_validation",
36
+ "homepage": "https://github.com/koatty/koatty_validation",
37
+ "maintainers": [
38
+ {
39
+ "name": "richenlin",
40
+ "email": "richenlin@gmail.com"
41
+ }
42
+ ],
32
43
  "devDependencies": {
33
- "@types/node": "^12.x.x",
34
- "del-cli": "^3.0.1",
35
- "ts-node": "^9.0.0",
36
- "tslint": "^6.1.3",
37
- "tslint-config-alloy": "^0.2.1",
44
+ "@babel/core": "^7.x.x",
45
+ "@babel/plugin-proposal-decorators": "^7.x.x",
46
+ "@babel/preset-env": "^7.x.x",
47
+ "@babel/preset-typescript": "^7.x.x",
48
+ "@commitlint/cli": "^12.x.x",
49
+ "@commitlint/config-conventional": "^15.x.x",
50
+ "@types/jest": "^27.x.x",
51
+ "@types/koa": "^2.x.x",
52
+ "@types/node": "^16.x.x",
53
+ "@types/validator": "^13.7.0",
54
+ "@typescript-eslint/eslint-plugin": "^5.x.x",
55
+ "@typescript-eslint/parser": "^5.x.x",
56
+ "conventional-changelog-cli": "^2.x.x",
57
+ "del-cli": "^4.x.x",
58
+ "eslint": "^8.x.x",
59
+ "eslint-plugin-jest": "^25.x.x",
60
+ "husky": "^7.x.x",
61
+ "jest": "^27.x.x",
62
+ "jest-html-reporters": "^2.x.x",
63
+ "standard-version": "^9.x.x",
64
+ "ts-jest": "^27.x.x",
65
+ "ts-node": "^10.x.x",
38
66
  "typescript": "^4.x.x"
39
67
  },
40
68
  "dependencies": {
41
- "class-validator": "^0.12.2",
69
+ "class-validator": "^0.13.2",
42
70
  "koatty_container": "^1.x.x",
43
71
  "koatty_lib": "^1.x.x",
44
72
  "koatty_logger": "^1.x.x",
45
73
  "reflect-metadata": "^0.1.13",
46
- "tslib": "^2.0.3"
74
+ "tslib": "^2.3.1"
47
75
  },
48
- "maintainers": [
49
- {
50
- "name": "richenlin",
51
- "email": "richenlin@gmail.com"
76
+ "husky": {
77
+ "hooks": {
78
+ "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
52
79
  }
53
- ]
54
- }
80
+ }
81
+ }
package/tsconfig.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "compilerOptions": {
3
3
  /* Basic Options */
4
- "target": "es2018" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', or 'ESNEXT'. */,
4
+ "target": "ES2019" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', or 'ESNEXT'. */,
5
5
  "module": "commonjs" /* Specify module code generation: 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */,
6
6
  "lib": [
7
7
  "es2019"
@@ -42,7 +42,8 @@
42
42
  // "./typings/*"
43
43
  ] /* List of folders to include type definitions from. */,
44
44
  "types": [
45
- "node"
45
+ "node",
46
+ "jest"
46
47
  ] /* Type declaration files to be included in compilation. */,
47
48
  "allowSyntheticDefaultImports": true /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */,
48
49
  "resolveJsonModule": true,
@@ -57,10 +58,10 @@
57
58
  "emitDecoratorMetadata": true /* Enables experimental support for emitting type metadata for decorators. */
58
59
  },
59
60
  "exclude": [
60
- "node_modules"
61
+ "node_modules",
62
+ "dist"
61
63
  ],
62
64
  "include": [
63
- "src",
64
- "src/**/*.json"
65
+ "src/**/*"
65
66
  ]
66
67
  }