UNPKG

decorator-validator

Version:

decorator-validator 是基于 [zod](https://github.com/colinhacks/zod) 开发的http params 验证装饰器

96 lines (95 loc) 1.91 kB
{ "name": "decorator-validator", "author": "myywlc <myywlc@163.com>", "version": "1.2.3", "module": "dist/decorator-validator.esm.js", "main": "dist/index.js", "typings": "dist/index.d.ts", "license": "MIT", "scripts": { "start": "tsdx watch", "build": "tsdx build", "publish": "npm publish --access=public", "test": "tsdx test", "lint": "tsdx lint", "prepare": "tsdx build", "size": "size-limit", "analyze": "size-limit --why" }, "peerDependencies": {}, "devDependencies": { "@size-limit/preset-small-lib": "^4.10.1", "@types/validator": "^13.1.3", "daruk": "^2.3.1", "husky": "^5.2.0", "size-limit": "^4.10.1", "tsdx": "^0.14.1", "tslib": "^2.1.0", "typescript": "^4.2.3" }, "dependencies": { "zod": "^1.11.13" }, "homepage": "https://github.com/myywlc/decorator-validator", "repository": { "type": "git", "url": "https://github.com/myywlc/decorator-validator" }, "bugs": { "url": "https://github.com/myywlc/decorator-validator/issues" }, "tags": [ "typescript", "schema", "validation", "type", "inference", "schema-validation", "decorator", "validator", "koa", "daruk", "lin" ], "keywords": [ "typescript", "schema", "validation", "type", "inference", "schema-validation", "decorator", "validator", "koa", "daruk", "lin" ], "files": [ "dist", "src" ], "engines": { "node": ">=10" }, "husky": { "hooks": { "pre-commit": "tsdx lint" } }, "prettier": { "printWidth": 80, "semi": true, "singleQuote": true, "trailingComma": "es5" }, "size-limit": [ { "path": "dist/decorator-validator.cjs.production.min.js", "limit": "10 KB" }, { "path": "dist/decorator-validator.esm.js", "limit": "10 KB" } ] }