zova-module-a-zod 5.1.36 → 5.1.38

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 CHANGED
@@ -2,7 +2,9 @@ import { BeanBase, BeanInfo, BeanScopeBase } from "zova";
2
2
  import z from "zod";
3
3
  import { Scope, Tool } from "zova-module-a-bean";
4
4
  //#region src/bean/tool.v.ts
5
- var _dec$1, _dec2$1, _class$1;
5
+ var _dec$1;
6
+ var _dec2$1;
7
+ var _class$1;
6
8
  var ToolV = (_dec$1 = Tool(), _dec2$1 = BeanInfo({ module: "a-zod" }), _dec$1(_class$1 = _dec2$1(_class$1 = class ToolV extends BeanBase {
7
9
  async __init__() {}
8
10
  required(schema, params) {
@@ -13,11 +15,9 @@ var ToolV = (_dec$1 = Tool(), _dec2$1 = BeanInfo({ module: "a-zod" }), _dec$1(_c
13
15
  }) || _class$1) || _class$1);
14
16
  //#endregion
15
17
  //#region src/.metadata/index.ts
16
- /** tool: end */
17
- /** locale: begin */
18
- /** locale: end */
19
- /** scope: begin */
20
- var _dec, _dec2, _class;
18
+ var _dec;
19
+ var _dec2;
20
+ var _class;
21
21
  var ScopeModuleAZod = (_dec = Scope(), _dec2 = BeanInfo({ module: "a-zod" }), _dec(_class = _dec2(_class = class ScopeModuleAZod extends BeanScopeBase {}) || _class) || _class);
22
22
  function locale(key) {
23
23
  return `a-zod::${key}`;
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":["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"}
1
+ {"version":3,"file":"index.js","names":["_dec","_dec2","_class","__z_BeanInfo","__z_BeanInfo","locale_en_us","locale_zh_cn"],"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,IAAIA;AAAMC,IAAAA;AAAOC,IAAAA;AAKjB,IAAW,SAAS,SAAO,KAAK,GAAG,UAAQC,SAAa,EACtD,QAAQ,QACV,CAAC,GAAGH,OAAK,WAASC,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,KAAKC,QAAM,KAAKA;;;ACdjB,IAAI;AAAM,IAAA;AAAO,IAAA;AAiBjB,IAAW,mBAAmB,OAAO,MAAM,GAAG,QAAQE,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,SAASC,EFFT,kBAAkB,WEETA;CACT,SAASC,EDHT,kBAAkB,MCGTA;AACX"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "zova-module-a-zod",
3
- "version": "5.1.36",
4
- "gitHead": "ecaeb81d8e1aec6b3bff3d87fd5449f4f78028eb",
3
+ "version": "5.1.38",
4
+ "gitHead": "adfc560c7fbe18fe6aa24a768172c21cf89d7b04",
5
5
  "description": "",
6
6
  "keywords": [
7
7
  "Zova Module"
@@ -32,7 +32,7 @@
32
32
  "dependencies": {
33
33
  "@cabloy/zod-errors-custom": "^2.1.10",
34
34
  "@cabloy/zod-openapi": "^1.1.10",
35
- "@cabloy/zod-query": "^2.1.13",
35
+ "@cabloy/zod-query": "^2.1.14",
36
36
  "zod": "^4.4.3"
37
37
  },
38
38
  "title": "a-zod",
@@ -4,11 +4,11 @@ export * from '../bean/tool.v.js';
4
4
 
5
5
  import 'zova';
6
6
  declare module 'zova' {
7
-
8
-
7
+
8
+
9
9
  }
10
10
  declare module 'zova-module-a-zod' {
11
-
11
+
12
12
  export interface ToolV {
13
13
  /** @internal */
14
14
  get scope(): ScopeModuleAZod;
@@ -17,8 +17,8 @@ declare module 'zova-module-a-zod' {
17
17
  export interface ToolV {
18
18
  get $beanFullName(): 'a-zod.tool.v';
19
19
  get $onionName(): 'a-zod:v';
20
-
21
- }
20
+
21
+ }
22
22
  }
23
23
  /** tool: end */
24
24
  /** tool: begin */
@@ -50,17 +50,17 @@ declare module 'zova' {
50
50
  export interface IBeanScopeRecord {
51
51
  'a-zod': ScopeModuleAZod;
52
52
  }
53
-
54
-
53
+
54
+
55
55
 
56
56
  export interface IBeanScopeLocale {
57
57
  'a-zod': (typeof locales)[TypeLocaleBase];
58
58
  }
59
59
 
60
-
60
+
61
61
  }
62
62
 
63
63
  export function locale<K extends keyof (typeof locales)[TypeLocaleBase]>(key: K): `a-zod::${K}` {
64
64
  return `a-zod::${key}`;
65
- }
65
+ }
66
66
  /** scope: end */