@e-n-v/env 0.0.11 → 0.0.13
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/{BooleanMap-BPQuO3Ae.d.ts → BooleanMap-B7iiI-eg.d.ts} +1 -7
- package/dist/{BooleanMap-CX_YrPCf.d.cts → BooleanMap-D74MMuAh.d.cts} +1 -7
- package/dist/{EnvChannel-CfSwa_25.d.cts → EnvChannel-gV-4XlM8.d.cts} +0 -2
- package/dist/{EnvChannel-CfSwa_25.d.ts → EnvChannel-gV-4XlM8.d.ts} +0 -2
- package/dist/{EnvChannelOptions-D2-3p4b_.d.cts → EnvChannelOptions-BxsZpwjq.d.cts} +4 -20
- package/dist/{EnvChannelOptions-D2-3p4b_.d.ts → EnvChannelOptions-BxsZpwjq.d.ts} +4 -20
- package/dist/{EnvSource-s8F_M_6O.cjs → EnvSource-B_7XBrZM.cjs} +4 -8
- package/dist/{EnvSource-WAGWqRVM.js → EnvSource-DL1wl3j4.js} +4 -8
- package/dist/{EnvVarSchema-CDZGmnex.cjs → EnvVarSchema-D_fQ2A89.cjs} +2 -3
- package/dist/{EnvVarSchema-Dr6q7jf6.js → EnvVarSchema-Dd3ZrR30.js} +2 -3
- package/dist/{ProcessEnvChannel-CvdASj6O.d.ts → ProcessEnvChannel-BN4U3VXU.d.cts} +2 -10
- package/dist/{ProcessEnvChannel-By7mCljr.d.cts → ProcessEnvChannel-Df1v0WyG.d.ts} +2 -10
- package/dist/{StringEnvVarSchema-D9Jr1Aws.d.cts → StringEnvVarSchema-CymYIek7.d.cts} +0 -16
- package/dist/{StringEnvVarSchema-D9Jr1Aws.d.ts → StringEnvVarSchema-CymYIek7.d.ts} +0 -16
- package/dist/channels.cjs +1 -1
- package/dist/channels.d.cts +3 -5
- package/dist/channels.d.ts +3 -5
- package/dist/channels.js +1 -1
- package/dist/cli.cjs +8 -10
- package/dist/cli.js +4 -6
- package/dist/core.cjs +7 -10
- package/dist/core.d.cts +5 -39
- package/dist/core.d.ts +5 -39
- package/dist/core.js +7 -10
- package/dist/{custom-Bd-jLg80.js → custom-BRT8y9Jj.js} +9 -18
- package/dist/{custom-Dyb9TnER.cjs → custom-_p4QyQTG.cjs} +9 -18
- package/dist/files.cjs +3 -5
- package/dist/files.d.cts +0 -10
- package/dist/files.d.ts +0 -10
- package/dist/files.js +3 -5
- package/dist/{index-B0GSc17M.d.ts → index-B-GXzdUQ.d.ts} +3 -9
- package/dist/{index-Cb0abjLf.d.ts → index-BwID8Va2.d.ts} +2 -14
- package/dist/{index-BHTM8nxS.d.ts → index-C7wTQSSV.d.cts} +1 -5
- package/dist/{index-bqDK7Ycd.d.cts → index-CgeWhoQX.d.cts} +3 -9
- package/dist/{index-B2eNij2x.d.cts → index-ClGSiwuc.d.ts} +1 -5
- package/dist/{index-Cz3frUwZ.d.cts → index-D8rUvOZ5.d.cts} +2 -14
- package/dist/index.cjs +15 -16
- package/dist/index.d.cts +7 -10
- package/dist/index.d.ts +7 -10
- package/dist/index.js +7 -8
- package/dist/model.cjs +2 -3
- package/dist/model.d.cts +1 -1
- package/dist/model.d.ts +1 -1
- package/dist/model.js +2 -3
- package/dist/parse.cjs +4 -5
- package/dist/parse.d.cts +4 -6
- package/dist/parse.d.ts +4 -6
- package/dist/parse.js +4 -5
- package/dist/{preprocessors-DFVyF0c7.d.cts → preprocessors-BRPHeq3e.d.cts} +2 -24
- package/dist/{preprocessors-BKuIcZa1.d.ts → preprocessors-BUAo8e4Q.d.ts} +2 -24
- package/dist/prompt.cjs +3 -4
- package/dist/prompt.d.cts +10 -5
- package/dist/prompt.d.ts +4 -5
- package/dist/prompt.js +3 -4
- package/dist/{redis-D18f4ztf.js → redis-B-sECHB8.js} +9 -18
- package/dist/{redis-tRD4nAy_.d.ts → redis-BSCXEwN0.d.cts} +1 -39
- package/dist/{redis-CyTF0SYT.cjs → redis-CyJB1Nt0.cjs} +9 -18
- package/dist/{redis-DsW-Vkwq.d.cts → redis-n80OfSRZ.d.ts} +1 -39
- package/dist/{resolveChannel-DB1XyYCC.js → resolveChannel-CkQhgsxw.js} +6 -11
- package/dist/{resolveChannel-Cug62jvj.cjs → resolveChannel-EJwecI0-.cjs} +6 -11
- package/dist/{rolldown-runtime-C0BPl7ul.cjs → rolldown-runtime-BW-eSwOZ.cjs} +1 -2
- package/dist/{rolldown-runtime-D7D4PA-g.js → rolldown-runtime-D8jQpDG7.js} +1 -2
- package/dist/{schema-CtP5lpU1.js → schema-BTv2xFHz.js} +2 -3
- package/dist/{schema-D9nJKipf.cjs → schema-CKx-cny7.cjs} +2 -3
- package/dist/{schema-B-JLVS42.d.ts → schema-ChcxJMuu.d.ts} +1 -3
- package/dist/{schema-B1i83alz.d.cts → schema-DBTZcufP.d.cts} +1 -3
- package/dist/schemas/zod.cjs +30 -59
- package/dist/schemas/zod.d.cts +0 -56
- package/dist/schemas/zod.d.ts +0 -56
- package/dist/schemas/zod.js +30 -59
- package/dist/schemas.cjs +1 -1
- package/dist/schemas.d.cts +1 -1
- package/dist/schemas.d.ts +1 -1
- package/dist/schemas.js +1 -1
- package/dist/{src-DB0Har0j.cjs → src-B5LvPydi.cjs} +24 -44
- package/dist/{src-DgHZi7PD.js → src-BAkjmW8v.js} +10 -18
- package/dist/{src-DvUBRBe3.js → src-BLZdiWZJ.js} +24 -44
- package/dist/{src-CJ_QE-uc.cjs → src-B_wC-Ff0.cjs} +4 -6
- package/dist/{src-TZx_e95f.cjs → src-BgwAyw-w.cjs} +20 -40
- package/dist/{src-CtWcViFD.cjs → src-C57GsLLI.cjs} +11 -19
- package/dist/{src-DefPAYdi.cjs → src-CILRt8pX.cjs} +33 -56
- package/dist/{src-BK5HcxMN.js → src-CkblS8lK.js} +27 -50
- package/dist/{src-BPxfJblL.js → src-DCLHRLpS.js} +4 -6
- package/dist/{src-Cg49gGJb.js → src-DtejQU3A.js} +20 -40
- package/dist/{vars-obKYxaSu.d.ts → vars-BLXbjxcm.d.cts} +1 -3
- package/dist/{vars-DtzGL5Nc.d.cts → vars-XT7wuxpb.d.ts} +1 -3
- package/dist/vars.cjs +3 -4
- package/dist/vars.d.cts +2 -2
- package/dist/vars.d.ts +2 -2
- package/dist/vars.js +3 -4
- package/package.json +1 -1
- package/dist/prompt-Rbr8DN-r.d.cts +0 -9
package/dist/files.d.ts
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
//#region ../files/src/types.d.ts
|
|
2
1
|
type EnvRecord = Record<string, string>;
|
|
3
2
|
type EnvSelectionRecord<T extends readonly string[]> = { [K in T[number]]: string | undefined; };
|
|
4
3
|
type EnvPrimitiveValue = string | number | boolean | bigint;
|
|
5
|
-
//#endregion
|
|
6
|
-
//#region ../files/src/EnvSource.d.ts
|
|
7
4
|
export declare class EnvSource {
|
|
8
5
|
private readonly filePath;
|
|
9
6
|
constructor(filePath: string);
|
|
@@ -22,17 +19,10 @@ export declare class EnvSource {
|
|
|
22
19
|
private ensureDirectorySync;
|
|
23
20
|
private ensureDirectory;
|
|
24
21
|
}
|
|
25
|
-
//#endregion
|
|
26
|
-
//#region ../files/src/get.d.ts
|
|
27
22
|
export declare function get(content: string): EnvRecord;
|
|
28
23
|
export declare function get(content: string, name: string): string | undefined;
|
|
29
24
|
export declare function get<const Names extends readonly string[]>(content: string, names: Names): EnvSelectionRecord<Names>;
|
|
30
|
-
//#endregion
|
|
31
|
-
//#region ../files/src/set.d.ts
|
|
32
25
|
export declare function set(content: string, name: string, value: EnvPrimitiveValue): string;
|
|
33
26
|
export declare function set(content: string, values: Record<string, EnvPrimitiveValue>): string;
|
|
34
|
-
//#endregion
|
|
35
|
-
//#region ../files/src/source.d.ts
|
|
36
27
|
export declare function source(filePath: string): EnvSource;
|
|
37
|
-
//#endregion
|
|
38
28
|
export { type EnvPrimitiveValue, type EnvRecord, type EnvSelectionRecord, source as default };
|
package/dist/files.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { n as set, r as get, t as EnvSource } from "./EnvSource-
|
|
2
|
-
|
|
1
|
+
import { n as set, r as get, t as EnvSource } from "./EnvSource-DL1wl3j4.js";
|
|
2
|
+
// ../files/src/source.ts
|
|
3
3
|
function source(filePath) {
|
|
4
4
|
return new EnvSource(filePath);
|
|
5
5
|
}
|
|
6
|
-
|
|
7
|
-
//#region src/files.ts
|
|
6
|
+
// src/files.ts
|
|
8
7
|
var files_default = source;
|
|
9
|
-
//#endregion
|
|
10
8
|
export { EnvSource, files_default as default, get, set, source };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
3
|
-
import {
|
|
1
|
+
import { a as EnvModelOptions, i as EnvModel } from "./index-BwID8Va2.js";
|
|
2
|
+
import { t as EnvChannelOptions } from "./EnvChannelOptions-BxsZpwjq.js";
|
|
3
|
+
import { t as EnvChannel } from "./EnvChannel-gV-4XlM8.js";
|
|
4
4
|
import { Formatter } from "picocolors/types";
|
|
5
|
-
//#region ../prompt/src/options/PromptEnvInteractiveOptions.d.ts
|
|
6
5
|
/**
|
|
7
6
|
* Configuration options for the prompt function
|
|
8
7
|
*/
|
|
@@ -50,14 +49,10 @@ type PromptEnvInteractiveOptions = {
|
|
|
50
49
|
*/
|
|
51
50
|
theme?: Formatter;
|
|
52
51
|
};
|
|
53
|
-
//#endregion
|
|
54
|
-
//#region ../prompt/src/options/PromptEnvOptions.d.ts
|
|
55
52
|
/**
|
|
56
53
|
* Configuration options for the prompt function
|
|
57
54
|
*/
|
|
58
55
|
type PromptEnvOptions = EnvModelOptions & PromptEnvInteractiveOptions;
|
|
59
|
-
//#endregion
|
|
60
|
-
//#region ../prompt/src/prompt.d.ts
|
|
61
56
|
/**
|
|
62
57
|
* Interactive CLI tool to generate .env files with schema validation
|
|
63
58
|
* @param model - Environment model instance
|
|
@@ -69,5 +64,4 @@ declare function prompt(model: EnvModel, options?: PromptEnvInteractiveOptions):
|
|
|
69
64
|
* @param options - Configuration options including schemas and interactive settings
|
|
70
65
|
*/
|
|
71
66
|
declare function prompt(options: PromptEnvOptions): Promise<void>;
|
|
72
|
-
//#endregion
|
|
73
67
|
export { PromptEnvOptions as n, prompt as t };
|
|
@@ -1,17 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { i as EnvVarSchema, n as Preprocessor, t as BooleanMap } from "./BooleanMap-B7iiI-eg.js";
|
|
2
|
+
import { a as EnumEnvVarSchema, l as EnvVarSchemaBase, r as NumberEnvVarSchema, s as BooleanEnvVarSchema, t as StringEnvVarSchema } from "./StringEnvVarSchema-CymYIek7.js";
|
|
3
3
|
import { ZodTypeAny } from "zod";
|
|
4
4
|
import { $ZodType } from "zod/v4/core";
|
|
5
5
|
import { AnySchema } from "joi";
|
|
6
6
|
import { Struct } from "superstruct";
|
|
7
|
-
//#region ../models/src/schemas.d.ts
|
|
8
7
|
type JoiSchema = AnySchema;
|
|
9
8
|
type ZodV3Schema = ZodTypeAny;
|
|
10
9
|
type ZodV4Schema = $ZodType;
|
|
11
10
|
type SuperstructSchema = Struct<any, any>;
|
|
12
11
|
type Schema = ZodV3Schema | ZodV4Schema | JoiSchema | SuperstructSchema | EnvVarSchema;
|
|
13
|
-
//#endregion
|
|
14
|
-
//#region ../models/src/types.d.ts
|
|
15
12
|
/**
|
|
16
13
|
* Supported schema types - local definition to avoid circular dependencies
|
|
17
14
|
*/
|
|
@@ -64,8 +61,6 @@ type Simplify<T> = { [K in keyof T]: T[K]; } & {};
|
|
|
64
61
|
* Uses Simplify to flatten the type display in IDEs
|
|
65
62
|
*/
|
|
66
63
|
type InferEnvType<T extends Record<string, SupportedSchema>> = Simplify<{ [K in keyof T]: InferOptional<T[K]> extends true ? InferSchemaType<T[K]> | undefined : InferSchemaType<T[K]>; }>;
|
|
67
|
-
//#endregion
|
|
68
|
-
//#region ../models/src/EnvModelOptions.d.ts
|
|
69
64
|
type PreprocessorToggle<T> = Preprocessor<T> | boolean | undefined;
|
|
70
65
|
interface Preprocessors {
|
|
71
66
|
/**
|
|
@@ -102,8 +97,6 @@ interface EnvModelOptions<T extends Record<string, SupportedSchema> = Record<str
|
|
|
102
97
|
*/
|
|
103
98
|
preprocess?: true | false | Partial<Preprocessors>;
|
|
104
99
|
}
|
|
105
|
-
//#endregion
|
|
106
|
-
//#region ../models/src/EnvModel.d.ts
|
|
107
100
|
/**
|
|
108
101
|
* Environment variable specification container
|
|
109
102
|
* Encapsulates schemas and preprocessor configuration
|
|
@@ -129,8 +122,6 @@ declare class EnvModel<T extends Record<string, SupportedSchema> = Record<string
|
|
|
129
122
|
*/
|
|
130
123
|
private resolvePreprocessors;
|
|
131
124
|
}
|
|
132
|
-
//#endregion
|
|
133
|
-
//#region ../models/src/model.d.ts
|
|
134
125
|
/**
|
|
135
126
|
* Create an environment variable model
|
|
136
127
|
*
|
|
@@ -154,8 +145,6 @@ declare class EnvModel<T extends Record<string, SupportedSchema> = Record<string
|
|
|
154
145
|
* ```
|
|
155
146
|
*/
|
|
156
147
|
declare function define<T extends Record<string, SupportedSchema>>(options: EnvModelOptions<T>): EnvModel<T>;
|
|
157
|
-
//#endregion
|
|
158
|
-
//#region ../models/src/resolve.d.ts
|
|
159
148
|
/**
|
|
160
149
|
* Resolve any supported schema to a EnvVarSchema.
|
|
161
150
|
*
|
|
@@ -182,5 +171,4 @@ declare function resolveSchema(schema: Schema): EnvVarSchema;
|
|
|
182
171
|
* @returns Record mapping env var names to EnvVarSchema instances
|
|
183
172
|
*/
|
|
184
173
|
declare function resolveSchemas(schemas: Record<string, Schema>): Record<string, EnvVarSchema>;
|
|
185
|
-
//#endregion
|
|
186
174
|
export { EnvModelOptions as a, SupportedSchema as c, EnvModel as i, resolveSchemas as n, InferEnvType as o, define as r, InferSchemaType as s, resolveSchema as t };
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import { a as EnvModelOptions, c as SupportedSchema, i as EnvModel, o as InferEnvType } from "./index-
|
|
2
|
-
//#region ../parse/ParseEnvOptions.d.ts
|
|
1
|
+
import { a as EnvModelOptions, c as SupportedSchema, i as EnvModel, o as InferEnvType } from "./index-D8rUvOZ5.cjs";
|
|
3
2
|
type ParseEnvOptions<T extends Record<string, SupportedSchema> = Record<string, SupportedSchema>> = EnvModelOptions<T>;
|
|
4
|
-
//#endregion
|
|
5
|
-
//#region ../parse/src/parse.d.ts
|
|
6
3
|
/**
|
|
7
4
|
* Parse and validate environment variables from a source object
|
|
8
5
|
* Does NOT mutate process.env
|
|
@@ -23,5 +20,4 @@ declare function parse<T extends Record<string, SupportedSchema>>(source: Record
|
|
|
23
20
|
* @throws EnvParseError if any validation issues occur
|
|
24
21
|
*/
|
|
25
22
|
declare function parse<T extends Record<string, SupportedSchema>>(source: Record<string, string> | NodeJS.ProcessEnv, options: ParseEnvOptions<T>): InferEnvType<T>;
|
|
26
|
-
//#endregion
|
|
27
23
|
export { ParseEnvOptions as n, parse as t };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
3
|
-
import {
|
|
1
|
+
import { a as EnvModelOptions, i as EnvModel } from "./index-D8rUvOZ5.cjs";
|
|
2
|
+
import { t as EnvChannelOptions } from "./EnvChannelOptions-BxsZpwjq.cjs";
|
|
3
|
+
import { t as EnvChannel } from "./EnvChannel-gV-4XlM8.cjs";
|
|
4
4
|
import { Formatter } from "picocolors/types";
|
|
5
|
-
//#region ../prompt/src/options/PromptEnvInteractiveOptions.d.ts
|
|
6
5
|
/**
|
|
7
6
|
* Configuration options for the prompt function
|
|
8
7
|
*/
|
|
@@ -50,14 +49,10 @@ type PromptEnvInteractiveOptions = {
|
|
|
50
49
|
*/
|
|
51
50
|
theme?: Formatter;
|
|
52
51
|
};
|
|
53
|
-
//#endregion
|
|
54
|
-
//#region ../prompt/src/options/PromptEnvOptions.d.ts
|
|
55
52
|
/**
|
|
56
53
|
* Configuration options for the prompt function
|
|
57
54
|
*/
|
|
58
55
|
type PromptEnvOptions = EnvModelOptions & PromptEnvInteractiveOptions;
|
|
59
|
-
//#endregion
|
|
60
|
-
//#region ../prompt/src/prompt.d.ts
|
|
61
56
|
/**
|
|
62
57
|
* Interactive CLI tool to generate .env files with schema validation
|
|
63
58
|
* @param model - Environment model instance
|
|
@@ -69,5 +64,4 @@ declare function prompt(model: EnvModel, options?: PromptEnvInteractiveOptions):
|
|
|
69
64
|
* @param options - Configuration options including schemas and interactive settings
|
|
70
65
|
*/
|
|
71
66
|
declare function prompt(options: PromptEnvOptions): Promise<void>;
|
|
72
|
-
//#endregion
|
|
73
67
|
export { PromptEnvOptions as n, prompt as t };
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import { a as EnvModelOptions, c as SupportedSchema, i as EnvModel, o as InferEnvType } from "./index-
|
|
2
|
-
//#region ../parse/ParseEnvOptions.d.ts
|
|
1
|
+
import { a as EnvModelOptions, c as SupportedSchema, i as EnvModel, o as InferEnvType } from "./index-BwID8Va2.js";
|
|
3
2
|
type ParseEnvOptions<T extends Record<string, SupportedSchema> = Record<string, SupportedSchema>> = EnvModelOptions<T>;
|
|
4
|
-
//#endregion
|
|
5
|
-
//#region ../parse/src/parse.d.ts
|
|
6
3
|
/**
|
|
7
4
|
* Parse and validate environment variables from a source object
|
|
8
5
|
* Does NOT mutate process.env
|
|
@@ -23,5 +20,4 @@ declare function parse<T extends Record<string, SupportedSchema>>(source: Record
|
|
|
23
20
|
* @throws EnvParseError if any validation issues occur
|
|
24
21
|
*/
|
|
25
22
|
declare function parse<T extends Record<string, SupportedSchema>>(source: Record<string, string> | NodeJS.ProcessEnv, options: ParseEnvOptions<T>): InferEnvType<T>;
|
|
26
|
-
//#endregion
|
|
27
23
|
export { ParseEnvOptions as n, parse as t };
|
|
@@ -1,17 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { i as EnvVarSchema, n as Preprocessor, t as BooleanMap } from "./BooleanMap-D74MMuAh.cjs";
|
|
2
|
+
import { a as EnumEnvVarSchema, l as EnvVarSchemaBase, r as NumberEnvVarSchema, s as BooleanEnvVarSchema, t as StringEnvVarSchema } from "./StringEnvVarSchema-CymYIek7.cjs";
|
|
3
3
|
import { AnySchema } from "joi";
|
|
4
4
|
import { ZodTypeAny } from "zod";
|
|
5
5
|
import { $ZodType } from "zod/v4/core";
|
|
6
6
|
import { Struct } from "superstruct";
|
|
7
|
-
//#region ../models/src/schemas.d.ts
|
|
8
7
|
type JoiSchema = AnySchema;
|
|
9
8
|
type ZodV3Schema = ZodTypeAny;
|
|
10
9
|
type ZodV4Schema = $ZodType;
|
|
11
10
|
type SuperstructSchema = Struct<any, any>;
|
|
12
11
|
type Schema = ZodV3Schema | ZodV4Schema | JoiSchema | SuperstructSchema | EnvVarSchema;
|
|
13
|
-
//#endregion
|
|
14
|
-
//#region ../models/src/types.d.ts
|
|
15
12
|
/**
|
|
16
13
|
* Supported schema types - local definition to avoid circular dependencies
|
|
17
14
|
*/
|
|
@@ -64,8 +61,6 @@ type Simplify<T> = { [K in keyof T]: T[K]; } & {};
|
|
|
64
61
|
* Uses Simplify to flatten the type display in IDEs
|
|
65
62
|
*/
|
|
66
63
|
type InferEnvType<T extends Record<string, SupportedSchema>> = Simplify<{ [K in keyof T]: InferOptional<T[K]> extends true ? InferSchemaType<T[K]> | undefined : InferSchemaType<T[K]>; }>;
|
|
67
|
-
//#endregion
|
|
68
|
-
//#region ../models/src/EnvModelOptions.d.ts
|
|
69
64
|
type PreprocessorToggle<T> = Preprocessor<T> | boolean | undefined;
|
|
70
65
|
interface Preprocessors {
|
|
71
66
|
/**
|
|
@@ -102,8 +97,6 @@ interface EnvModelOptions<T extends Record<string, SupportedSchema> = Record<str
|
|
|
102
97
|
*/
|
|
103
98
|
preprocess?: true | false | Partial<Preprocessors>;
|
|
104
99
|
}
|
|
105
|
-
//#endregion
|
|
106
|
-
//#region ../models/src/EnvModel.d.ts
|
|
107
100
|
/**
|
|
108
101
|
* Environment variable specification container
|
|
109
102
|
* Encapsulates schemas and preprocessor configuration
|
|
@@ -129,8 +122,6 @@ declare class EnvModel<T extends Record<string, SupportedSchema> = Record<string
|
|
|
129
122
|
*/
|
|
130
123
|
private resolvePreprocessors;
|
|
131
124
|
}
|
|
132
|
-
//#endregion
|
|
133
|
-
//#region ../models/src/model.d.ts
|
|
134
125
|
/**
|
|
135
126
|
* Create an environment variable model
|
|
136
127
|
*
|
|
@@ -154,8 +145,6 @@ declare class EnvModel<T extends Record<string, SupportedSchema> = Record<string
|
|
|
154
145
|
* ```
|
|
155
146
|
*/
|
|
156
147
|
declare function define<T extends Record<string, SupportedSchema>>(options: EnvModelOptions<T>): EnvModel<T>;
|
|
157
|
-
//#endregion
|
|
158
|
-
//#region ../models/src/resolve.d.ts
|
|
159
148
|
/**
|
|
160
149
|
* Resolve any supported schema to a EnvVarSchema.
|
|
161
150
|
*
|
|
@@ -182,5 +171,4 @@ declare function resolveSchema(schema: Schema): EnvVarSchema;
|
|
|
182
171
|
* @returns Record mapping env var names to EnvVarSchema instances
|
|
183
172
|
*/
|
|
184
173
|
declare function resolveSchemas(schemas: Record<string, Schema>): Record<string, EnvVarSchema>;
|
|
185
|
-
//#endregion
|
|
186
174
|
export { EnvModelOptions as a, SupportedSchema as c, EnvModel as i, resolveSchemas as n, InferEnvType as o, define as r, InferSchemaType as s, resolveSchema as t };
|
package/dist/index.cjs
CHANGED
|
@@ -2,26 +2,25 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_src = require("./src-
|
|
6
|
-
const require_schema = require("./schema-
|
|
7
|
-
const require_src$1 = require("./src-
|
|
8
|
-
const require_src$2 = require("./src-
|
|
9
|
-
const require_src$3 = require("./src-DefPAYdi.cjs");
|
|
10
|
-
const require_src$4 = require("./src-DB0Har0j.cjs");
|
|
5
|
+
const require_src = require("./src-B_wC-Ff0.cjs");
|
|
6
|
+
const require_schema = require("./schema-CKx-cny7.cjs");
|
|
7
|
+
const require_src$1 = require("./src-CILRt8pX.cjs");
|
|
8
|
+
const require_src$2 = require("./src-C57GsLLI.cjs");
|
|
11
9
|
const require_vars = require("./vars.cjs");
|
|
12
|
-
|
|
10
|
+
const require_src$3 = require("./src-BgwAyw-w.cjs");
|
|
11
|
+
const require_src$4 = require("./src-B5LvPydi.cjs");
|
|
12
|
+
// src/index.ts
|
|
13
13
|
var src_default = {
|
|
14
|
-
parse: require_src
|
|
15
|
-
prompt: require_src$
|
|
16
|
-
define: require_src$
|
|
14
|
+
parse: require_src.parse,
|
|
15
|
+
prompt: require_src$1.prompt,
|
|
16
|
+
define: require_src$2.define
|
|
17
17
|
};
|
|
18
|
-
//#endregion
|
|
19
18
|
exports.default = src_default;
|
|
20
|
-
exports.define = require_src$
|
|
21
|
-
exports.parse = require_src
|
|
22
|
-
exports.preprocessors = require_src.preprocessors;
|
|
23
|
-
exports.processors = require_src.processors;
|
|
24
|
-
exports.prompt = require_src$
|
|
19
|
+
exports.define = require_src$2.define;
|
|
20
|
+
exports.parse = require_src.parse;
|
|
21
|
+
exports.preprocessors = require_src$3.preprocessors;
|
|
22
|
+
exports.processors = require_src$3.processors;
|
|
23
|
+
exports.prompt = require_src$1.prompt;
|
|
25
24
|
exports.s = require_schema.s;
|
|
26
25
|
exports.schema = require_schema.schema;
|
|
27
26
|
Object.defineProperty(exports, "schemas", {
|
package/dist/index.d.cts
CHANGED
|
@@ -1,19 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { r as define } from "./index-
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { $ as KAFKA_BROKERS, $t as DATABASE_URL, A as openaiTimeout, An as AWS_SECRET_ACCESS_KEY, At as gelSecretKey, B as nodeEnv, Bn as apiBaseUrl, Bt as DOCKER_REGISTRY_URL, C as OPENAI_PROJECT_ID, Cn as azureServiceBusConnectionString, Ct as gelClientTlsSecurity, D as openaiModel, Dn as AWS_ACCESS_KEY_ID, Dt as gelInstance, E as openaiBaseUrl, En as azureStorageConnectionString, Et as gelHost, F as oauthClientId, Fn as awsSecretAccessKey, Ft as ELASTICSEARCH_USERNAME, G as SENTRY_DSN, Gt as DATABASE_HOST, H as JAEGER_ENDPOINT, Hn as apiTimeout, Ht as dockerRegistryPassword, I as oauthClientSecret, In as awsSqsQueueUrl, It as elasticsearchPassword, J as newRelicLicenseKey, Jt as DATABASE_POOL_SIZE, K as datadogApiKey, Kt as DATABASE_NAME, L as oauthRedirectUri, Ln as API_BASE_URL, Lt as elasticsearchUrl, M as OAUTH_CLIENT_SECRET, Mn as awsAccessKeyId, Mt as gelUser, N as OAUTH_REDIRECT_URI, Nn as awsRegion, Nt as ELASTICSEARCH_PASSWORD, O as openaiOrganizationId, On as AWS_REGION, Ot as gelPassword, P as OAUTH_SCOPE, Pn as awsS3BucketName, Pt as ELASTICSEARCH_URL, Q as logLevel, Qt as DATABASE_TIMEOUT, R as oauthScope, Rn as API_KEY, Rt as elasticsearchUsername, S as OPENAI_ORGANIZATION_ID, Sn as azureEventHubConnectionString, St as gelBranch, T as openaiApiKey, Tn as azureStorageAccountName, Tt as gelDsn, U as NEW_RELIC_LICENSE_KEY, Ut as dockerRegistryUrl, V as DATADOG_API_KEY, Vn as apiKey, Vt as DOCKER_REGISTRY_USERNAME, W as PROMETHEUS_PORT, Wt as dockerRegistryUsername, X as sentryDsn, Xt as DATABASE_SCHEMA, Y as prometheusPort, Yt as DATABASE_PORT, Z as LOG_LEVEL, Zt as DATABASE_SSL, _ as RABBITMQ_URL, _n as AZURE_EVENT_HUB_CONNECTION_STRING, _t as GEL_PASSWORD, a as REDIS_TLS, an as databasePort, at as JWT_SECRET, b as OPENAI_BASE_URL, bn as AZURE_STORAGE_ACCOUNT_NAME, bt as GEL_TLS_CA_FILE, c as REDIS_USERNAME, cn as databaseTimeout, ct as jwtSecret, d as redisPassword, dn as CORS_ORIGIN, dt as GEL_BRANCH, en as DATABASE_USERNAME, et as KAFKA_CLIENT_ID, f as redisPort, fn as corsOrigin, ft as GEL_CLIENT_TLS_SECURITY, g as redisUsername, gn as port, gt as GEL_INSTANCE, h as redisUrl, hn as debug, ht as GEL_HOST, i as REDIS_PORT, in as databasePoolSize, it as JWT_REFRESH_TOKEN_EXPIRES_IN, j as OAUTH_CLIENT_ID, jn as AWS_SQS_QUEUE_URL, jt as gelTlsCaFile, k as openaiProjectId, kn as AWS_S3_BUCKET_NAME, kt as gelPort, l as redisDb, ln as databaseUrl, lt as HOST, m as redisTlsCaCertPath, mn as PORT, mt as GEL_DSN, n as REDIS_HOST, nn as databaseName, nt as kafkaClientId, o as REDIS_TLS_CA_CERT_PATH, on as databaseSchema, ot as jwtAccessTokenExpiresIn, p as redisTls, pn as DEBUG, pt as GEL_CREDENTIALS_FILE, q as jaegerEndpoint, qt as DATABASE_PASSWORD, r as REDIS_PASSWORD, rn as databasePassword, rt as JWT_ACCESS_TOKEN_EXPIRES_IN, s as REDIS_URL, sn as databaseSsl, st as jwtRefreshTokenExpiresIn, t as REDIS_DB, tn as databaseHost, tt as kafkaBrokers, u as redisHost, un as databaseUsername, ut as host, v as rabbitmqUrl, vn as AZURE_SERVICE_BUS_CONNECTION_STRING, vt as GEL_PORT, w as OPENAI_TIMEOUT, wn as azureStorageAccountKey, wt as gelCredentialsFile, x as OPENAI_MODEL, xn as AZURE_STORAGE_CONNECTION_STRING, xt as GEL_USER, y as OPENAI_API_KEY, yn as AZURE_STORAGE_ACCOUNT_KEY, yt as GEL_SECRET_KEY, z as NODE_ENV, zn as API_TIMEOUT, zt as DOCKER_REGISTRY_PASSWORD } from "./redis-
|
|
7
|
-
import { t as
|
|
1
|
+
import { t as parse } from "./index-C7wTQSSV.cjs";
|
|
2
|
+
import { t as prompt } from "./index-CgeWhoQX.cjs";
|
|
3
|
+
import { r as define } from "./index-D8rUvOZ5.cjs";
|
|
4
|
+
import { t as vars } from "./vars-BLXbjxcm.cjs";
|
|
5
|
+
import { n as schema, t as s } from "./schema-DBTZcufP.cjs";
|
|
6
|
+
import { $ as KAFKA_BROKERS, $t as DATABASE_URL, A as openaiTimeout, An as AWS_SECRET_ACCESS_KEY, At as gelSecretKey, B as nodeEnv, Bn as apiBaseUrl, Bt as DOCKER_REGISTRY_URL, C as OPENAI_PROJECT_ID, Cn as azureServiceBusConnectionString, Ct as gelClientTlsSecurity, D as openaiModel, Dn as AWS_ACCESS_KEY_ID, Dt as gelInstance, E as openaiBaseUrl, En as azureStorageConnectionString, Et as gelHost, F as oauthClientId, Fn as awsSecretAccessKey, Ft as ELASTICSEARCH_USERNAME, G as SENTRY_DSN, Gt as DATABASE_HOST, H as JAEGER_ENDPOINT, Hn as apiTimeout, Ht as dockerRegistryPassword, I as oauthClientSecret, In as awsSqsQueueUrl, It as elasticsearchPassword, J as newRelicLicenseKey, Jt as DATABASE_POOL_SIZE, K as datadogApiKey, Kt as DATABASE_NAME, L as oauthRedirectUri, Ln as API_BASE_URL, Lt as elasticsearchUrl, M as OAUTH_CLIENT_SECRET, Mn as awsAccessKeyId, Mt as gelUser, N as OAUTH_REDIRECT_URI, Nn as awsRegion, Nt as ELASTICSEARCH_PASSWORD, O as openaiOrganizationId, On as AWS_REGION, Ot as gelPassword, P as OAUTH_SCOPE, Pn as awsS3BucketName, Pt as ELASTICSEARCH_URL, Q as logLevel, Qt as DATABASE_TIMEOUT, R as oauthScope, Rn as API_KEY, Rt as elasticsearchUsername, S as OPENAI_ORGANIZATION_ID, Sn as azureEventHubConnectionString, St as gelBranch, T as openaiApiKey, Tn as azureStorageAccountName, Tt as gelDsn, U as NEW_RELIC_LICENSE_KEY, Ut as dockerRegistryUrl, V as DATADOG_API_KEY, Vn as apiKey, Vt as DOCKER_REGISTRY_USERNAME, W as PROMETHEUS_PORT, Wt as dockerRegistryUsername, X as sentryDsn, Xt as DATABASE_SCHEMA, Y as prometheusPort, Yt as DATABASE_PORT, Z as LOG_LEVEL, Zt as DATABASE_SSL, _ as RABBITMQ_URL, _n as AZURE_EVENT_HUB_CONNECTION_STRING, _t as GEL_PASSWORD, a as REDIS_TLS, an as databasePort, at as JWT_SECRET, b as OPENAI_BASE_URL, bn as AZURE_STORAGE_ACCOUNT_NAME, bt as GEL_TLS_CA_FILE, c as REDIS_USERNAME, cn as databaseTimeout, ct as jwtSecret, d as redisPassword, dn as CORS_ORIGIN, dt as GEL_BRANCH, en as DATABASE_USERNAME, et as KAFKA_CLIENT_ID, f as redisPort, fn as corsOrigin, ft as GEL_CLIENT_TLS_SECURITY, g as redisUsername, gn as port, gt as GEL_INSTANCE, h as redisUrl, hn as debug, ht as GEL_HOST, i as REDIS_PORT, in as databasePoolSize, it as JWT_REFRESH_TOKEN_EXPIRES_IN, j as OAUTH_CLIENT_ID, jn as AWS_SQS_QUEUE_URL, jt as gelTlsCaFile, k as openaiProjectId, kn as AWS_S3_BUCKET_NAME, kt as gelPort, l as redisDb, ln as databaseUrl, lt as HOST, m as redisTlsCaCertPath, mn as PORT, mt as GEL_DSN, n as REDIS_HOST, nn as databaseName, nt as kafkaClientId, o as REDIS_TLS_CA_CERT_PATH, on as databaseSchema, ot as jwtAccessTokenExpiresIn, p as redisTls, pn as DEBUG, pt as GEL_CREDENTIALS_FILE, q as jaegerEndpoint, qt as DATABASE_PASSWORD, r as REDIS_PASSWORD, rn as databasePassword, rt as JWT_ACCESS_TOKEN_EXPIRES_IN, s as REDIS_URL, sn as databaseSsl, st as jwtRefreshTokenExpiresIn, t as REDIS_DB, tn as databaseHost, tt as kafkaBrokers, u as redisHost, un as databaseUsername, ut as host, v as rabbitmqUrl, vn as AZURE_SERVICE_BUS_CONNECTION_STRING, vt as GEL_PORT, w as OPENAI_TIMEOUT, wn as azureStorageAccountKey, wt as gelCredentialsFile, x as OPENAI_MODEL, xn as AZURE_STORAGE_CONNECTION_STRING, xt as GEL_USER, y as OPENAI_API_KEY, yn as AZURE_STORAGE_ACCOUNT_KEY, yt as GEL_SECRET_KEY, z as NODE_ENV, zn as API_TIMEOUT, zt as DOCKER_REGISTRY_PASSWORD } from "./redis-BSCXEwN0.cjs";
|
|
7
|
+
import { n as processors, t as preprocessors } from "./preprocessors-BRPHeq3e.cjs";
|
|
8
8
|
declare namespace index_d_exports {
|
|
9
9
|
export { API_BASE_URL, API_KEY, API_TIMEOUT, AWS_ACCESS_KEY_ID, AWS_REGION, AWS_S3_BUCKET_NAME, AWS_SECRET_ACCESS_KEY, AWS_SQS_QUEUE_URL, AZURE_EVENT_HUB_CONNECTION_STRING, AZURE_SERVICE_BUS_CONNECTION_STRING, AZURE_STORAGE_ACCOUNT_KEY, AZURE_STORAGE_ACCOUNT_NAME, AZURE_STORAGE_CONNECTION_STRING, CORS_ORIGIN, DATABASE_HOST, DATABASE_NAME, DATABASE_PASSWORD, DATABASE_POOL_SIZE, DATABASE_PORT, DATABASE_SCHEMA, DATABASE_SSL, DATABASE_TIMEOUT, DATABASE_URL, DATABASE_USERNAME, DATADOG_API_KEY, DEBUG, DOCKER_REGISTRY_PASSWORD, DOCKER_REGISTRY_URL, DOCKER_REGISTRY_USERNAME, ELASTICSEARCH_PASSWORD, ELASTICSEARCH_URL, ELASTICSEARCH_USERNAME, GEL_BRANCH, GEL_CLIENT_TLS_SECURITY, GEL_CREDENTIALS_FILE, GEL_DSN, GEL_HOST, GEL_INSTANCE, GEL_PASSWORD, GEL_PORT, GEL_SECRET_KEY, GEL_TLS_CA_FILE, GEL_USER, HOST, JAEGER_ENDPOINT, JWT_ACCESS_TOKEN_EXPIRES_IN, JWT_REFRESH_TOKEN_EXPIRES_IN, JWT_SECRET, KAFKA_BROKERS, KAFKA_CLIENT_ID, LOG_LEVEL, NEW_RELIC_LICENSE_KEY, NODE_ENV, OAUTH_CLIENT_ID, OAUTH_CLIENT_SECRET, OAUTH_REDIRECT_URI, OAUTH_SCOPE, OPENAI_API_KEY, OPENAI_BASE_URL, OPENAI_MODEL, OPENAI_ORGANIZATION_ID, OPENAI_PROJECT_ID, OPENAI_TIMEOUT, PORT, PROMETHEUS_PORT, RABBITMQ_URL, REDIS_DB, REDIS_HOST, REDIS_PASSWORD, REDIS_PORT, REDIS_TLS, REDIS_TLS_CA_CERT_PATH, REDIS_URL, REDIS_USERNAME, SENTRY_DSN, apiBaseUrl, apiKey, apiTimeout, awsAccessKeyId, awsRegion, awsS3BucketName, awsSecretAccessKey, awsSqsQueueUrl, azureEventHubConnectionString, azureServiceBusConnectionString, azureStorageAccountKey, azureStorageAccountName, azureStorageConnectionString, corsOrigin, databaseHost, databaseName, databasePassword, databasePoolSize, databasePort, databaseSchema, databaseSsl, databaseTimeout, databaseUrl, databaseUsername, datadogApiKey, debug, dockerRegistryPassword, dockerRegistryUrl, dockerRegistryUsername, elasticsearchPassword, elasticsearchUrl, elasticsearchUsername, gelBranch, gelClientTlsSecurity, gelCredentialsFile, gelDsn, gelHost, gelInstance, gelPassword, gelPort, gelSecretKey, gelTlsCaFile, gelUser, host, jaegerEndpoint, jwtAccessTokenExpiresIn, jwtRefreshTokenExpiresIn, jwtSecret, kafkaBrokers, kafkaClientId, logLevel, newRelicLicenseKey, nodeEnv, oauthClientId, oauthClientSecret, oauthRedirectUri, oauthScope, openaiApiKey, openaiBaseUrl, openaiModel, openaiOrganizationId, openaiProjectId, openaiTimeout, port, prometheusPort, rabbitmqUrl, redisDb, redisHost, redisPassword, redisPort, redisTls, redisTlsCaCertPath, redisUrl, redisUsername, sentryDsn };
|
|
10
10
|
}
|
|
11
|
-
//#endregion
|
|
12
|
-
//#region src/index.d.ts
|
|
13
11
|
declare const _default: {
|
|
14
12
|
parse: typeof parse;
|
|
15
13
|
prompt: typeof prompt;
|
|
16
14
|
define: typeof define;
|
|
17
15
|
};
|
|
18
|
-
//#endregion
|
|
19
16
|
export { _default as default, define, parse, preprocessors, processors, prompt, s, schema, index_d_exports as schemas, vars };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,19 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { r as define } from "./index-
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { $ as KAFKA_BROKERS, $t as DATABASE_URL, A as openaiTimeout, An as AWS_SECRET_ACCESS_KEY, At as gelSecretKey, B as nodeEnv, Bn as apiBaseUrl, Bt as DOCKER_REGISTRY_URL, C as OPENAI_PROJECT_ID, Cn as azureServiceBusConnectionString, Ct as gelClientTlsSecurity, D as openaiModel, Dn as AWS_ACCESS_KEY_ID, Dt as gelInstance, E as openaiBaseUrl, En as azureStorageConnectionString, Et as gelHost, F as oauthClientId, Fn as awsSecretAccessKey, Ft as ELASTICSEARCH_USERNAME, G as SENTRY_DSN, Gt as DATABASE_HOST, H as JAEGER_ENDPOINT, Hn as apiTimeout, Ht as dockerRegistryPassword, I as oauthClientSecret, In as awsSqsQueueUrl, It as elasticsearchPassword, J as newRelicLicenseKey, Jt as DATABASE_POOL_SIZE, K as datadogApiKey, Kt as DATABASE_NAME, L as oauthRedirectUri, Ln as API_BASE_URL, Lt as elasticsearchUrl, M as OAUTH_CLIENT_SECRET, Mn as awsAccessKeyId, Mt as gelUser, N as OAUTH_REDIRECT_URI, Nn as awsRegion, Nt as ELASTICSEARCH_PASSWORD, O as openaiOrganizationId, On as AWS_REGION, Ot as gelPassword, P as OAUTH_SCOPE, Pn as awsS3BucketName, Pt as ELASTICSEARCH_URL, Q as logLevel, Qt as DATABASE_TIMEOUT, R as oauthScope, Rn as API_KEY, Rt as elasticsearchUsername, S as OPENAI_ORGANIZATION_ID, Sn as azureEventHubConnectionString, St as gelBranch, T as openaiApiKey, Tn as azureStorageAccountName, Tt as gelDsn, U as NEW_RELIC_LICENSE_KEY, Ut as dockerRegistryUrl, V as DATADOG_API_KEY, Vn as apiKey, Vt as DOCKER_REGISTRY_USERNAME, W as PROMETHEUS_PORT, Wt as dockerRegistryUsername, X as sentryDsn, Xt as DATABASE_SCHEMA, Y as prometheusPort, Yt as DATABASE_PORT, Z as LOG_LEVEL, Zt as DATABASE_SSL, _ as RABBITMQ_URL, _n as AZURE_EVENT_HUB_CONNECTION_STRING, _t as GEL_PASSWORD, a as REDIS_TLS, an as databasePort, at as JWT_SECRET, b as OPENAI_BASE_URL, bn as AZURE_STORAGE_ACCOUNT_NAME, bt as GEL_TLS_CA_FILE, c as REDIS_USERNAME, cn as databaseTimeout, ct as jwtSecret, d as redisPassword, dn as CORS_ORIGIN, dt as GEL_BRANCH, en as DATABASE_USERNAME, et as KAFKA_CLIENT_ID, f as redisPort, fn as corsOrigin, ft as GEL_CLIENT_TLS_SECURITY, g as redisUsername, gn as port, gt as GEL_INSTANCE, h as redisUrl, hn as debug, ht as GEL_HOST, i as REDIS_PORT, in as databasePoolSize, it as JWT_REFRESH_TOKEN_EXPIRES_IN, j as OAUTH_CLIENT_ID, jn as AWS_SQS_QUEUE_URL, jt as gelTlsCaFile, k as openaiProjectId, kn as AWS_S3_BUCKET_NAME, kt as gelPort, l as redisDb, ln as databaseUrl, lt as HOST, m as redisTlsCaCertPath, mn as PORT, mt as GEL_DSN, n as REDIS_HOST, nn as databaseName, nt as kafkaClientId, o as REDIS_TLS_CA_CERT_PATH, on as databaseSchema, ot as jwtAccessTokenExpiresIn, p as redisTls, pn as DEBUG, pt as GEL_CREDENTIALS_FILE, q as jaegerEndpoint, qt as DATABASE_PASSWORD, r as REDIS_PASSWORD, rn as databasePassword, rt as JWT_ACCESS_TOKEN_EXPIRES_IN, s as REDIS_URL, sn as databaseSsl, st as jwtRefreshTokenExpiresIn, t as REDIS_DB, tn as databaseHost, tt as kafkaBrokers, u as redisHost, un as databaseUsername, ut as host, v as rabbitmqUrl, vn as AZURE_SERVICE_BUS_CONNECTION_STRING, vt as GEL_PORT, w as OPENAI_TIMEOUT, wn as azureStorageAccountKey, wt as gelCredentialsFile, x as OPENAI_MODEL, xn as AZURE_STORAGE_CONNECTION_STRING, xt as GEL_USER, y as OPENAI_API_KEY, yn as AZURE_STORAGE_ACCOUNT_KEY, yt as GEL_SECRET_KEY, z as NODE_ENV, zn as API_TIMEOUT, zt as DOCKER_REGISTRY_PASSWORD } from "./redis-
|
|
7
|
-
import { t as
|
|
1
|
+
import { t as parse } from "./index-ClGSiwuc.js";
|
|
2
|
+
import { t as prompt } from "./index-B-GXzdUQ.js";
|
|
3
|
+
import { r as define } from "./index-BwID8Va2.js";
|
|
4
|
+
import { t as vars } from "./vars-XT7wuxpb.js";
|
|
5
|
+
import { n as schema, t as s } from "./schema-ChcxJMuu.js";
|
|
6
|
+
import { $ as KAFKA_BROKERS, $t as DATABASE_URL, A as openaiTimeout, An as AWS_SECRET_ACCESS_KEY, At as gelSecretKey, B as nodeEnv, Bn as apiBaseUrl, Bt as DOCKER_REGISTRY_URL, C as OPENAI_PROJECT_ID, Cn as azureServiceBusConnectionString, Ct as gelClientTlsSecurity, D as openaiModel, Dn as AWS_ACCESS_KEY_ID, Dt as gelInstance, E as openaiBaseUrl, En as azureStorageConnectionString, Et as gelHost, F as oauthClientId, Fn as awsSecretAccessKey, Ft as ELASTICSEARCH_USERNAME, G as SENTRY_DSN, Gt as DATABASE_HOST, H as JAEGER_ENDPOINT, Hn as apiTimeout, Ht as dockerRegistryPassword, I as oauthClientSecret, In as awsSqsQueueUrl, It as elasticsearchPassword, J as newRelicLicenseKey, Jt as DATABASE_POOL_SIZE, K as datadogApiKey, Kt as DATABASE_NAME, L as oauthRedirectUri, Ln as API_BASE_URL, Lt as elasticsearchUrl, M as OAUTH_CLIENT_SECRET, Mn as awsAccessKeyId, Mt as gelUser, N as OAUTH_REDIRECT_URI, Nn as awsRegion, Nt as ELASTICSEARCH_PASSWORD, O as openaiOrganizationId, On as AWS_REGION, Ot as gelPassword, P as OAUTH_SCOPE, Pn as awsS3BucketName, Pt as ELASTICSEARCH_URL, Q as logLevel, Qt as DATABASE_TIMEOUT, R as oauthScope, Rn as API_KEY, Rt as elasticsearchUsername, S as OPENAI_ORGANIZATION_ID, Sn as azureEventHubConnectionString, St as gelBranch, T as openaiApiKey, Tn as azureStorageAccountName, Tt as gelDsn, U as NEW_RELIC_LICENSE_KEY, Ut as dockerRegistryUrl, V as DATADOG_API_KEY, Vn as apiKey, Vt as DOCKER_REGISTRY_USERNAME, W as PROMETHEUS_PORT, Wt as dockerRegistryUsername, X as sentryDsn, Xt as DATABASE_SCHEMA, Y as prometheusPort, Yt as DATABASE_PORT, Z as LOG_LEVEL, Zt as DATABASE_SSL, _ as RABBITMQ_URL, _n as AZURE_EVENT_HUB_CONNECTION_STRING, _t as GEL_PASSWORD, a as REDIS_TLS, an as databasePort, at as JWT_SECRET, b as OPENAI_BASE_URL, bn as AZURE_STORAGE_ACCOUNT_NAME, bt as GEL_TLS_CA_FILE, c as REDIS_USERNAME, cn as databaseTimeout, ct as jwtSecret, d as redisPassword, dn as CORS_ORIGIN, dt as GEL_BRANCH, en as DATABASE_USERNAME, et as KAFKA_CLIENT_ID, f as redisPort, fn as corsOrigin, ft as GEL_CLIENT_TLS_SECURITY, g as redisUsername, gn as port, gt as GEL_INSTANCE, h as redisUrl, hn as debug, ht as GEL_HOST, i as REDIS_PORT, in as databasePoolSize, it as JWT_REFRESH_TOKEN_EXPIRES_IN, j as OAUTH_CLIENT_ID, jn as AWS_SQS_QUEUE_URL, jt as gelTlsCaFile, k as openaiProjectId, kn as AWS_S3_BUCKET_NAME, kt as gelPort, l as redisDb, ln as databaseUrl, lt as HOST, m as redisTlsCaCertPath, mn as PORT, mt as GEL_DSN, n as REDIS_HOST, nn as databaseName, nt as kafkaClientId, o as REDIS_TLS_CA_CERT_PATH, on as databaseSchema, ot as jwtAccessTokenExpiresIn, p as redisTls, pn as DEBUG, pt as GEL_CREDENTIALS_FILE, q as jaegerEndpoint, qt as DATABASE_PASSWORD, r as REDIS_PASSWORD, rn as databasePassword, rt as JWT_ACCESS_TOKEN_EXPIRES_IN, s as REDIS_URL, sn as databaseSsl, st as jwtRefreshTokenExpiresIn, t as REDIS_DB, tn as databaseHost, tt as kafkaBrokers, u as redisHost, un as databaseUsername, ut as host, v as rabbitmqUrl, vn as AZURE_SERVICE_BUS_CONNECTION_STRING, vt as GEL_PORT, w as OPENAI_TIMEOUT, wn as azureStorageAccountKey, wt as gelCredentialsFile, x as OPENAI_MODEL, xn as AZURE_STORAGE_CONNECTION_STRING, xt as GEL_USER, y as OPENAI_API_KEY, yn as AZURE_STORAGE_ACCOUNT_KEY, yt as GEL_SECRET_KEY, z as NODE_ENV, zn as API_TIMEOUT, zt as DOCKER_REGISTRY_PASSWORD } from "./redis-n80OfSRZ.js";
|
|
7
|
+
import { n as processors, t as preprocessors } from "./preprocessors-BUAo8e4Q.js";
|
|
8
8
|
declare namespace index_d_exports {
|
|
9
9
|
export { API_BASE_URL, API_KEY, API_TIMEOUT, AWS_ACCESS_KEY_ID, AWS_REGION, AWS_S3_BUCKET_NAME, AWS_SECRET_ACCESS_KEY, AWS_SQS_QUEUE_URL, AZURE_EVENT_HUB_CONNECTION_STRING, AZURE_SERVICE_BUS_CONNECTION_STRING, AZURE_STORAGE_ACCOUNT_KEY, AZURE_STORAGE_ACCOUNT_NAME, AZURE_STORAGE_CONNECTION_STRING, CORS_ORIGIN, DATABASE_HOST, DATABASE_NAME, DATABASE_PASSWORD, DATABASE_POOL_SIZE, DATABASE_PORT, DATABASE_SCHEMA, DATABASE_SSL, DATABASE_TIMEOUT, DATABASE_URL, DATABASE_USERNAME, DATADOG_API_KEY, DEBUG, DOCKER_REGISTRY_PASSWORD, DOCKER_REGISTRY_URL, DOCKER_REGISTRY_USERNAME, ELASTICSEARCH_PASSWORD, ELASTICSEARCH_URL, ELASTICSEARCH_USERNAME, GEL_BRANCH, GEL_CLIENT_TLS_SECURITY, GEL_CREDENTIALS_FILE, GEL_DSN, GEL_HOST, GEL_INSTANCE, GEL_PASSWORD, GEL_PORT, GEL_SECRET_KEY, GEL_TLS_CA_FILE, GEL_USER, HOST, JAEGER_ENDPOINT, JWT_ACCESS_TOKEN_EXPIRES_IN, JWT_REFRESH_TOKEN_EXPIRES_IN, JWT_SECRET, KAFKA_BROKERS, KAFKA_CLIENT_ID, LOG_LEVEL, NEW_RELIC_LICENSE_KEY, NODE_ENV, OAUTH_CLIENT_ID, OAUTH_CLIENT_SECRET, OAUTH_REDIRECT_URI, OAUTH_SCOPE, OPENAI_API_KEY, OPENAI_BASE_URL, OPENAI_MODEL, OPENAI_ORGANIZATION_ID, OPENAI_PROJECT_ID, OPENAI_TIMEOUT, PORT, PROMETHEUS_PORT, RABBITMQ_URL, REDIS_DB, REDIS_HOST, REDIS_PASSWORD, REDIS_PORT, REDIS_TLS, REDIS_TLS_CA_CERT_PATH, REDIS_URL, REDIS_USERNAME, SENTRY_DSN, apiBaseUrl, apiKey, apiTimeout, awsAccessKeyId, awsRegion, awsS3BucketName, awsSecretAccessKey, awsSqsQueueUrl, azureEventHubConnectionString, azureServiceBusConnectionString, azureStorageAccountKey, azureStorageAccountName, azureStorageConnectionString, corsOrigin, databaseHost, databaseName, databasePassword, databasePoolSize, databasePort, databaseSchema, databaseSsl, databaseTimeout, databaseUrl, databaseUsername, datadogApiKey, debug, dockerRegistryPassword, dockerRegistryUrl, dockerRegistryUsername, elasticsearchPassword, elasticsearchUrl, elasticsearchUsername, gelBranch, gelClientTlsSecurity, gelCredentialsFile, gelDsn, gelHost, gelInstance, gelPassword, gelPort, gelSecretKey, gelTlsCaFile, gelUser, host, jaegerEndpoint, jwtAccessTokenExpiresIn, jwtRefreshTokenExpiresIn, jwtSecret, kafkaBrokers, kafkaClientId, logLevel, newRelicLicenseKey, nodeEnv, oauthClientId, oauthClientSecret, oauthRedirectUri, oauthScope, openaiApiKey, openaiBaseUrl, openaiModel, openaiOrganizationId, openaiProjectId, openaiTimeout, port, prometheusPort, rabbitmqUrl, redisDb, redisHost, redisPassword, redisPort, redisTls, redisTlsCaCertPath, redisUrl, redisUsername, sentryDsn };
|
|
10
10
|
}
|
|
11
|
-
//#endregion
|
|
12
|
-
//#region src/index.d.ts
|
|
13
11
|
declare const _default: {
|
|
14
12
|
parse: typeof parse;
|
|
15
13
|
prompt: typeof prompt;
|
|
16
14
|
define: typeof define;
|
|
17
15
|
};
|
|
18
|
-
//#endregion
|
|
19
16
|
export { _default as default, define, parse, preprocessors, processors, prompt, s, schema, index_d_exports as schemas, vars };
|
package/dist/index.js
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as schema, t as s } from "./schema-
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as prompt } from "./src-BK5HcxMN.js";
|
|
6
|
-
import { t as src_exports } from "./src-DvUBRBe3.js";
|
|
1
|
+
import { t as parse } from "./src-DCLHRLpS.js";
|
|
2
|
+
import { n as schema, t as s } from "./schema-BTv2xFHz.js";
|
|
3
|
+
import { t as prompt } from "./src-CkblS8lK.js";
|
|
4
|
+
import { t as define } from "./src-BAkjmW8v.js";
|
|
7
5
|
import vars from "./vars.js";
|
|
8
|
-
|
|
6
|
+
import { n as preprocessors, s as processors } from "./src-DtejQU3A.js";
|
|
7
|
+
import { t as src_exports } from "./src-BLZdiWZJ.js";
|
|
8
|
+
// src/index.ts
|
|
9
9
|
var src_default = {
|
|
10
10
|
parse,
|
|
11
11
|
prompt,
|
|
12
12
|
define
|
|
13
13
|
};
|
|
14
|
-
//#endregion
|
|
15
14
|
export { src_default as default, define, parse, preprocessors, processors, prompt, s, schema, src_exports as schemas, vars };
|
package/dist/model.cjs
CHANGED
|
@@ -2,10 +2,9 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_src = require("./src-
|
|
6
|
-
|
|
5
|
+
const require_src = require("./src-C57GsLLI.cjs");
|
|
6
|
+
// src/model.ts
|
|
7
7
|
var model_default = require_src.define;
|
|
8
|
-
//#endregion
|
|
9
8
|
exports.EnvModel = require_src.EnvModel;
|
|
10
9
|
exports.default = model_default;
|
|
11
10
|
exports.define = require_src.define;
|
package/dist/model.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as EnvModelOptions, c as SupportedSchema, i as EnvModel, n as resolveSchemas, o as InferEnvType, r as define, s as InferSchemaType, t as resolveSchema } from "./index-
|
|
1
|
+
import { a as EnvModelOptions, c as SupportedSchema, i as EnvModel, n as resolveSchemas, o as InferEnvType, r as define, s as InferSchemaType, t as resolveSchema } from "./index-D8rUvOZ5.cjs";
|
|
2
2
|
export { EnvModel, type EnvModelOptions, type InferEnvType, type InferSchemaType, type SupportedSchema, define as default, define, resolveSchema, resolveSchemas };
|
package/dist/model.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as EnvModelOptions, c as SupportedSchema, i as EnvModel, n as resolveSchemas, o as InferEnvType, r as define, s as InferSchemaType, t as resolveSchema } from "./index-
|
|
1
|
+
import { a as EnvModelOptions, c as SupportedSchema, i as EnvModel, n as resolveSchemas, o as InferEnvType, r as define, s as InferSchemaType, t as resolveSchema } from "./index-BwID8Va2.js";
|
|
2
2
|
export { EnvModel, type EnvModelOptions, type InferEnvType, type InferSchemaType, type SupportedSchema, define as default, define, resolveSchema, resolveSchemas };
|
package/dist/model.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { i as resolveSchemas, n as EnvModel, r as resolveSchema, t as define } from "./src-
|
|
2
|
-
|
|
1
|
+
import { i as resolveSchemas, n as EnvModel, r as resolveSchema, t as define } from "./src-BAkjmW8v.js";
|
|
2
|
+
// src/model.ts
|
|
3
3
|
var model_default = define;
|
|
4
|
-
//#endregion
|
|
5
4
|
export { EnvModel, model_default as default, define, resolveSchema, resolveSchemas };
|
package/dist/parse.cjs
CHANGED
|
@@ -2,12 +2,11 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_schema = require("./schema-
|
|
6
|
-
const require_src = require("./src-
|
|
7
|
-
const require_src$1 = require("./src-
|
|
8
|
-
|
|
5
|
+
const require_schema = require("./schema-CKx-cny7.cjs");
|
|
6
|
+
const require_src = require("./src-C57GsLLI.cjs");
|
|
7
|
+
const require_src$1 = require("./src-B_wC-Ff0.cjs");
|
|
8
|
+
// src/parse.ts
|
|
9
9
|
var parse_default = require_src$1.parse;
|
|
10
|
-
//#endregion
|
|
11
10
|
exports.EnvModel = require_src.EnvModel;
|
|
12
11
|
exports.EnvParseError = require_src$1.EnvParseError;
|
|
13
12
|
exports.default = parse_default;
|
package/dist/parse.d.cts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { i as EnvVarSchema } from "./BooleanMap-
|
|
2
|
-
import { n as schema, t as s } from "./schema-
|
|
3
|
-
import { a as EnvModelOptions, c as SupportedSchema, i as EnvModel, r as define } from "./index-
|
|
4
|
-
import { n as ParseEnvOptions, t as parse } from "./index-
|
|
5
|
-
//#region ../parse/src/errors/EnvParseError.d.ts
|
|
1
|
+
import { i as EnvVarSchema } from "./BooleanMap-D74MMuAh.cjs";
|
|
2
|
+
import { n as schema, t as s } from "./schema-DBTZcufP.cjs";
|
|
3
|
+
import { a as EnvModelOptions, c as SupportedSchema, i as EnvModel, r as define } from "./index-D8rUvOZ5.cjs";
|
|
4
|
+
import { n as ParseEnvOptions, t as parse } from "./index-C7wTQSSV.cjs";
|
|
6
5
|
type EnvParseIssueMissing = {
|
|
7
6
|
type: "missing";
|
|
8
7
|
key: string;
|
|
@@ -45,5 +44,4 @@ export declare class EnvParseError<TValue = Record<string, unknown>> extends Err
|
|
|
45
44
|
formatIssues(): string;
|
|
46
45
|
private static formatMessage;
|
|
47
46
|
}
|
|
48
|
-
//#endregion
|
|
49
47
|
export { EnvModel, type EnvModelOptions, type EnvParseIssue, type EnvParseIssueInvalid, type EnvParseIssueMissing, type EnvParseResult, type EnvVarSchema, type ParseEnvOptions, type SupportedSchema, parse as default, parse, define, s, schema };
|
package/dist/parse.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { i as EnvVarSchema } from "./BooleanMap-
|
|
2
|
-
import { n as schema, t as s } from "./schema-
|
|
3
|
-
import { a as EnvModelOptions, c as SupportedSchema, i as EnvModel, r as define } from "./index-
|
|
4
|
-
import { n as ParseEnvOptions, t as parse } from "./index-
|
|
5
|
-
//#region ../parse/src/errors/EnvParseError.d.ts
|
|
1
|
+
import { i as EnvVarSchema } from "./BooleanMap-B7iiI-eg.js";
|
|
2
|
+
import { n as schema, t as s } from "./schema-ChcxJMuu.js";
|
|
3
|
+
import { a as EnvModelOptions, c as SupportedSchema, i as EnvModel, r as define } from "./index-BwID8Va2.js";
|
|
4
|
+
import { n as ParseEnvOptions, t as parse } from "./index-ClGSiwuc.js";
|
|
6
5
|
type EnvParseIssueMissing = {
|
|
7
6
|
type: "missing";
|
|
8
7
|
key: string;
|
|
@@ -45,5 +44,4 @@ export declare class EnvParseError<TValue = Record<string, unknown>> extends Err
|
|
|
45
44
|
formatIssues(): string;
|
|
46
45
|
private static formatMessage;
|
|
47
46
|
}
|
|
48
|
-
//#endregion
|
|
49
47
|
export { EnvModel, type EnvModelOptions, type EnvParseIssue, type EnvParseIssueInvalid, type EnvParseIssueMissing, type EnvParseResult, type EnvVarSchema, type ParseEnvOptions, type SupportedSchema, parse as default, parse, define, s, schema };
|
package/dist/parse.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { n as schema, t as s } from "./schema-
|
|
2
|
-
import { n as EnvModel, t as define } from "./src-
|
|
3
|
-
import { n as EnvParseError, t as parse } from "./src-
|
|
4
|
-
|
|
1
|
+
import { n as schema, t as s } from "./schema-BTv2xFHz.js";
|
|
2
|
+
import { n as EnvModel, t as define } from "./src-BAkjmW8v.js";
|
|
3
|
+
import { n as EnvParseError, t as parse } from "./src-DCLHRLpS.js";
|
|
4
|
+
// src/parse.ts
|
|
5
5
|
var parse_default = parse;
|
|
6
|
-
//#endregion
|
|
7
6
|
export { EnvModel, EnvParseError, parse_default as default, define, parse, s, schema };
|
|
@@ -1,41 +1,30 @@
|
|
|
1
|
-
import { f as Processor } from "./StringEnvVarSchema-
|
|
2
|
-
import { n as Preprocessor, t as BooleanMap } from "./BooleanMap-
|
|
3
|
-
//#region ../core/src/processing/types/Check.d.ts
|
|
1
|
+
import { f as Processor } from "./StringEnvVarSchema-CymYIek7.cjs";
|
|
2
|
+
import { n as Preprocessor, t as BooleanMap } from "./BooleanMap-D74MMuAh.cjs";
|
|
4
3
|
/**
|
|
5
4
|
* Check type definition.
|
|
6
5
|
* A check returns an array of requirement strings if the check fails, or an empty array if valid.
|
|
7
6
|
*/
|
|
8
7
|
type Check<T> = (value: T) => string[];
|
|
9
|
-
//#endregion
|
|
10
|
-
//#region ../core/src/processing/processors/typed/string.d.ts
|
|
11
8
|
/**
|
|
12
9
|
* String processor with optional validation checks.
|
|
13
10
|
* This is the primary string processor - the base stringProcessor() calls this with no checks.
|
|
14
11
|
*/
|
|
15
12
|
declare function string$1(...checks: Array<Check<string>>): Processor<string>;
|
|
16
|
-
//#endregion
|
|
17
|
-
//#region ../core/src/processing/processors/typed/number.d.ts
|
|
18
13
|
/**
|
|
19
14
|
* Number processor with optional validation checks.
|
|
20
15
|
* This is the primary number processor - the base numberProcessor() calls this with no checks.
|
|
21
16
|
*/
|
|
22
17
|
declare function number$1(...checks: Array<Check<number>>): Processor<number>;
|
|
23
|
-
//#endregion
|
|
24
|
-
//#region ../core/src/processing/processors/typed/boolean.d.ts
|
|
25
18
|
/**
|
|
26
19
|
* Boolean processor.
|
|
27
20
|
* This is the primary boolean processor - the base booleanProcessor() calls this.
|
|
28
21
|
*/
|
|
29
22
|
declare function boolean$1(): Processor<boolean>;
|
|
30
|
-
//#endregion
|
|
31
|
-
//#region ../core/src/processing/processors/typed/enumeration.d.ts
|
|
32
23
|
/**
|
|
33
24
|
* Enum processor with optional validation checks.
|
|
34
25
|
* This is the primary enum processor - the base enumProcessor() calls this with no checks.
|
|
35
26
|
*/
|
|
36
27
|
declare function enumeration$1(allowedValues: readonly string[], ...checks: Array<Check<string>>): Processor<string>;
|
|
37
|
-
//#endregion
|
|
38
|
-
//#region ../core/src/processing/processors/processors.d.ts
|
|
39
28
|
/**
|
|
40
29
|
* Default processors for environment variable types.
|
|
41
30
|
* Each processor factory returns a function that takes a value and returns T | undefined.
|
|
@@ -47,29 +36,19 @@ declare const processors: {
|
|
|
47
36
|
readonly number: typeof number$1;
|
|
48
37
|
readonly string: typeof string$1;
|
|
49
38
|
};
|
|
50
|
-
//#endregion
|
|
51
|
-
//#region ../core/src/processing/preprocessors/typed/number.d.ts
|
|
52
39
|
/**
|
|
53
40
|
* Create a number preprocessor that strips commas and whitespace
|
|
54
41
|
*/
|
|
55
42
|
declare const number: () => Preprocessor<number>;
|
|
56
|
-
//#endregion
|
|
57
|
-
//#region ../core/src/processing/preprocessors/typed/boolean.d.ts
|
|
58
43
|
declare const boolean: (options?: BooleanMap) => Preprocessor<boolean>;
|
|
59
|
-
//#endregion
|
|
60
|
-
//#region ../core/src/processing/preprocessors/typed/enumeration.d.ts
|
|
61
44
|
/**
|
|
62
45
|
* Create an enum preprocessor - pass through unchanged
|
|
63
46
|
*/
|
|
64
47
|
declare const enumeration: () => Preprocessor<string>;
|
|
65
|
-
//#endregion
|
|
66
|
-
//#region ../core/src/processing/preprocessors/typed/string.d.ts
|
|
67
48
|
/**
|
|
68
49
|
* Create a string preprocessor - pass through unchanged
|
|
69
50
|
*/
|
|
70
51
|
declare const string: () => Preprocessor<string>;
|
|
71
|
-
//#endregion
|
|
72
|
-
//#region ../core/src/processing/preprocessors/preprocessors.d.ts
|
|
73
52
|
/**
|
|
74
53
|
* Default preprocessors map for each environment variable type
|
|
75
54
|
*/
|
|
@@ -79,5 +58,4 @@ declare const preprocessors: {
|
|
|
79
58
|
readonly number: typeof number;
|
|
80
59
|
readonly string: typeof string;
|
|
81
60
|
};
|
|
82
|
-
//#endregion
|
|
83
61
|
export { number$1 as a, boolean$1 as i, processors as n, string$1 as o, enumeration$1 as r, Check as s, preprocessors as t };
|