@magidoc/plugin-starter-variables 2.14.3 → 2.14.5
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.
|
@@ -2,7 +2,7 @@ import type { ZodType, ZodTypeDef } from 'zod';
|
|
|
2
2
|
interface MetaEnv {
|
|
3
3
|
[key: string]: unknown;
|
|
4
4
|
}
|
|
5
|
-
export
|
|
5
|
+
export type Variable<T> = {
|
|
6
6
|
name: string;
|
|
7
7
|
key: string;
|
|
8
8
|
asEnv: (value: T) => Record<string, string>;
|
|
@@ -10,11 +10,11 @@ export declare type Variable<T> = {
|
|
|
10
10
|
getOrDefault: (env: MetaEnv, def: T) => T;
|
|
11
11
|
zod: ZodVariable<T>;
|
|
12
12
|
};
|
|
13
|
-
export
|
|
14
|
-
export
|
|
13
|
+
export type ZodTypeProvider<T> = (zod: typeof import('zod')) => ZodType<T | undefined, ZodTypeDef, T | undefined>;
|
|
14
|
+
export type ZodVariable<T> = {
|
|
15
15
|
type: ZodTypeProvider<T>;
|
|
16
16
|
};
|
|
17
|
-
export
|
|
17
|
+
export type Converter<T> = {
|
|
18
18
|
convert: (target: unknown) => T | null;
|
|
19
19
|
asString: (value: T) => string;
|
|
20
20
|
type: ZodTypeProvider<T>;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@magidoc/plugin-starter-variables",
|
|
3
3
|
"description": "A shared library that contains common Magidoc starter environment variables keys.",
|
|
4
4
|
"private": false,
|
|
5
|
-
"version": "2.14.
|
|
5
|
+
"version": "2.14.5",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"main": "./build/index.js",
|
|
@@ -18,16 +18,16 @@
|
|
|
18
18
|
"directory": "packages/plugins/starter-variables"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@rollup/plugin-typescript": "^
|
|
22
|
-
"@types/lodash": "^4.14.
|
|
23
|
-
"@types/node": "^18.11.
|
|
24
|
-
"@vitest/coverage-c8": "^0.
|
|
21
|
+
"@rollup/plugin-typescript": "^10.0.0",
|
|
22
|
+
"@types/lodash": "^4.14.190",
|
|
23
|
+
"@types/node": "^18.11.9",
|
|
24
|
+
"@vitest/coverage-c8": "^0.25.3",
|
|
25
25
|
"lodash": "^4.17.21",
|
|
26
|
-
"rollup": "^3.
|
|
27
|
-
"tslib": "^2.4.
|
|
28
|
-
"typescript": "^4.
|
|
29
|
-
"vite": "^3.2.
|
|
30
|
-
"vitest": "^0.
|
|
26
|
+
"rollup": "^3.5.0",
|
|
27
|
+
"tslib": "^2.4.1",
|
|
28
|
+
"typescript": "^4.9.3",
|
|
29
|
+
"vite": "^3.2.4",
|
|
30
|
+
"vitest": "^0.25.3"
|
|
31
31
|
},
|
|
32
32
|
"optionalDependencies": {
|
|
33
33
|
"zod": "^3.19.1"
|