@e-n-v/env 0.0.9 → 0.0.11
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/{EnvChannelOptions-BbKeuO-o.d.cts → EnvChannelOptions-D2-3p4b_.d.cts} +20 -0
- package/dist/{EnvChannelOptions-BbKeuO-o.d.ts → EnvChannelOptions-D2-3p4b_.d.ts} +20 -0
- package/dist/{ProcessEnvChannel-DWHPZePe.d.cts → ProcessEnvChannel-By7mCljr.d.cts} +1 -1
- package/dist/{ProcessEnvChannel-CwhV7_EB.d.ts → ProcessEnvChannel-CvdASj6O.d.ts} +1 -1
- package/dist/channels.cjs +1 -1
- package/dist/channels.d.cts +4 -4
- package/dist/channels.d.ts +4 -4
- package/dist/channels.js +1 -2
- package/dist/cli.cjs +2 -2
- package/dist/cli.js +2 -2
- package/dist/core.d.cts +17 -17
- package/dist/core.d.ts +17 -17
- package/dist/files.d.cts +8 -8
- package/dist/files.d.ts +8 -8
- package/dist/{index-CEyOIRdj.d.ts → index-B0GSc17M.d.ts} +1 -1
- package/dist/{index-BKBW9Dxs.d.cts → index-bqDK7Ycd.d.cts} +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/model.cjs +1 -1
- package/dist/model.js +1 -1
- package/dist/parse.cjs +2 -2
- package/dist/parse.d.cts +2 -2
- package/dist/parse.d.ts +2 -2
- package/dist/parse.js +2 -2
- package/dist/prompt-Rbr8DN-r.d.cts +9 -0
- package/dist/prompt.cjs +2 -2
- package/dist/prompt.d.cts +5 -11
- package/dist/prompt.d.ts +3 -3
- package/dist/prompt.js +2 -2
- package/dist/{resolveChannel-DxZNYdDe.cjs → resolveChannel-Cug62jvj.cjs} +5 -3
- package/dist/{resolveChannel-D1Fzl4TL.js → resolveChannel-DB1XyYCC.js} +5 -3
- package/dist/schemas/zod.d.cts +90 -90
- package/dist/schemas/zod.d.ts +90 -90
- package/dist/schemas.js +1 -2
- package/dist/{src-CdzAzdq-.js → src-BK5HcxMN.js} +30 -26
- package/dist/{src-8rEOvFG5.js → src-BPxfJblL.js} +12 -11
- package/dist/{src-5GYFbR9n.cjs → src-CJ_QE-uc.cjs} +12 -11
- package/dist/{src-D5KzIEH_.cjs → src-CtWcViFD.cjs} +7 -5
- package/dist/{src-CttkcdpE.cjs → src-DefPAYdi.cjs} +30 -26
- package/dist/{src-DWc-WWjX.js → src-DgHZi7PD.js} +7 -5
- package/dist/vars.cjs +1 -1
- package/dist/vars.js +1 -1
- package/package.json +1 -1
|
@@ -54,6 +54,8 @@ interface DotenvConfigOptions {
|
|
|
54
54
|
* @example require('@dotenvx/dotenvx').config({ path: ['/path/to/first.env', '/path/to/second.env'] })
|
|
55
55
|
*/
|
|
56
56
|
path?: string | string[] | URL;
|
|
57
|
+
/** Select a named Envfile profile when no explicit paths are supplied. */
|
|
58
|
+
profile?: string;
|
|
57
59
|
/**
|
|
58
60
|
* Specify the encoding of your file containing environment variables.
|
|
59
61
|
*
|
|
@@ -75,6 +77,7 @@ interface DotenvConfigOptions {
|
|
|
75
77
|
override?: boolean;
|
|
76
78
|
/**
|
|
77
79
|
* Throw immediately if an error is encountered - like a missing .env file.
|
|
80
|
+
* Includes Envfile validation failures. Envfile strict settings also enforce throwing.
|
|
78
81
|
* @default false
|
|
79
82
|
* @example require('@dotenvx/dotenvx').config({ strict: true })
|
|
80
83
|
*/
|
|
@@ -196,6 +199,8 @@ interface SetOptions {
|
|
|
196
199
|
* @example require('@dotenvx/dotenvx').set(key, value, { path: ['/path/to/first.env', '/path/to/second.env'] })
|
|
197
200
|
*/
|
|
198
201
|
path?: string | string[] | URL;
|
|
202
|
+
/** Select a named Envfile profile when no explicit paths are supplied. */
|
|
203
|
+
profile?: string;
|
|
199
204
|
/**
|
|
200
205
|
* Customize the path to your .env.keys file. This is useful with monorepos.
|
|
201
206
|
* @default []
|
|
@@ -226,8 +231,23 @@ interface SetOptions {
|
|
|
226
231
|
* @example require('@dotenvx/dotenvx').set(key, value, { noNative: true })
|
|
227
232
|
*/
|
|
228
233
|
noNative?: boolean;
|
|
234
|
+
/** Disable 1Password custody and secret-reference resolution. */
|
|
235
|
+
no1Password?: boolean;
|
|
236
|
+
/** Disable Bitwarden custody and secret-reference resolution. */
|
|
237
|
+
noBitwarden?: boolean;
|
|
229
238
|
}
|
|
230
239
|
interface GetOptions {
|
|
240
|
+
/**
|
|
241
|
+
* Specify a custom path if your file containing environment variables is located elsewhere.
|
|
242
|
+
* Can also be an array of strings, specifying multiple paths.
|
|
243
|
+
*
|
|
244
|
+
* @default require('path').resolve(process.cwd(), '.env')
|
|
245
|
+
* @example require('@dotenvx/dotenvx').get('KEY', { path: '/custom/path/to/.env' })
|
|
246
|
+
* @example require('@dotenvx/dotenvx').get('KEY', { path: ['/path/to/first.env', '/path/to/second.env'] })
|
|
247
|
+
*/
|
|
248
|
+
path?: string | string[] | URL;
|
|
249
|
+
/** Select a named Envfile profile when no explicit paths are supplied. */
|
|
250
|
+
profile?: string;
|
|
231
251
|
/**
|
|
232
252
|
* Mask returned values, optionally setting the number of visible characters.
|
|
233
253
|
* @default false
|
|
@@ -54,6 +54,8 @@ interface DotenvConfigOptions {
|
|
|
54
54
|
* @example require('@dotenvx/dotenvx').config({ path: ['/path/to/first.env', '/path/to/second.env'] })
|
|
55
55
|
*/
|
|
56
56
|
path?: string | string[] | URL;
|
|
57
|
+
/** Select a named Envfile profile when no explicit paths are supplied. */
|
|
58
|
+
profile?: string;
|
|
57
59
|
/**
|
|
58
60
|
* Specify the encoding of your file containing environment variables.
|
|
59
61
|
*
|
|
@@ -75,6 +77,7 @@ interface DotenvConfigOptions {
|
|
|
75
77
|
override?: boolean;
|
|
76
78
|
/**
|
|
77
79
|
* Throw immediately if an error is encountered - like a missing .env file.
|
|
80
|
+
* Includes Envfile validation failures. Envfile strict settings also enforce throwing.
|
|
78
81
|
* @default false
|
|
79
82
|
* @example require('@dotenvx/dotenvx').config({ strict: true })
|
|
80
83
|
*/
|
|
@@ -196,6 +199,8 @@ interface SetOptions {
|
|
|
196
199
|
* @example require('@dotenvx/dotenvx').set(key, value, { path: ['/path/to/first.env', '/path/to/second.env'] })
|
|
197
200
|
*/
|
|
198
201
|
path?: string | string[] | URL;
|
|
202
|
+
/** Select a named Envfile profile when no explicit paths are supplied. */
|
|
203
|
+
profile?: string;
|
|
199
204
|
/**
|
|
200
205
|
* Customize the path to your .env.keys file. This is useful with monorepos.
|
|
201
206
|
* @default []
|
|
@@ -226,8 +231,23 @@ interface SetOptions {
|
|
|
226
231
|
* @example require('@dotenvx/dotenvx').set(key, value, { noNative: true })
|
|
227
232
|
*/
|
|
228
233
|
noNative?: boolean;
|
|
234
|
+
/** Disable 1Password custody and secret-reference resolution. */
|
|
235
|
+
no1Password?: boolean;
|
|
236
|
+
/** Disable Bitwarden custody and secret-reference resolution. */
|
|
237
|
+
noBitwarden?: boolean;
|
|
229
238
|
}
|
|
230
239
|
interface GetOptions {
|
|
240
|
+
/**
|
|
241
|
+
* Specify a custom path if your file containing environment variables is located elsewhere.
|
|
242
|
+
* Can also be an array of strings, specifying multiple paths.
|
|
243
|
+
*
|
|
244
|
+
* @default require('path').resolve(process.cwd(), '.env')
|
|
245
|
+
* @example require('@dotenvx/dotenvx').get('KEY', { path: '/custom/path/to/.env' })
|
|
246
|
+
* @example require('@dotenvx/dotenvx').get('KEY', { path: ['/path/to/first.env', '/path/to/second.env'] })
|
|
247
|
+
*/
|
|
248
|
+
path?: string | string[] | URL;
|
|
249
|
+
/** Select a named Envfile profile when no explicit paths are supplied. */
|
|
250
|
+
profile?: string;
|
|
231
251
|
/**
|
|
232
252
|
* Mask returned values, optionally setting the number of visible characters.
|
|
233
253
|
* @default false
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as DotEnvXInstance, o as DotEnvXSetOptions, s as DotEnvXGetOptions, t as EnvChannelOptions } from "./EnvChannelOptions-
|
|
1
|
+
import { c as DotEnvXInstance, o as DotEnvXSetOptions, s as DotEnvXGetOptions, t as EnvChannelOptions } from "./EnvChannelOptions-D2-3p4b_.cjs";
|
|
2
2
|
import { t as EnvChannel } from "./EnvChannel-CfSwa_25.cjs";
|
|
3
3
|
//#region ../channels/src/resolveChannel.d.ts
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as DotEnvXInstance, o as DotEnvXSetOptions, s as DotEnvXGetOptions, t as EnvChannelOptions } from "./EnvChannelOptions-
|
|
1
|
+
import { c as DotEnvXInstance, o as DotEnvXSetOptions, s as DotEnvXGetOptions, t as EnvChannelOptions } from "./EnvChannelOptions-D2-3p4b_.js";
|
|
2
2
|
import { t as EnvChannel } from "./EnvChannel-CfSwa_25.js";
|
|
3
3
|
//#region ../channels/src/resolveChannel.d.ts
|
|
4
4
|
/**
|
package/dist/channels.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_resolveChannel = require("./resolveChannel-
|
|
2
|
+
const require_resolveChannel = require("./resolveChannel-Cug62jvj.cjs");
|
|
3
3
|
exports.DefaultEnvChannel = require_resolveChannel.DefaultEnvChannel;
|
|
4
4
|
exports.DotEnvChannel = require_resolveChannel.DotEnvChannel;
|
|
5
5
|
exports.DotEnvXChannel = require_resolveChannel.DotEnvXChannel;
|
package/dist/channels.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as DotEnvXChannelConfig, c as DotEnvXInstance, d as DotEnvConfigOutput, f as DotEnvInstance, i as DefaultChannelConfig, l as DotEnvChannelConfig, n as ProcessChannelConfig, o as DotEnvXSetOptions, p as DotEnvParseOptions, r as ProcessEnvChannelConfig, s as DotEnvXGetOptions, t as EnvChannelOptions, u as DotEnvConfigOptions } from "./EnvChannelOptions-
|
|
1
|
+
import { a as DotEnvXChannelConfig, c as DotEnvXInstance, d as DotEnvConfigOutput, f as DotEnvInstance, i as DefaultChannelConfig, l as DotEnvChannelConfig, n as ProcessChannelConfig, o as DotEnvXSetOptions, p as DotEnvParseOptions, r as ProcessEnvChannelConfig, s as DotEnvXGetOptions, t as EnvChannelOptions, u as DotEnvConfigOptions } from "./EnvChannelOptions-D2-3p4b_.cjs";
|
|
2
2
|
import { t as EnvChannel } from "./EnvChannel-CfSwa_25.cjs";
|
|
3
|
-
import { i as resolveChannel, n as DotEnvXChannel, r as DefaultEnvChannel, t as ProcessEnvChannel } from "./ProcessEnvChannel-
|
|
3
|
+
import { i as resolveChannel, n as DotEnvXChannel, r as DefaultEnvChannel, t as ProcessEnvChannel } from "./ProcessEnvChannel-By7mCljr.cjs";
|
|
4
4
|
//#region ../channels/src/channels/dotenv/DotEnvChannel.d.ts
|
|
5
|
-
declare class DotEnvChannel implements EnvChannel {
|
|
5
|
+
export declare class DotEnvChannel implements EnvChannel {
|
|
6
6
|
private readonly dotenv;
|
|
7
7
|
private readonly targetPath;
|
|
8
8
|
private readonly absolutePath;
|
|
@@ -16,4 +16,4 @@ declare class DotEnvChannel implements EnvChannel {
|
|
|
16
16
|
clearCache(): void;
|
|
17
17
|
}
|
|
18
18
|
//#endregion
|
|
19
|
-
export { DefaultChannelConfig, DefaultEnvChannel,
|
|
19
|
+
export { DefaultChannelConfig, DefaultEnvChannel, DotEnvChannelConfig, DotEnvConfigOptions, DotEnvConfigOutput, DotEnvInstance, DotEnvParseOptions, DotEnvXChannel, DotEnvXChannelConfig, DotEnvXGetOptions, DotEnvXInstance, DotEnvXSetOptions, EnvChannelOptions, ProcessChannelConfig, ProcessEnvChannel, ProcessEnvChannelConfig, resolveChannel };
|
package/dist/channels.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as DotEnvXChannelConfig, c as DotEnvXInstance, d as DotEnvConfigOutput, f as DotEnvInstance, i as DefaultChannelConfig, l as DotEnvChannelConfig, n as ProcessChannelConfig, o as DotEnvXSetOptions, p as DotEnvParseOptions, r as ProcessEnvChannelConfig, s as DotEnvXGetOptions, t as EnvChannelOptions, u as DotEnvConfigOptions } from "./EnvChannelOptions-
|
|
1
|
+
import { a as DotEnvXChannelConfig, c as DotEnvXInstance, d as DotEnvConfigOutput, f as DotEnvInstance, i as DefaultChannelConfig, l as DotEnvChannelConfig, n as ProcessChannelConfig, o as DotEnvXSetOptions, p as DotEnvParseOptions, r as ProcessEnvChannelConfig, s as DotEnvXGetOptions, t as EnvChannelOptions, u as DotEnvConfigOptions } from "./EnvChannelOptions-D2-3p4b_.js";
|
|
2
2
|
import { t as EnvChannel } from "./EnvChannel-CfSwa_25.js";
|
|
3
|
-
import { i as resolveChannel, n as DotEnvXChannel, r as DefaultEnvChannel, t as ProcessEnvChannel } from "./ProcessEnvChannel-
|
|
3
|
+
import { i as resolveChannel, n as DotEnvXChannel, r as DefaultEnvChannel, t as ProcessEnvChannel } from "./ProcessEnvChannel-CvdASj6O.js";
|
|
4
4
|
//#region ../channels/src/channels/dotenv/DotEnvChannel.d.ts
|
|
5
|
-
declare class DotEnvChannel implements EnvChannel {
|
|
5
|
+
export declare class DotEnvChannel implements EnvChannel {
|
|
6
6
|
private readonly dotenv;
|
|
7
7
|
private readonly targetPath;
|
|
8
8
|
private readonly absolutePath;
|
|
@@ -16,4 +16,4 @@ declare class DotEnvChannel implements EnvChannel {
|
|
|
16
16
|
clearCache(): void;
|
|
17
17
|
}
|
|
18
18
|
//#endregion
|
|
19
|
-
export { DefaultChannelConfig, DefaultEnvChannel,
|
|
19
|
+
export { DefaultChannelConfig, DefaultEnvChannel, DotEnvChannelConfig, DotEnvConfigOptions, DotEnvConfigOutput, DotEnvInstance, DotEnvParseOptions, DotEnvXChannel, DotEnvXChannelConfig, DotEnvXGetOptions, DotEnvXInstance, DotEnvXSetOptions, EnvChannelOptions, ProcessChannelConfig, ProcessEnvChannel, ProcessEnvChannelConfig, resolveChannel };
|
package/dist/channels.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { DefaultEnvChannel, DotEnvChannel, DotEnvXChannel, ProcessEnvChannel, resolveChannel };
|
|
1
|
+
export { a as DefaultEnvChannel, n as DotEnvChannel, i as DotEnvXChannel, r as ProcessEnvChannel, t as resolveChannel } from "./resolveChannel-DB1XyYCC.js";
|
package/dist/cli.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
const require_src = require("./src-
|
|
3
|
-
const require_src$1 = require("./src-
|
|
2
|
+
const require_src = require("./src-CtWcViFD.cjs");
|
|
3
|
+
const require_src$1 = require("./src-DefPAYdi.cjs");
|
|
4
4
|
let node_path = require("node:path");
|
|
5
5
|
let node_fs_promises = require("node:fs/promises");
|
|
6
6
|
let node_url = require("node:url");
|
package/dist/cli.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { n as EnvModel } from "./src-
|
|
3
|
-
import { t as prompt } from "./src-
|
|
2
|
+
import { n as EnvModel } from "./src-DgHZi7PD.js";
|
|
3
|
+
import { t as prompt } from "./src-BK5HcxMN.js";
|
|
4
4
|
import { isAbsolute, join, resolve } from "node:path";
|
|
5
5
|
import { readdir } from "node:fs/promises";
|
|
6
6
|
import { pathToFileURL } from "node:url";
|
package/dist/core.d.cts
CHANGED
|
@@ -4,7 +4,7 @@ import { a as number, i as boolean, n as processors, o as string, r as enumerati
|
|
|
4
4
|
import { t as EnvChannel } from "./EnvChannel-CfSwa_25.cjs";
|
|
5
5
|
import { n as schema, t as s } from "./schema-B1i83alz.cjs";
|
|
6
6
|
//#region ../core/src/schemas/EnvVarSchemaDetails.d.ts
|
|
7
|
-
interface EnvVarSchemaDetails<T> {
|
|
7
|
+
export interface EnvVarSchemaDetails<T> {
|
|
8
8
|
type: EnvVarType;
|
|
9
9
|
required: boolean;
|
|
10
10
|
default?: T;
|
|
@@ -51,80 +51,80 @@ type DefaultPreprocessor<T extends EnvVarType> = T extends "number" ? Preprocess
|
|
|
51
51
|
* Resolve the effective preprocessor for a given environment variable type.
|
|
52
52
|
* Respects custom overrides and falls back to built-in defaults (number, boolean).
|
|
53
53
|
*/
|
|
54
|
-
declare function resolvePreprocessor<T extends EnvVarType>(envVarType: T, preprocessorOptions?: PreprocessorOptions): DefaultPreprocessor<T> | undefined;
|
|
54
|
+
export declare function resolvePreprocessor<T extends EnvVarType>(envVarType: T, preprocessorOptions?: PreprocessorOptions): DefaultPreprocessor<T> | undefined;
|
|
55
55
|
//#endregion
|
|
56
56
|
//#region ../core/src/processing/checks/minLength.d.ts
|
|
57
57
|
/**
|
|
58
58
|
* String check: minimum length.
|
|
59
59
|
*/
|
|
60
|
-
declare function minLength(min: number, trait?: string): Check<string>;
|
|
60
|
+
export declare function minLength(min: number, trait?: string): Check<string>;
|
|
61
61
|
//#endregion
|
|
62
62
|
//#region ../core/src/processing/checks/maxLength.d.ts
|
|
63
63
|
/**
|
|
64
64
|
* String check: maximum length.
|
|
65
65
|
*/
|
|
66
|
-
declare function maxLength(max: number, trait?: string): Check<string>;
|
|
66
|
+
export declare function maxLength(max: number, trait?: string): Check<string>;
|
|
67
67
|
//#endregion
|
|
68
68
|
//#region ../core/src/processing/checks/lengthBetween.d.ts
|
|
69
69
|
/**
|
|
70
70
|
* String check: length within a range.
|
|
71
71
|
*/
|
|
72
|
-
declare function lengthBetween(min: number, max: number, trait?: string): Check<string>;
|
|
72
|
+
export declare function lengthBetween(min: number, max: number, trait?: string): Check<string>;
|
|
73
73
|
//#endregion
|
|
74
74
|
//#region ../core/src/processing/checks/exactLength.d.ts
|
|
75
75
|
/**
|
|
76
76
|
* String check: exact length.
|
|
77
77
|
*/
|
|
78
|
-
declare function exactLength(length: number, trait?: string): Check<string>;
|
|
78
|
+
export declare function exactLength(length: number, trait?: string): Check<string>;
|
|
79
79
|
//#endregion
|
|
80
80
|
//#region ../core/src/processing/checks/pattern.d.ts
|
|
81
81
|
/**
|
|
82
82
|
* String check: regex pattern match.
|
|
83
83
|
*/
|
|
84
|
-
declare function pattern(regex: RegExp, trait: string | readonly string[]): Check<string>;
|
|
84
|
+
export declare function pattern(regex: RegExp, trait: string | readonly string[]): Check<string>;
|
|
85
85
|
//#endregion
|
|
86
86
|
//#region ../core/src/processing/checks/url.d.ts
|
|
87
87
|
/**
|
|
88
88
|
* String check: valid URL.
|
|
89
89
|
*/
|
|
90
|
-
declare function url(trait?: string): Check<string>;
|
|
90
|
+
export declare function url(trait?: string): Check<string>;
|
|
91
91
|
//#endregion
|
|
92
92
|
//#region ../core/src/processing/checks/oneOf.d.ts
|
|
93
93
|
/**
|
|
94
94
|
* String check: value must be one of the provided values.
|
|
95
95
|
*/
|
|
96
|
-
declare function oneOf<T extends string>(values: readonly T[], trait?: string): Check<string>;
|
|
96
|
+
export declare function oneOf<T extends string>(values: readonly T[], trait?: string): Check<string>;
|
|
97
97
|
//#endregion
|
|
98
98
|
//#region ../core/src/processing/checks/integer.d.ts
|
|
99
99
|
/**
|
|
100
100
|
* Number check: must be an integer.
|
|
101
101
|
*/
|
|
102
|
-
declare function integer(trait?: string): Check<number>;
|
|
102
|
+
export declare function integer(trait?: string): Check<number>;
|
|
103
103
|
//#endregion
|
|
104
104
|
//#region ../core/src/processing/checks/min.d.ts
|
|
105
105
|
/**
|
|
106
106
|
* Number check: minimum value.
|
|
107
107
|
*/
|
|
108
|
-
declare function min(minimum: number, trait?: string): Check<number>;
|
|
108
|
+
export declare function min(minimum: number, trait?: string): Check<number>;
|
|
109
109
|
//#endregion
|
|
110
110
|
//#region ../core/src/processing/checks/max.d.ts
|
|
111
111
|
/**
|
|
112
112
|
* Number check: maximum value.
|
|
113
113
|
*/
|
|
114
|
-
declare function max(maximum: number, trait?: string): Check<number>;
|
|
114
|
+
export declare function max(maximum: number, trait?: string): Check<number>;
|
|
115
115
|
//#endregion
|
|
116
116
|
//#region ../core/src/processing/checks/between.d.ts
|
|
117
117
|
/**
|
|
118
118
|
* Number check: value within a range.
|
|
119
119
|
*/
|
|
120
|
-
declare function between(minimum: number, maximum: number, trait?: string): Check<number>;
|
|
120
|
+
export declare function between(minimum: number, maximum: number, trait?: string): Check<number>;
|
|
121
121
|
//#endregion
|
|
122
122
|
//#region ../core/src/processing/checks/custom.d.ts
|
|
123
123
|
/**
|
|
124
124
|
* Custom check with user-defined validation function.
|
|
125
125
|
* Can return multiple traits.
|
|
126
126
|
*/
|
|
127
|
-
declare function custom<T>(fn: (value: T) => boolean, ...traits: string[]): Check<T>;
|
|
127
|
+
export declare function custom<T>(fn: (value: T) => boolean, ...traits: string[]): Check<T>;
|
|
128
128
|
//#endregion
|
|
129
129
|
//#region ../core/src/processing/helpers/toList.d.ts
|
|
130
130
|
/**
|
|
@@ -135,13 +135,13 @@ declare function custom<T>(fn: (value: T) => boolean, ...traits: string[]): Chec
|
|
|
135
135
|
* - ["one", "two"] => "one and two"
|
|
136
136
|
* - ["one", "two", "three"] => "one, two, and three"
|
|
137
137
|
*/
|
|
138
|
-
declare function toList(items: string[]): string;
|
|
138
|
+
export declare function toList(items: string[]): string;
|
|
139
139
|
//#endregion
|
|
140
140
|
//#region ../core/src/processing/helpers/validate.d.ts
|
|
141
141
|
/**
|
|
142
142
|
* Run checks and aggregate errors.
|
|
143
143
|
* Throws an error with all validation requirements if any check fails.
|
|
144
144
|
*/
|
|
145
|
-
declare function validate<T>(value: T, checks: Array<Check<T>>): T;
|
|
145
|
+
export declare function validate<T>(value: T, checks: Array<Check<T>>): T;
|
|
146
146
|
//#endregion
|
|
147
|
-
export { BooleanEnvVarSchema, BooleanEnvVarSchemaInput, BooleanMap, type BooleanMap as BooleanPreprocessorOptions, type Check, EnumEnvVarSchema, EnumEnvVarSchemaInput, EnvChannel, type EnvVarSchema, EnvVarSchemaBase,
|
|
147
|
+
export { BooleanEnvVarSchema, BooleanEnvVarSchemaInput, BooleanMap, type BooleanMap as BooleanPreprocessorOptions, type Check, EnumEnvVarSchema, EnumEnvVarSchemaInput, EnvChannel, type EnvVarSchema, EnvVarSchemaBase, EnvVarSchemaInput, EnvVarType, NumberEnvVarSchema, NumberEnvVarSchemaInput, Preprocessor, PreprocessorToggle, type PreprocessorOptions as Preprocessors, Processor, StringEnvVarSchema, StringEnvVarSchemaInput, boolean, enumeration, isEnvVarSchema, number, preprocessors, processors, s, schema, string };
|
package/dist/core.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { a as number, i as boolean, n as processors, o as string, r as enumerati
|
|
|
4
4
|
import { t as EnvChannel } from "./EnvChannel-CfSwa_25.js";
|
|
5
5
|
import { n as schema, t as s } from "./schema-B-JLVS42.js";
|
|
6
6
|
//#region ../core/src/schemas/EnvVarSchemaDetails.d.ts
|
|
7
|
-
interface EnvVarSchemaDetails<T> {
|
|
7
|
+
export interface EnvVarSchemaDetails<T> {
|
|
8
8
|
type: EnvVarType;
|
|
9
9
|
required: boolean;
|
|
10
10
|
default?: T;
|
|
@@ -51,80 +51,80 @@ type DefaultPreprocessor<T extends EnvVarType> = T extends "number" ? Preprocess
|
|
|
51
51
|
* Resolve the effective preprocessor for a given environment variable type.
|
|
52
52
|
* Respects custom overrides and falls back to built-in defaults (number, boolean).
|
|
53
53
|
*/
|
|
54
|
-
declare function resolvePreprocessor<T extends EnvVarType>(envVarType: T, preprocessorOptions?: PreprocessorOptions): DefaultPreprocessor<T> | undefined;
|
|
54
|
+
export declare function resolvePreprocessor<T extends EnvVarType>(envVarType: T, preprocessorOptions?: PreprocessorOptions): DefaultPreprocessor<T> | undefined;
|
|
55
55
|
//#endregion
|
|
56
56
|
//#region ../core/src/processing/checks/minLength.d.ts
|
|
57
57
|
/**
|
|
58
58
|
* String check: minimum length.
|
|
59
59
|
*/
|
|
60
|
-
declare function minLength(min: number, trait?: string): Check<string>;
|
|
60
|
+
export declare function minLength(min: number, trait?: string): Check<string>;
|
|
61
61
|
//#endregion
|
|
62
62
|
//#region ../core/src/processing/checks/maxLength.d.ts
|
|
63
63
|
/**
|
|
64
64
|
* String check: maximum length.
|
|
65
65
|
*/
|
|
66
|
-
declare function maxLength(max: number, trait?: string): Check<string>;
|
|
66
|
+
export declare function maxLength(max: number, trait?: string): Check<string>;
|
|
67
67
|
//#endregion
|
|
68
68
|
//#region ../core/src/processing/checks/lengthBetween.d.ts
|
|
69
69
|
/**
|
|
70
70
|
* String check: length within a range.
|
|
71
71
|
*/
|
|
72
|
-
declare function lengthBetween(min: number, max: number, trait?: string): Check<string>;
|
|
72
|
+
export declare function lengthBetween(min: number, max: number, trait?: string): Check<string>;
|
|
73
73
|
//#endregion
|
|
74
74
|
//#region ../core/src/processing/checks/exactLength.d.ts
|
|
75
75
|
/**
|
|
76
76
|
* String check: exact length.
|
|
77
77
|
*/
|
|
78
|
-
declare function exactLength(length: number, trait?: string): Check<string>;
|
|
78
|
+
export declare function exactLength(length: number, trait?: string): Check<string>;
|
|
79
79
|
//#endregion
|
|
80
80
|
//#region ../core/src/processing/checks/pattern.d.ts
|
|
81
81
|
/**
|
|
82
82
|
* String check: regex pattern match.
|
|
83
83
|
*/
|
|
84
|
-
declare function pattern(regex: RegExp, trait: string | readonly string[]): Check<string>;
|
|
84
|
+
export declare function pattern(regex: RegExp, trait: string | readonly string[]): Check<string>;
|
|
85
85
|
//#endregion
|
|
86
86
|
//#region ../core/src/processing/checks/url.d.ts
|
|
87
87
|
/**
|
|
88
88
|
* String check: valid URL.
|
|
89
89
|
*/
|
|
90
|
-
declare function url(trait?: string): Check<string>;
|
|
90
|
+
export declare function url(trait?: string): Check<string>;
|
|
91
91
|
//#endregion
|
|
92
92
|
//#region ../core/src/processing/checks/oneOf.d.ts
|
|
93
93
|
/**
|
|
94
94
|
* String check: value must be one of the provided values.
|
|
95
95
|
*/
|
|
96
|
-
declare function oneOf<T extends string>(values: readonly T[], trait?: string): Check<string>;
|
|
96
|
+
export declare function oneOf<T extends string>(values: readonly T[], trait?: string): Check<string>;
|
|
97
97
|
//#endregion
|
|
98
98
|
//#region ../core/src/processing/checks/integer.d.ts
|
|
99
99
|
/**
|
|
100
100
|
* Number check: must be an integer.
|
|
101
101
|
*/
|
|
102
|
-
declare function integer(trait?: string): Check<number>;
|
|
102
|
+
export declare function integer(trait?: string): Check<number>;
|
|
103
103
|
//#endregion
|
|
104
104
|
//#region ../core/src/processing/checks/min.d.ts
|
|
105
105
|
/**
|
|
106
106
|
* Number check: minimum value.
|
|
107
107
|
*/
|
|
108
|
-
declare function min(minimum: number, trait?: string): Check<number>;
|
|
108
|
+
export declare function min(minimum: number, trait?: string): Check<number>;
|
|
109
109
|
//#endregion
|
|
110
110
|
//#region ../core/src/processing/checks/max.d.ts
|
|
111
111
|
/**
|
|
112
112
|
* Number check: maximum value.
|
|
113
113
|
*/
|
|
114
|
-
declare function max(maximum: number, trait?: string): Check<number>;
|
|
114
|
+
export declare function max(maximum: number, trait?: string): Check<number>;
|
|
115
115
|
//#endregion
|
|
116
116
|
//#region ../core/src/processing/checks/between.d.ts
|
|
117
117
|
/**
|
|
118
118
|
* Number check: value within a range.
|
|
119
119
|
*/
|
|
120
|
-
declare function between(minimum: number, maximum: number, trait?: string): Check<number>;
|
|
120
|
+
export declare function between(minimum: number, maximum: number, trait?: string): Check<number>;
|
|
121
121
|
//#endregion
|
|
122
122
|
//#region ../core/src/processing/checks/custom.d.ts
|
|
123
123
|
/**
|
|
124
124
|
* Custom check with user-defined validation function.
|
|
125
125
|
* Can return multiple traits.
|
|
126
126
|
*/
|
|
127
|
-
declare function custom<T>(fn: (value: T) => boolean, ...traits: string[]): Check<T>;
|
|
127
|
+
export declare function custom<T>(fn: (value: T) => boolean, ...traits: string[]): Check<T>;
|
|
128
128
|
//#endregion
|
|
129
129
|
//#region ../core/src/processing/helpers/toList.d.ts
|
|
130
130
|
/**
|
|
@@ -135,13 +135,13 @@ declare function custom<T>(fn: (value: T) => boolean, ...traits: string[]): Chec
|
|
|
135
135
|
* - ["one", "two"] => "one and two"
|
|
136
136
|
* - ["one", "two", "three"] => "one, two, and three"
|
|
137
137
|
*/
|
|
138
|
-
declare function toList(items: string[]): string;
|
|
138
|
+
export declare function toList(items: string[]): string;
|
|
139
139
|
//#endregion
|
|
140
140
|
//#region ../core/src/processing/helpers/validate.d.ts
|
|
141
141
|
/**
|
|
142
142
|
* Run checks and aggregate errors.
|
|
143
143
|
* Throws an error with all validation requirements if any check fails.
|
|
144
144
|
*/
|
|
145
|
-
declare function validate<T>(value: T, checks: Array<Check<T>>): T;
|
|
145
|
+
export declare function validate<T>(value: T, checks: Array<Check<T>>): T;
|
|
146
146
|
//#endregion
|
|
147
|
-
export { BooleanEnvVarSchema, BooleanEnvVarSchemaInput, BooleanMap, type BooleanMap as BooleanPreprocessorOptions, type Check, EnumEnvVarSchema, EnumEnvVarSchemaInput, EnvChannel, type EnvVarSchema, EnvVarSchemaBase,
|
|
147
|
+
export { BooleanEnvVarSchema, BooleanEnvVarSchemaInput, BooleanMap, type BooleanMap as BooleanPreprocessorOptions, type Check, EnumEnvVarSchema, EnumEnvVarSchemaInput, EnvChannel, type EnvVarSchema, EnvVarSchemaBase, EnvVarSchemaInput, EnvVarType, NumberEnvVarSchema, NumberEnvVarSchemaInput, Preprocessor, PreprocessorToggle, type PreprocessorOptions as Preprocessors, Processor, StringEnvVarSchema, StringEnvVarSchemaInput, boolean, enumeration, isEnvVarSchema, number, preprocessors, processors, s, schema, string };
|
package/dist/files.d.cts
CHANGED
|
@@ -4,7 +4,7 @@ type EnvSelectionRecord<T extends readonly string[]> = { [K in T[number]]: strin
|
|
|
4
4
|
type EnvPrimitiveValue = string | number | boolean | bigint;
|
|
5
5
|
//#endregion
|
|
6
6
|
//#region ../files/src/EnvSource.d.ts
|
|
7
|
-
declare class EnvSource {
|
|
7
|
+
export declare class EnvSource {
|
|
8
8
|
private readonly filePath;
|
|
9
9
|
constructor(filePath: string);
|
|
10
10
|
readSync(): EnvRecord;
|
|
@@ -24,15 +24,15 @@ declare class EnvSource {
|
|
|
24
24
|
}
|
|
25
25
|
//#endregion
|
|
26
26
|
//#region ../files/src/get.d.ts
|
|
27
|
-
declare function get(content: string): EnvRecord;
|
|
28
|
-
declare function get(content: string, name: string): string | undefined;
|
|
29
|
-
declare function get<const Names extends readonly string[]>(content: string, names: Names): EnvSelectionRecord<Names>;
|
|
27
|
+
export declare function get(content: string): EnvRecord;
|
|
28
|
+
export declare function get(content: string, name: string): string | undefined;
|
|
29
|
+
export declare function get<const Names extends readonly string[]>(content: string, names: Names): EnvSelectionRecord<Names>;
|
|
30
30
|
//#endregion
|
|
31
31
|
//#region ../files/src/set.d.ts
|
|
32
|
-
declare function set(content: string, name: string, value: EnvPrimitiveValue): string;
|
|
33
|
-
declare function set(content: string, values: Record<string, EnvPrimitiveValue>): string;
|
|
32
|
+
export declare function set(content: string, name: string, value: EnvPrimitiveValue): string;
|
|
33
|
+
export declare function set(content: string, values: Record<string, EnvPrimitiveValue>): string;
|
|
34
34
|
//#endregion
|
|
35
35
|
//#region ../files/src/source.d.ts
|
|
36
|
-
declare function source(filePath: string): EnvSource;
|
|
36
|
+
export declare function source(filePath: string): EnvSource;
|
|
37
37
|
//#endregion
|
|
38
|
-
export { type EnvPrimitiveValue, type EnvRecord, type EnvSelectionRecord,
|
|
38
|
+
export { type EnvPrimitiveValue, type EnvRecord, type EnvSelectionRecord, source as default };
|
package/dist/files.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ type EnvSelectionRecord<T extends readonly string[]> = { [K in T[number]]: strin
|
|
|
4
4
|
type EnvPrimitiveValue = string | number | boolean | bigint;
|
|
5
5
|
//#endregion
|
|
6
6
|
//#region ../files/src/EnvSource.d.ts
|
|
7
|
-
declare class EnvSource {
|
|
7
|
+
export declare class EnvSource {
|
|
8
8
|
private readonly filePath;
|
|
9
9
|
constructor(filePath: string);
|
|
10
10
|
readSync(): EnvRecord;
|
|
@@ -24,15 +24,15 @@ declare class EnvSource {
|
|
|
24
24
|
}
|
|
25
25
|
//#endregion
|
|
26
26
|
//#region ../files/src/get.d.ts
|
|
27
|
-
declare function get(content: string): EnvRecord;
|
|
28
|
-
declare function get(content: string, name: string): string | undefined;
|
|
29
|
-
declare function get<const Names extends readonly string[]>(content: string, names: Names): EnvSelectionRecord<Names>;
|
|
27
|
+
export declare function get(content: string): EnvRecord;
|
|
28
|
+
export declare function get(content: string, name: string): string | undefined;
|
|
29
|
+
export declare function get<const Names extends readonly string[]>(content: string, names: Names): EnvSelectionRecord<Names>;
|
|
30
30
|
//#endregion
|
|
31
31
|
//#region ../files/src/set.d.ts
|
|
32
|
-
declare function set(content: string, name: string, value: EnvPrimitiveValue): string;
|
|
33
|
-
declare function set(content: string, values: Record<string, EnvPrimitiveValue>): string;
|
|
32
|
+
export declare function set(content: string, name: string, value: EnvPrimitiveValue): string;
|
|
33
|
+
export declare function set(content: string, values: Record<string, EnvPrimitiveValue>): string;
|
|
34
34
|
//#endregion
|
|
35
35
|
//#region ../files/src/source.d.ts
|
|
36
|
-
declare function source(filePath: string): EnvSource;
|
|
36
|
+
export declare function source(filePath: string): EnvSource;
|
|
37
37
|
//#endregion
|
|
38
|
-
export { type EnvPrimitiveValue, type EnvRecord, type EnvSelectionRecord,
|
|
38
|
+
export { type EnvPrimitiveValue, type EnvRecord, type EnvSelectionRecord, source as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as EnvChannelOptions } from "./EnvChannelOptions-
|
|
1
|
+
import { t as EnvChannelOptions } from "./EnvChannelOptions-D2-3p4b_.js";
|
|
2
2
|
import { t as EnvChannel } from "./EnvChannel-CfSwa_25.js";
|
|
3
3
|
import { a as EnvModelOptions, i as EnvModel } from "./index-Cb0abjLf.js";
|
|
4
4
|
import { Formatter } from "picocolors/types";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as EnvChannelOptions } from "./EnvChannelOptions-
|
|
1
|
+
import { t as EnvChannelOptions } from "./EnvChannelOptions-D2-3p4b_.cjs";
|
|
2
2
|
import { t as EnvChannel } from "./EnvChannel-CfSwa_25.cjs";
|
|
3
3
|
import { a as EnvModelOptions, i as EnvModel } from "./index-Cz3frUwZ.cjs";
|
|
4
4
|
import { Formatter } from "picocolors/types";
|
package/dist/index.cjs
CHANGED
|
@@ -4,9 +4,9 @@ Object.defineProperties(exports, {
|
|
|
4
4
|
});
|
|
5
5
|
const require_src = require("./src-TZx_e95f.cjs");
|
|
6
6
|
const require_schema = require("./schema-D9nJKipf.cjs");
|
|
7
|
-
const require_src$1 = require("./src-
|
|
8
|
-
const require_src$2 = require("./src-
|
|
9
|
-
const require_src$3 = require("./src-
|
|
7
|
+
const require_src$1 = require("./src-CtWcViFD.cjs");
|
|
8
|
+
const require_src$2 = require("./src-CJ_QE-uc.cjs");
|
|
9
|
+
const require_src$3 = require("./src-DefPAYdi.cjs");
|
|
10
10
|
const require_src$4 = require("./src-DB0Har0j.cjs");
|
|
11
11
|
const require_vars = require("./vars.cjs");
|
|
12
12
|
//#region src/index.ts
|
package/dist/index.d.cts
CHANGED
|
@@ -2,7 +2,7 @@ import { n as processors, t as preprocessors } from "./preprocessors-DFVyF0c7.cj
|
|
|
2
2
|
import { n as schema, t as s } from "./schema-B1i83alz.cjs";
|
|
3
3
|
import { r as define } from "./index-Cz3frUwZ.cjs";
|
|
4
4
|
import { t as parse } from "./index-B2eNij2x.cjs";
|
|
5
|
-
import { t as prompt } from "./index-
|
|
5
|
+
import { t as prompt } from "./index-bqDK7Ycd.cjs";
|
|
6
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-DsW-Vkwq.cjs";
|
|
7
7
|
import { t as vars } from "./vars-DtzGL5Nc.cjs";
|
|
8
8
|
declare namespace index_d_exports {
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { n as processors, t as preprocessors } from "./preprocessors-BKuIcZa1.js
|
|
|
2
2
|
import { n as schema, t as s } from "./schema-B-JLVS42.js";
|
|
3
3
|
import { r as define } from "./index-Cb0abjLf.js";
|
|
4
4
|
import { t as parse } from "./index-BHTM8nxS.js";
|
|
5
|
-
import { t as prompt } from "./index-
|
|
5
|
+
import { t as prompt } from "./index-B0GSc17M.js";
|
|
6
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-tRD4nAy_.js";
|
|
7
7
|
import { t as vars } from "./vars-obKYxaSu.js";
|
|
8
8
|
declare namespace index_d_exports {
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as preprocessors, s as processors } from "./src-Cg49gGJb.js";
|
|
2
2
|
import { n as schema, t as s } from "./schema-CtP5lpU1.js";
|
|
3
|
-
import { t as define } from "./src-
|
|
4
|
-
import { t as parse } from "./src-
|
|
5
|
-
import { t as prompt } from "./src-
|
|
3
|
+
import { t as define } from "./src-DgHZi7PD.js";
|
|
4
|
+
import { t as parse } from "./src-BPxfJblL.js";
|
|
5
|
+
import { t as prompt } from "./src-BK5HcxMN.js";
|
|
6
6
|
import { t as src_exports } from "./src-DvUBRBe3.js";
|
|
7
7
|
import vars from "./vars.js";
|
|
8
8
|
//#region src/index.ts
|
package/dist/model.cjs
CHANGED
|
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_src = require("./src-
|
|
5
|
+
const require_src = require("./src-CtWcViFD.cjs");
|
|
6
6
|
//#region src/model.ts
|
|
7
7
|
var model_default = require_src.define;
|
|
8
8
|
//#endregion
|
package/dist/model.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as resolveSchemas, n as EnvModel, r as resolveSchema, t as define } from "./src-
|
|
1
|
+
import { i as resolveSchemas, n as EnvModel, r as resolveSchema, t as define } from "./src-DgHZi7PD.js";
|
|
2
2
|
//#region src/model.ts
|
|
3
3
|
var model_default = define;
|
|
4
4
|
//#endregion
|
package/dist/parse.cjs
CHANGED
|
@@ -3,8 +3,8 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
const require_schema = require("./schema-D9nJKipf.cjs");
|
|
6
|
-
const require_src = require("./src-
|
|
7
|
-
const require_src$1 = require("./src-
|
|
6
|
+
const require_src = require("./src-CtWcViFD.cjs");
|
|
7
|
+
const require_src$1 = require("./src-CJ_QE-uc.cjs");
|
|
8
8
|
//#region src/parse.ts
|
|
9
9
|
var parse_default = require_src$1.parse;
|
|
10
10
|
//#endregion
|
package/dist/parse.d.cts
CHANGED
|
@@ -26,7 +26,7 @@ type EnvParseResult<TValue> = {
|
|
|
26
26
|
* Error thrown when parsing environment variables fails.
|
|
27
27
|
* Collects all issues so callers can inspect them without relying on subclasses.
|
|
28
28
|
*/
|
|
29
|
-
declare class EnvParseError<TValue = Record<string, unknown>> extends Error {
|
|
29
|
+
export declare class EnvParseError<TValue = Record<string, unknown>> extends Error {
|
|
30
30
|
readonly issues: ReadonlyArray<EnvParseIssue>;
|
|
31
31
|
readonly partial: Partial<TValue>;
|
|
32
32
|
constructor(params: {
|
|
@@ -46,4 +46,4 @@ declare class EnvParseError<TValue = Record<string, unknown>> extends Error {
|
|
|
46
46
|
private static formatMessage;
|
|
47
47
|
}
|
|
48
48
|
//#endregion
|
|
49
|
-
export { EnvModel, type EnvModelOptions,
|
|
49
|
+
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 };
|