zova-module-a-zod 5.1.2 → 5.1.7
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 +46 -0
- package/dist/.metadata/index.d.ts.map +1 -0
- package/dist/.metadata/locales.d.ts +11 -0
- package/dist/.metadata/locales.d.ts.map +1 -0
- package/dist/.metadata/this.d.ts +3 -0
- package/dist/.metadata/this.d.ts.map +1 -0
- package/dist/bean/tool.v.d.ts +7 -0
- package/dist/bean/tool.v.d.ts.map +1 -0
- package/dist/config/locale/en-us.d.ts +5 -0
- package/dist/config/locale/en-us.d.ts.map +1 -0
- package/dist/config/locale/zh-cn.d.ts +5 -0
- package/dist/config/locale/zh-cn.d.ts.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/package.json +5 -8
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/** tool: begin */
|
|
2
|
+
export * from '../bean/tool.v.js';
|
|
3
|
+
import 'zova';
|
|
4
|
+
declare module 'zova' {
|
|
5
|
+
}
|
|
6
|
+
declare module 'zova-module-a-zod' {
|
|
7
|
+
interface ToolV {
|
|
8
|
+
}
|
|
9
|
+
interface ToolV {
|
|
10
|
+
get $beanFullName(): 'a-zod.tool.v';
|
|
11
|
+
get $onionName(): 'a-zod:v';
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
/** tool: end */
|
|
15
|
+
/** tool: begin */
|
|
16
|
+
import { ToolV } from '../bean/tool.v.js';
|
|
17
|
+
import 'zova';
|
|
18
|
+
declare module 'zova' {
|
|
19
|
+
interface IBeanRecordGeneral {
|
|
20
|
+
'a-zod.tool.v': ToolV;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
/** tool: end */
|
|
24
|
+
/** locale: begin */
|
|
25
|
+
import { locales } from './locales.js';
|
|
26
|
+
/** locale: end */
|
|
27
|
+
/** scope: begin */
|
|
28
|
+
import { BeanScopeBase, type BeanScopeUtil, TypeModuleLocales, TypeLocaleBase } from 'zova';
|
|
29
|
+
export declare class ScopeModuleAZod extends BeanScopeBase {
|
|
30
|
+
}
|
|
31
|
+
export interface ScopeModuleAZod {
|
|
32
|
+
util: BeanScopeUtil;
|
|
33
|
+
locale: TypeModuleLocales<(typeof locales)[TypeLocaleBase]>;
|
|
34
|
+
}
|
|
35
|
+
import 'zova';
|
|
36
|
+
declare module 'zova' {
|
|
37
|
+
interface IBeanScopeRecord {
|
|
38
|
+
'a-zod': ScopeModuleAZod;
|
|
39
|
+
}
|
|
40
|
+
interface IBeanScopeLocale {
|
|
41
|
+
'a-zod': (typeof locales)[TypeLocaleBase];
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
export declare function locale<K extends keyof (typeof locales)[TypeLocaleBase]>(key: K): `a-zod::${K}`;
|
|
45
|
+
/** scope: end */
|
|
46
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +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;CAGrB;AACD,OAAO,QAAQ,mBAAmB,CAAC;IAE3B,UAAiB,KAAK;KAGrB;IAED,UAAiB,KAAK;QACpB,IAAI,aAAa,IAAI,cAAc,CAAC;QACpC,IAAI,UAAU,IAAI,SAAS,CAAC;KAE7B;CACR;AACD,gBAAgB;AAChB,kBAAkB;AAClB,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,MAAM,CAAC;AACd,OAAO,QAAQ,MAAM,CAAC;IACpB,UAAiB,kBAAkB;QACjC,cAAc,EAAE,KAAK,CAAC;KACvB;CACF;AACD,gBAAgB;AAChB,oBAAoB;AACpB,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,kBAAkB;AAClB,mBAAmB;AACnB,OAAO,EAAE,aAAa,EAAE,KAAK,aAAa,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,MAAM,CAAC;AAG5F,qBACa,eAAgB,SAAQ,aAAa;CAAG;AAErD,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,aAAa,CAAC;IACtB,MAAM,EAAE,iBAAiB,CAAC,CAAC,OAAO,OAAO,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC;CAC3D;AAED,OAAO,MAAM,CAAC;AACd,OAAO,QAAQ,MAAM,CAAC;IACpB,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"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { TypeLocaleBase } from 'zova';
|
|
2
|
+
export declare const locales: {
|
|
3
|
+
'en-us': {
|
|
4
|
+
ZodErrorRequired: string;
|
|
5
|
+
};
|
|
6
|
+
'zh-cn': {
|
|
7
|
+
ZodErrorRequired: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export declare function $useLocale<K extends keyof (typeof locales)[TypeLocaleBase]>(key: K, ...args: any[]): string;
|
|
11
|
+
//# sourceMappingURL=locales.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"locales.d.ts","sourceRoot":"","sources":["../../src/.metadata/locales.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,MAAM,CAAC;AAK3C,eAAO,MAAM,OAAO;;;;;;;CAGnB,CAAC;AAEF,wBAAgB,UAAU,CAAC,CAAC,SAAS,MAAM,CAAC,OAAO,OAAO,CAAC,CAAC,cAAc,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,UAMlG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"this.d.ts","sourceRoot":"","sources":["../../src/.metadata/this.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,UAAU,CAAC;AACtC,OAAO,EAAE,eAAe,IAAI,WAAW,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
import { BeanBase } from 'zova';
|
|
3
|
+
export declare class ToolV extends BeanBase {
|
|
4
|
+
protected __init__(): Promise<void>;
|
|
5
|
+
required<T extends z.ZodType>(schema: T, params?: string | z.core.$ZodStringParams): T;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=tool.v.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool.v.d.ts","sourceRoot":"","sources":["../../src/bean/tool.v.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AACpB,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAGhC,qBACa,KAAM,SAAQ,QAAQ;cACjB,QAAQ;IAExB,QAAQ,CAAC,CAAC,SAAS,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,IAAI,CAAC,gBAAgB,GAAG,CAAC;CAKvF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"en-us.d.ts","sourceRoot":"","sources":["../../../src/config/locale/en-us.ts"],"names":[],"mappings":";;;AAAA,wBAEE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zh-cn.d.ts","sourceRoot":"","sources":["../../../src/config/locale/zh-cn.ts"],"names":[],"mappings":";;;AAAA,wBAEE"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zova-module-a-zod",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.7",
|
|
4
|
+
"gitHead": "761a9baced655ccf3197e756c1d046ed651fafd5",
|
|
4
5
|
"description": "",
|
|
5
6
|
"keywords": [
|
|
6
7
|
"Zova Module"
|
|
@@ -17,17 +18,14 @@
|
|
|
17
18
|
"type": "module",
|
|
18
19
|
"exports": {
|
|
19
20
|
".": {
|
|
20
|
-
"types":
|
|
21
|
-
"./src/index.ts",
|
|
22
|
-
"./dist/index.d.ts"
|
|
23
|
-
],
|
|
21
|
+
"types": "./dist/index.d.ts",
|
|
24
22
|
"default": "./dist/index.js"
|
|
25
23
|
},
|
|
26
24
|
"./*": "./*"
|
|
27
25
|
},
|
|
28
26
|
"scripts": {
|
|
29
27
|
"clean": "rimraf dist tsconfig.build.tsbuildinfo",
|
|
30
|
-
"tsc:publish": "npm run clean && zova :bin:buildModule --sourcemap",
|
|
28
|
+
"tsc:publish": "npm run clean && zova :bin:buildModule --sourcemap && tsc -p tsconfig.build.json",
|
|
31
29
|
"prepublishOnly": "npm run tsc:publish",
|
|
32
30
|
"prepack": "clean-package",
|
|
33
31
|
"postpack": "clean-package restore && npm run clean"
|
|
@@ -59,6 +57,5 @@
|
|
|
59
57
|
}
|
|
60
58
|
]
|
|
61
59
|
}
|
|
62
|
-
}
|
|
63
|
-
"gitHead": "5517baba5865ac348af5be8e3a0f7506b0a67f9c"
|
|
60
|
+
}
|
|
64
61
|
}
|