zova-module-a-zod 5.1.38 → 5.1.40
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/.metadata/index.d.ts +3 -3
- package/dist/.metadata/index.d.ts.map +1 -1
- package/dist/.metadata/this.d.ts +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/.metadata/index.ts +3 -3
- package/src/.metadata/locales.ts +2 -2
- package/src/.metadata/this.ts +1 -1
- package/src/index.ts +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** tool: begin */
|
|
2
|
-
export * from '../bean/tool.v.
|
|
2
|
+
export * from '../bean/tool.v.ts';
|
|
3
3
|
import 'zova';
|
|
4
4
|
declare module 'zova' {
|
|
5
5
|
}
|
|
@@ -13,7 +13,7 @@ declare module 'zova-module-a-zod' {
|
|
|
13
13
|
}
|
|
14
14
|
/** tool: end */
|
|
15
15
|
/** tool: begin */
|
|
16
|
-
import { ToolV } from '../bean/tool.v.
|
|
16
|
+
import type { ToolV } from '../bean/tool.v.ts';
|
|
17
17
|
import 'zova';
|
|
18
18
|
declare module 'zova' {
|
|
19
19
|
interface IBeanRecordGeneral {
|
|
@@ -22,7 +22,7 @@ declare module 'zova' {
|
|
|
22
22
|
}
|
|
23
23
|
/** tool: end */
|
|
24
24
|
/** locale: begin */
|
|
25
|
-
import { locales } from './locales.
|
|
25
|
+
import { locales } from './locales.ts';
|
|
26
26
|
/** locale: end */
|
|
27
27
|
/** scope: begin */
|
|
28
28
|
import { BeanScopeBase, type BeanScopeUtil, TypeModuleLocales, TypeLocaleBase } from 'zova';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/.metadata/index.ts"],"names":[],"mappings":"AACA,kBAAkB;AAClB,cAAc,mBAAmB,CAAC;AAElC,OAAO,MAAM,CAAC;AACd,OAAO,QAAQ,MAAM,CAAC;CA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ACpB,UAAiB,gBAAgB;QAC/B,OAAO,EAAE,eAAe,CAAC;KAC1B;IAID,UAAiB,gBAAgB;QAC/B,OAAO,EAAE,CAAC,OAAO,OAAO,CAAC,CAAC,cAAc,CAAC,CAAC;KAC3C;CAGF;AAED,wBAAgB,MAAM,CAAC,CAAC,SAAS,MAAM,CAAC,OAAO,OAAO,CAAC,CAAC,cAAc,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,UAAU,CAAC,EAAE,CAE9F;AACD,iBAAiB"}
|
package/dist/.metadata/this.d.ts
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './.metadata/index.
|
|
2
|
-
export * from './.metadata/locales.
|
|
1
|
+
export * from './.metadata/index.ts';
|
|
2
|
+
export * from './.metadata/locales.ts';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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.
|
|
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.ts';\nimport 'zova';\n/** tool: end */\n/** tool: begin */\n\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.ts';\nimport locale_zh_cn from '../config/locale/zh-cn.ts';\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.
|
|
4
|
-
"gitHead": "
|
|
3
|
+
"version": "5.1.40",
|
|
4
|
+
"gitHead": "d4ca173cd034aee6e73d037f86745c9919218f80",
|
|
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.
|
|
35
|
+
"@cabloy/zod-query": "^2.1.15",
|
|
36
36
|
"zod": "^4.4.3"
|
|
37
37
|
},
|
|
38
38
|
"title": "a-zod",
|
package/src/.metadata/index.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// eslint-disable
|
|
2
2
|
/** tool: begin */
|
|
3
|
-
export * from '../bean/tool.v.
|
|
3
|
+
export * from '../bean/tool.v.ts';
|
|
4
4
|
|
|
5
5
|
import 'zova';
|
|
6
6
|
declare module 'zova' {
|
|
@@ -22,7 +22,7 @@ declare module 'zova-module-a-zod' {
|
|
|
22
22
|
}
|
|
23
23
|
/** tool: end */
|
|
24
24
|
/** tool: begin */
|
|
25
|
-
import { ToolV } from '../bean/tool.v.
|
|
25
|
+
import type { ToolV } from '../bean/tool.v.ts';
|
|
26
26
|
import 'zova';
|
|
27
27
|
declare module 'zova' {
|
|
28
28
|
export interface IBeanRecordGeneral {
|
|
@@ -31,7 +31,7 @@ declare module 'zova' {
|
|
|
31
31
|
}
|
|
32
32
|
/** tool: end */
|
|
33
33
|
/** locale: begin */
|
|
34
|
-
import { locales } from './locales.
|
|
34
|
+
import { locales } from './locales.ts';
|
|
35
35
|
/** locale: end */
|
|
36
36
|
/** scope: begin */
|
|
37
37
|
import { BeanScopeBase, type BeanScopeUtil, TypeModuleLocales, TypeLocaleBase } from 'zova';
|
package/src/.metadata/locales.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import locale_en_us from '../config/locale/en-us.
|
|
2
|
-
import locale_zh_cn from '../config/locale/zh-cn.
|
|
1
|
+
import locale_en_us from '../config/locale/en-us.ts';
|
|
2
|
+
import locale_zh_cn from '../config/locale/zh-cn.ts';
|
|
3
3
|
|
|
4
4
|
export const locales = {
|
|
5
5
|
'en-us': locale_en_us,
|
package/src/.metadata/this.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const __ThisModule__ = 'a-zod';
|
|
2
|
-
export { ScopeModuleAZod as ScopeModule } from './index.
|
|
2
|
+
export { ScopeModuleAZod as ScopeModule } from './index.ts';
|
package/src/index.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './.metadata/index.
|
|
2
|
-
export * from './.metadata/locales.
|
|
1
|
+
export * from './.metadata/index.ts';
|
|
2
|
+
export * from './.metadata/locales.ts';
|