zova-module-a-zod 5.1.30 → 5.1.34
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/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../src/bean/tool.v.ts","../src/.metadata/index.ts","../src/config/locale/en-us.ts","../src/config/locale/zh-cn.ts","../src/.metadata/locales.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../src/bean/tool.v.ts","../src/.metadata/index.ts","../src/config/locale/en-us.ts","../src/config/locale/zh-cn.ts","../src/.metadata/locales.ts"],"sourcesContent":["var _dec, _dec2, _class;\nimport { \"BeanInfo\" as __z_BeanInfo } from \"zova\";\nimport z from 'zod';\nimport { BeanBase } from 'zova';\nimport { Tool } from 'zova-module-a-bean';\nexport let ToolV = (_dec = Tool(), _dec2 = __z_BeanInfo({\n module: \"a-zod\"\n}), _dec(_class = _dec2(_class = class ToolV extends BeanBase {\n async __init__() {}\n required(schema, params) {\n params = params || this.scope.locale.ZodErrorRequired();\n schema._zod.def.error = z.util.normalizeParams(params).error;\n return schema;\n }\n}) || _class) || _class);","var _dec, _dec2, _class;\nimport { \"BeanInfo\" as __z_BeanInfo } from \"zova\";\n// eslint-disable\n/** tool: begin */\nexport * from '../bean/tool.v.js';\nimport 'zova';\n/** tool: end */\n/** tool: begin */\nimport { ToolV } from '../bean/tool.v.js';\nimport 'zova';\n/** tool: end */\n/** locale: begin */\n\n/** locale: end */\n/** scope: begin */\nimport { BeanScopeBase } from 'zova';\nimport { Scope } from 'zova-module-a-bean';\nexport let ScopeModuleAZod = (_dec = Scope(), _dec2 = __z_BeanInfo({\n module: \"a-zod\"\n}), _dec(_class = _dec2(_class = class ScopeModuleAZod extends BeanScopeBase {}) || _class) || _class);\nimport 'zova';\nexport function locale(key) {\n return `a-zod::${key}`;\n}\n/** scope: end */","export default {\n ZodErrorRequired: 'Required'\n};","export default {\n ZodErrorRequired: '必填项'\n};","import locale_en_us from '../config/locale/en-us.js';\nimport locale_zh_cn from '../config/locale/zh-cn.js';\nexport const locales = {\n 'en-us': locale_en_us,\n 'zh-cn': locale_zh_cn\n};"],"mappings":";;;;AAAA,IAAI,QAAM,SAAO;AAKjB,IAAW,SAAS,SAAO,KAAK,GAAG,UAAQ,SAAa,EACtD,QAAQ,QACV,CAAC,GAAG,OAAK,WAAS,QAAM,WAAS,MAAM,cAAc,SAAS;CAC5D,MAAM,WAAW,CAAC;CAClB,SAAS,QAAQ,QAAQ;EACvB,SAAS,UAAU,KAAK,MAAM,OAAO,iBAAiB;EACtD,OAAO,KAAK,IAAI,QAAQ,EAAE,KAAK,gBAAgB,MAAM,CAAC,CAAC;EACvD,OAAO;CACT;AACF,CAAC,KAAK,QAAM,KAAK;;;;;;;ACdjB,IAAI,MAAM,OAAO;AAiBjB,IAAW,mBAAmB,OAAO,MAAM,GAAG,QAAQ,SAAa,EACjE,QAAQ,QACV,CAAC,GAAG,KAAK,SAAS,MAAM,SAAS,MAAM,wBAAwB,cAAc,CAAC,CAAC,KAAK,MAAM,KAAK;AAE/F,SAAgB,OAAO,KAAK;CAC1B,OAAO,UAAU;AACnB;;;AGrBA,IAAa,UAAU;CACrB,SAAS,EFFT,kBAAkB,WEET;CACT,SAAS,EDHT,kBAAkB,MCGT;AACX"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zova-module-a-zod",
|
|
3
|
-
"version": "5.1.
|
|
4
|
-
"gitHead": "
|
|
3
|
+
"version": "5.1.34",
|
|
4
|
+
"gitHead": "079e0f7eaebb585ff14ebdbdff9051229e8544db",
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"Zova Module"
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
"tsc:publish": "npm run clean && node ../../../../../packages-cli/cli/src/bin/zova.ts :bin:buildModule --sourcemap && tsc -p tsconfig.build.json",
|
|
28
28
|
"prepublishOnly": "npm run tsc:publish",
|
|
29
29
|
"prepack": "clean-package",
|
|
30
|
-
"postpack": "clean-package restore
|
|
30
|
+
"postpack": "clean-package restore"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@cabloy/zod-errors-custom": "^2.1.9",
|
|
34
34
|
"@cabloy/zod-openapi": "^1.1.9",
|
|
35
|
-
"@cabloy/zod-query": "^2.1.
|
|
35
|
+
"@cabloy/zod-query": "^2.1.12",
|
|
36
36
|
"zod": "^4.4.3"
|
|
37
37
|
},
|
|
38
38
|
"title": "a-zod",
|