node-env-resolver 4.0.0 → 5.0.0
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/README.md +289 -251
- package/dist/audit.d.cts +29 -0
- package/dist/audit.d.ts +8 -7
- package/dist/builder.cjs +1 -1
- package/dist/builder.d.cts +149 -0
- package/dist/builder.d.ts +17 -14
- package/dist/builder.js +1 -1
- package/dist/chunk-4YVXFL3I.cjs +9 -0
- package/dist/chunk-6FXCXA4R.cjs +11 -0
- package/dist/chunk-BFLXBLZ3.cjs +1 -0
- package/dist/chunk-BJ2QNYTS.js +11 -0
- package/dist/chunk-DIXI6MUB.js +9 -0
- package/dist/chunk-P3TTYVEW.js +16 -0
- package/dist/chunk-UCLEPPLS.cjs +16 -0
- package/dist/chunk-ZMRT37K3.js +1 -0
- package/dist/cli.d.cts +52 -0
- package/dist/cli.d.ts +9 -6
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +150 -0
- package/dist/index.d.ts +86 -77
- package/dist/index.js +1 -1
- package/dist/resolver.cjs +1 -1
- package/dist/resolver.d.cts +20 -0
- package/dist/resolver.d.ts +8 -5
- package/dist/resolver.js +1 -1
- package/dist/resolvers.cjs +1 -1
- package/dist/resolvers.d.cts +407 -0
- package/dist/resolvers.d.ts +289 -22
- package/dist/resolvers.js +1 -1
- package/dist/types.cjs +1 -1
- package/dist/types.d.cts +74 -0
- package/dist/types.d.ts +58 -172
- package/dist/types.js +1 -1
- package/dist/utils.cjs +1 -1
- package/dist/utils.d.cts +213 -0
- package/dist/utils.d.ts +28 -26
- package/dist/utils.js +1 -1
- package/dist/valibot.cjs +1 -1
- package/dist/valibot.d.cts +156 -0
- package/dist/valibot.d.ts +11 -8
- package/dist/valibot.js +1 -1
- package/dist/validation-types.d.cts +29 -0
- package/dist/validation-types.d.ts +4 -3
- package/dist/validators.cjs +2 -1
- package/dist/validators.d.cts +116 -0
- package/dist/validators.d.ts +46 -18
- package/dist/validators.js +2 -1
- package/dist/web.cjs +4 -4
- package/dist/web.d.cts +69 -0
- package/dist/web.d.ts +28 -10
- package/dist/web.js +4 -4
- package/dist/zod.cjs +1 -1
- package/dist/zod.d.cts +135 -0
- package/dist/zod.d.ts +11 -8
- package/dist/zod.js +1 -1
- package/package.json +7 -7
- package/dist/advanced-features.test.d.ts +0 -2
- package/dist/advanced-features.test.d.ts.map +0 -1
- package/dist/audit.d.ts.map +0 -1
- package/dist/audit.test.d.ts +0 -2
- package/dist/audit.test.d.ts.map +0 -1
- package/dist/builder.d.ts.map +0 -1
- package/dist/chunk-54OHKWZJ.js +0 -1
- package/dist/chunk-FCFDGYTF.cjs +0 -15
- package/dist/chunk-HCVTYYLE.js +0 -9
- package/dist/chunk-IU5TG3HL.js +0 -15
- package/dist/chunk-J7ZHEMRP.js +0 -9
- package/dist/chunk-NKPXKLF7.js +0 -1
- package/dist/chunk-P3ZWKKKW.cjs +0 -1
- package/dist/chunk-THFGEKYL.cjs +0 -9
- package/dist/chunk-ULL4WKTV.cjs +0 -9
- package/dist/chunk-XPGSWVRT.cjs +0 -1
- package/dist/cli.d.ts.map +0 -1
- package/dist/cli.test.d.ts +0 -2
- package/dist/cli.test.d.ts.map +0 -1
- package/dist/composition.test.d.ts +0 -7
- package/dist/composition.test.d.ts.map +0 -1
- package/dist/computed.test.d.ts +0 -2
- package/dist/computed.test.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.test.d.ts +0 -2
- package/dist/index.test.d.ts.map +0 -1
- package/dist/nested.test.d.ts +0 -2
- package/dist/nested.test.d.ts.map +0 -1
- package/dist/performance.test.d.ts +0 -7
- package/dist/performance.test.d.ts.map +0 -1
- package/dist/priority.test.d.ts +0 -6
- package/dist/priority.test.d.ts.map +0 -1
- package/dist/providers.d.ts +0 -11
- package/dist/providers.d.ts.map +0 -1
- package/dist/resolver.d.ts.map +0 -1
- package/dist/resolvers.d.ts.map +0 -1
- package/dist/resolvers.test.d.ts +0 -2
- package/dist/resolvers.test.d.ts.map +0 -1
- package/dist/sync-resolvers.test.d.ts +0 -2
- package/dist/sync-resolvers.test.d.ts.map +0 -1
- package/dist/type-inference.test.d.ts +0 -2
- package/dist/type-inference.test.d.ts.map +0 -1
- package/dist/type-override.test.d.ts +0 -2
- package/dist/type-override.test.d.ts.map +0 -1
- package/dist/types.d.ts.map +0 -1
- package/dist/utils.d.ts.map +0 -1
- package/dist/utils.test.d.ts +0 -2
- package/dist/utils.test.d.ts.map +0 -1
- package/dist/valibot.d.ts.map +0 -1
- package/dist/validation-types.d.ts.map +0 -1
- package/dist/validators.d.ts.map +0 -1
- package/dist/web.d.ts.map +0 -1
- package/dist/zod.d.ts.map +0 -1
package/dist/cli.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { Resolver } from './types.js';
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* CLI argument parser resolver
|
|
3
5
|
* Converts --kebab-case flags to SCREAMING_SNAKE_CASE env vars
|
|
@@ -12,10 +14,10 @@
|
|
|
12
14
|
* import { resolve } from 'node-env-resolver';
|
|
13
15
|
* import { cliArgs } from 'node-env-resolver/cli';
|
|
14
16
|
*
|
|
15
|
-
* const config = await
|
|
17
|
+
* const config = await resolveAsync(
|
|
16
18
|
* [cliArgs(), {
|
|
17
19
|
* PORT: 3000,
|
|
18
|
-
* DATABASE_URL:
|
|
20
|
+
* DATABASE_URL: postgres(),
|
|
19
21
|
* VERBOSE: false
|
|
20
22
|
* }]
|
|
21
23
|
* );
|
|
@@ -24,8 +26,8 @@
|
|
|
24
26
|
* // config.VERBOSE === true
|
|
25
27
|
* ```
|
|
26
28
|
*/
|
|
27
|
-
|
|
28
|
-
|
|
29
|
+
|
|
30
|
+
interface CliArgsOptions {
|
|
29
31
|
/** Arguments to parse (default: process.argv.slice(2)) */
|
|
30
32
|
argv?: string[];
|
|
31
33
|
/** Prefix for flags (default: '--') */
|
|
@@ -45,5 +47,6 @@ export interface CliArgsOptions {
|
|
|
45
47
|
* @param options Configuration options
|
|
46
48
|
* @returns Resolver that parses CLI arguments
|
|
47
49
|
*/
|
|
48
|
-
|
|
49
|
-
|
|
50
|
+
declare function cliArgs(options?: CliArgsOptions): Resolver;
|
|
51
|
+
|
|
52
|
+
export { type CliArgsOptions, cliArgs };
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunk6FXCXA4R_cjs=require('./chunk-6FXCXA4R.cjs');require('./chunk-4YVXFL3I.cjs');var chunk4ZOF2PI4_cjs=require('./chunk-4ZOF2PI4.cjs'),chunkBFLXBLZ3_cjs=require('./chunk-BFLXBLZ3.cjs');require('./chunk-KIQXH265.cjs');Object.defineProperty(exports,"processEnv",{enumerable:true,get:function(){return chunk6FXCXA4R_cjs.a}});Object.defineProperty(exports,"resolve",{enumerable:true,get:function(){return chunk6FXCXA4R_cjs.b}});Object.defineProperty(exports,"resolveAsync",{enumerable:true,get:function(){return chunk6FXCXA4R_cjs.c}});Object.defineProperty(exports,"safeResolve",{enumerable:true,get:function(){return chunk6FXCXA4R_cjs.d}});Object.defineProperty(exports,"safeResolveAsync",{enumerable:true,get:function(){return chunk6FXCXA4R_cjs.e}});Object.defineProperty(exports,"clearAuditLog",{enumerable:true,get:function(){return chunk4ZOF2PI4_cjs.d}});Object.defineProperty(exports,"getAuditLog",{enumerable:true,get:function(){return chunk4ZOF2PI4_cjs.c}});Object.defineProperty(exports,"isAsyncOnlyResolver",{enumerable:true,get:function(){return chunkBFLXBLZ3_cjs.b}});Object.defineProperty(exports,"isSyncResolver",{enumerable:true,get:function(){return chunkBFLXBLZ3_cjs.a}});
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import { SimpleEnvSchema, Resolver, ResolveOptions, InferSimpleValue, SyncResolver } from './types.cjs';
|
|
2
|
+
export { AsyncResolver, EnvDefinition, EnvSchema, InferResolveResult, InferSchema, InferSimpleSchema, InferType, PolicyOptions, Provenance, SimpleEnvValue, Validator, isAsyncOnlyResolver, isSyncResolver } from './types.cjs';
|
|
3
|
+
export { SafeResolveResult as SafeResolveResultWithIssues, ValidationIssue } from './validation-types.cjs';
|
|
4
|
+
export { AuditEvent, AuditEventType, clearAuditLog, getAuditLog } from './audit.cjs';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Type-safe environment variable resolver
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```typescript
|
|
11
|
+
* import { resolve } from 'node-env-resolver';
|
|
12
|
+
* import { postgres, string } from 'node-env-resolver/resolvers';
|
|
13
|
+
*
|
|
14
|
+
* const config = resolve({
|
|
15
|
+
* PORT: 3000, // number with default
|
|
16
|
+
* DATABASE_URL: postgres(), // required PostgreSQL URL
|
|
17
|
+
* NODE_ENV: ['development', 'production'], // enum
|
|
18
|
+
* DEBUG: false, // boolean with default
|
|
19
|
+
* API_KEY: string({optional: true}), // optional string
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Resolver that reads from process.env
|
|
26
|
+
* This is the default resolver used when no custom resolvers are provided
|
|
27
|
+
*/
|
|
28
|
+
declare function processEnv(): SyncResolver;
|
|
29
|
+
interface SafeResolveResult<T> {
|
|
30
|
+
success: true;
|
|
31
|
+
data: T;
|
|
32
|
+
}
|
|
33
|
+
interface SafeResolveError {
|
|
34
|
+
success: false;
|
|
35
|
+
error: string;
|
|
36
|
+
errors?: string[];
|
|
37
|
+
}
|
|
38
|
+
type SafeResolveResultType<T> = SafeResolveResult<T> | SafeResolveError;
|
|
39
|
+
declare function resolve<T extends SimpleEnvSchema>(schema: T, options?: Partial<ResolveOptions>): {
|
|
40
|
+
[K in keyof T]: InferSimpleValue<T[K]>;
|
|
41
|
+
};
|
|
42
|
+
declare function resolve<T extends SimpleEnvSchema>(tuple: readonly [SyncResolver, T] | [SyncResolver, T], options?: Partial<ResolveOptions>): {
|
|
43
|
+
[K in keyof T]: InferSimpleValue<T[K]>;
|
|
44
|
+
};
|
|
45
|
+
declare function resolve<T1 extends SimpleEnvSchema, T2 extends SimpleEnvSchema>(tuple1: readonly [SyncResolver, T1] | [SyncResolver, T1], tuple2: readonly [SyncResolver, T2] | [SyncResolver, T2], options?: Partial<ResolveOptions>): {
|
|
46
|
+
[K in keyof (T1 & T2)]: InferSimpleValue<(T1 & T2)[K]>;
|
|
47
|
+
};
|
|
48
|
+
declare function resolve<T1 extends SimpleEnvSchema, T2 extends SimpleEnvSchema, T3 extends SimpleEnvSchema>(tuple1: readonly [SyncResolver, T1] | [SyncResolver, T1], tuple2: readonly [SyncResolver, T2] | [SyncResolver, T2], tuple3: readonly [SyncResolver, T3] | [SyncResolver, T3], options?: Partial<ResolveOptions>): {
|
|
49
|
+
[K in keyof (T1 & T2 & T3)]: InferSimpleValue<(T1 & T2 & T3)[K]>;
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* Resolve environment variables asynchronously (supports all resolver types - both sync and async)
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* ```typescript
|
|
56
|
+
* import { resolveAsync } from 'node-env-resolver';
|
|
57
|
+
* import { postgres, string } from 'node-env-resolver/resolvers';
|
|
58
|
+
* import { awsSecrets, dotenv } from 'node-env-resolver/resolvers';
|
|
59
|
+
*
|
|
60
|
+
* // Works with async-only resolvers
|
|
61
|
+
* const config = await resolveAsync([
|
|
62
|
+
* awsSecrets(),
|
|
63
|
+
* { PORT: 3000, DATABASE_URL: postgres(), API_KEY: string() }
|
|
64
|
+
* ]);
|
|
65
|
+
*
|
|
66
|
+
* // Also works with sync resolvers (automatically wrapped in Promise)
|
|
67
|
+
* const config = await resolveAsync([
|
|
68
|
+
* processEnv(), // Sync resolver works in async context
|
|
69
|
+
* { DATABASE_URL: postgres() }
|
|
70
|
+
* ], { strict: true });
|
|
71
|
+
*
|
|
72
|
+
* // Multiple resolvers - supports unlimited tuples!
|
|
73
|
+
* const config = await resolveAsync(
|
|
74
|
+
* [dotenv(), { PORT: 3000 }],
|
|
75
|
+
* [awsSecrets(), { DATABASE_URL: postgres() }],
|
|
76
|
+
* { strict: true }
|
|
77
|
+
* );
|
|
78
|
+
* ```
|
|
79
|
+
*/
|
|
80
|
+
declare function resolveAsync<T extends SimpleEnvSchema>(tuple: readonly [Resolver, T] | [Resolver, T], options?: Partial<ResolveOptions>): Promise<{
|
|
81
|
+
[K in keyof T]: InferSimpleValue<T[K]>;
|
|
82
|
+
}>;
|
|
83
|
+
declare function resolveAsync<T1 extends SimpleEnvSchema, T2 extends SimpleEnvSchema>(tuple1: readonly [Resolver, T1] | [Resolver, T1], tuple2: readonly [Resolver, T2] | [Resolver, T2], options?: Partial<ResolveOptions>): Promise<{
|
|
84
|
+
[K in keyof (T1 & T2)]: InferSimpleValue<(T1 & T2)[K]>;
|
|
85
|
+
}>;
|
|
86
|
+
declare function resolveAsync<T1 extends SimpleEnvSchema, T2 extends SimpleEnvSchema, T3 extends SimpleEnvSchema>(tuple1: readonly [Resolver, T1] | [Resolver, T1], tuple2: readonly [Resolver, T2] | [Resolver, T2], tuple3: readonly [Resolver, T3] | [Resolver, T3], options?: Partial<ResolveOptions>): Promise<{
|
|
87
|
+
[K in keyof (T1 & T2 & T3)]: InferSimpleValue<(T1 & T2 & T3)[K]>;
|
|
88
|
+
}>;
|
|
89
|
+
declare function resolveAsync<T1 extends SimpleEnvSchema, T2 extends SimpleEnvSchema, T3 extends SimpleEnvSchema, T4 extends SimpleEnvSchema>(tuple1: readonly [Resolver, T1] | [Resolver, T1], tuple2: readonly [Resolver, T2] | [Resolver, T2], tuple3: readonly [Resolver, T3] | [Resolver, T3], tuple4: readonly [Resolver, T4] | [Resolver, T4], options?: Partial<ResolveOptions>): Promise<{
|
|
90
|
+
[K in keyof (T1 & T2 & T3 & T4)]: InferSimpleValue<(T1 & T2 & T3 & T4)[K]>;
|
|
91
|
+
}>;
|
|
92
|
+
declare function resolveAsync<T1 extends SimpleEnvSchema, T2 extends SimpleEnvSchema, T3 extends SimpleEnvSchema, T4 extends SimpleEnvSchema, T5 extends SimpleEnvSchema>(tuple1: readonly [Resolver, T1] | [Resolver, T1], tuple2: readonly [Resolver, T2] | [Resolver, T2], tuple3: readonly [Resolver, T3] | [Resolver, T3], tuple4: readonly [Resolver, T4] | [Resolver, T4], tuple5: readonly [Resolver, T5] | [Resolver, T5], options?: Partial<ResolveOptions>): Promise<{
|
|
93
|
+
[K in keyof (T1 & T2 & T3 & T4 & T5)]: InferSimpleValue<(T1 & T2 & T3 & T4 & T5)[K]>;
|
|
94
|
+
}>;
|
|
95
|
+
declare function safeResolve<T extends SimpleEnvSchema>(arg1: T | [SyncResolver, T], ...rest: ([SyncResolver, T] | Partial<ResolveOptions>)[]): SafeResolveResultType<{
|
|
96
|
+
[K in keyof T]: InferSimpleValue<T[K]>;
|
|
97
|
+
}>;
|
|
98
|
+
/**
|
|
99
|
+
* Safe async resolve (doesn't throw, returns result object)
|
|
100
|
+
* Supports both sync and async resolvers
|
|
101
|
+
*
|
|
102
|
+
* @example
|
|
103
|
+
* ```typescript
|
|
104
|
+
* import { safeResolveAsync } from 'node-env-resolver';
|
|
105
|
+
* import { postgres } from 'node-env-resolver/resolvers';
|
|
106
|
+
* import { awsSecrets, dotenv } from 'node-env-resolver/resolvers';
|
|
107
|
+
*
|
|
108
|
+
* // Works with async resolvers
|
|
109
|
+
* const result = await safeResolveAsync([
|
|
110
|
+
* awsSecrets({ region: 'us-east-1' }),
|
|
111
|
+
* { PORT: 3000, DATABASE_URL: postgres() }
|
|
112
|
+
* ]);
|
|
113
|
+
*
|
|
114
|
+
* // Also works with sync resolvers
|
|
115
|
+
* const result = await safeResolveAsync([
|
|
116
|
+
* processEnv(), // Sync resolver works fine
|
|
117
|
+
* { PORT: 3000 }
|
|
118
|
+
* ]);
|
|
119
|
+
*
|
|
120
|
+
* // Multiple resolvers - supports unlimited tuples!
|
|
121
|
+
* const result = await safeResolveAsync(
|
|
122
|
+
* [dotenv(), { PORT: 3000 }],
|
|
123
|
+
* [awsSecrets(), { DATABASE_URL: postgres() }],
|
|
124
|
+
* { strict: true }
|
|
125
|
+
* );
|
|
126
|
+
*
|
|
127
|
+
* if (result.success) {
|
|
128
|
+
* console.log(result.data.PORT); // Type-safe access
|
|
129
|
+
* } else {
|
|
130
|
+
* console.error(result.error); // Detailed error message
|
|
131
|
+
* }
|
|
132
|
+
* ```
|
|
133
|
+
*/
|
|
134
|
+
declare function safeResolveAsync<T extends SimpleEnvSchema>(tuple: readonly [Resolver, T] | [Resolver, T], options?: Partial<ResolveOptions>): Promise<SafeResolveResultType<{
|
|
135
|
+
[K in keyof T]: InferSimpleValue<T[K]>;
|
|
136
|
+
}>>;
|
|
137
|
+
declare function safeResolveAsync<T1 extends SimpleEnvSchema, T2 extends SimpleEnvSchema>(tuple1: readonly [Resolver, T1] | [Resolver, T1], tuple2: readonly [Resolver, T2] | [Resolver, T2], options?: Partial<ResolveOptions>): Promise<SafeResolveResultType<{
|
|
138
|
+
[K in keyof (T1 & T2)]: InferSimpleValue<(T1 & T2)[K]>;
|
|
139
|
+
}>>;
|
|
140
|
+
declare function safeResolveAsync<T1 extends SimpleEnvSchema, T2 extends SimpleEnvSchema, T3 extends SimpleEnvSchema>(tuple1: readonly [Resolver, T1] | [Resolver, T1], tuple2: readonly [Resolver, T2] | [Resolver, T2], tuple3: readonly [Resolver, T3] | [Resolver, T3], options?: Partial<ResolveOptions>): Promise<SafeResolveResultType<{
|
|
141
|
+
[K in keyof (T1 & T2 & T3)]: InferSimpleValue<(T1 & T2 & T3)[K]>;
|
|
142
|
+
}>>;
|
|
143
|
+
declare function safeResolveAsync<T1 extends SimpleEnvSchema, T2 extends SimpleEnvSchema, T3 extends SimpleEnvSchema, T4 extends SimpleEnvSchema>(tuple1: readonly [Resolver, T1] | [Resolver, T1], tuple2: readonly [Resolver, T2] | [Resolver, T2], tuple3: readonly [Resolver, T3] | [Resolver, T3], tuple4: readonly [Resolver, T4] | [Resolver, T4], options?: Partial<ResolveOptions>): Promise<SafeResolveResultType<{
|
|
144
|
+
[K in keyof (T1 & T2 & T3 & T4)]: InferSimpleValue<(T1 & T2 & T3 & T4)[K]>;
|
|
145
|
+
}>>;
|
|
146
|
+
declare function safeResolveAsync<T1 extends SimpleEnvSchema, T2 extends SimpleEnvSchema, T3 extends SimpleEnvSchema, T4 extends SimpleEnvSchema, T5 extends SimpleEnvSchema>(tuple1: readonly [Resolver, T1] | [Resolver, T1], tuple2: readonly [Resolver, T2] | [Resolver, T2], tuple3: readonly [Resolver, T3] | [Resolver, T3], tuple4: readonly [Resolver, T4] | [Resolver, T4], tuple5: readonly [Resolver, T5] | [Resolver, T5], options?: Partial<ResolveOptions>): Promise<SafeResolveResultType<{
|
|
147
|
+
[K in keyof (T1 & T2 & T3 & T4 & T5)]: InferSimpleValue<(T1 & T2 & T3 & T4 & T5)[K]>;
|
|
148
|
+
}>>;
|
|
149
|
+
|
|
150
|
+
export { ResolveOptions, Resolver, type SafeResolveError, type SafeResolveResult, type SafeResolveResultType, SimpleEnvSchema, SyncResolver, processEnv, resolve, resolveAsync, safeResolve, safeResolveAsync };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,130 +1,126 @@
|
|
|
1
|
+
import { SimpleEnvSchema, Resolver, ResolveOptions, InferSimpleValue, SyncResolver } from './types.js';
|
|
2
|
+
export { AsyncResolver, EnvDefinition, EnvSchema, InferResolveResult, InferSchema, InferSimpleSchema, InferType, PolicyOptions, Provenance, SimpleEnvValue, Validator, isAsyncOnlyResolver, isSyncResolver } from './types.js';
|
|
3
|
+
export { SafeResolveResult as SafeResolveResultWithIssues, ValidationIssue } from './validation-types.js';
|
|
4
|
+
export { AuditEvent, AuditEventType, clearAuditLog, getAuditLog } from './audit.js';
|
|
5
|
+
|
|
1
6
|
/**
|
|
2
7
|
* Type-safe environment variable resolver
|
|
3
8
|
*
|
|
4
9
|
* @example
|
|
5
10
|
* ```typescript
|
|
6
11
|
* import { resolve } from 'node-env-resolver';
|
|
12
|
+
* import { postgres, string } from 'node-env-resolver/resolvers';
|
|
7
13
|
*
|
|
8
|
-
* const config =
|
|
14
|
+
* const config = resolve({
|
|
9
15
|
* PORT: 3000, // number with default
|
|
10
|
-
* DATABASE_URL:
|
|
16
|
+
* DATABASE_URL: postgres(), // required PostgreSQL URL
|
|
11
17
|
* NODE_ENV: ['development', 'production'], // enum
|
|
12
18
|
* DEBUG: false, // boolean with default
|
|
13
|
-
* API_KEY:
|
|
19
|
+
* API_KEY: string({optional: true}), // optional string
|
|
14
20
|
* });
|
|
15
21
|
* ```
|
|
16
22
|
*/
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Resolver that reads from process.env
|
|
26
|
+
* This is the default resolver used when no custom resolvers are provided
|
|
27
|
+
*/
|
|
28
|
+
declare function processEnv(): SyncResolver;
|
|
29
|
+
interface SafeResolveResult<T> {
|
|
24
30
|
success: true;
|
|
25
31
|
data: T;
|
|
26
32
|
}
|
|
27
|
-
|
|
33
|
+
interface SafeResolveError {
|
|
28
34
|
success: false;
|
|
29
35
|
error: string;
|
|
30
36
|
errors?: string[];
|
|
31
37
|
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
*
|
|
46
|
-
* // With custom sync resolver - array syntax
|
|
47
|
-
* const config = resolve([
|
|
48
|
-
* processEnv(),
|
|
49
|
-
* { PORT: 3000, NODE_ENV: ['dev', 'prod'] }
|
|
50
|
-
* ]);
|
|
51
|
-
*
|
|
52
|
-
* // With custom sync resolver and options
|
|
53
|
-
* const config = resolve([
|
|
54
|
-
* dotenv(),
|
|
55
|
-
* { PORT: 3000, DATABASE_URL: 'postgres' }
|
|
56
|
-
* ], { strict: true });
|
|
57
|
-
*
|
|
58
|
-
* // Multiple sync resolvers (NEW!)
|
|
59
|
-
* const config = resolve(
|
|
60
|
-
* [dotenv(), { PORT: 3000 }],
|
|
61
|
-
* [json('config.json'), { DATABASE_URL: 'postgres' }],
|
|
62
|
-
* { strict: true }
|
|
63
|
-
* );
|
|
64
|
-
*
|
|
65
|
-
* // Async resolution with resolve.async()
|
|
66
|
-
* const config = await resolve.async([
|
|
67
|
-
* awsSecrets(),
|
|
68
|
-
* { DATABASE_URL: 'url', API_KEY: 'string' }
|
|
69
|
-
* ]);
|
|
70
|
-
* ```
|
|
71
|
-
*/
|
|
72
|
-
declare function resolveImpl<T extends SimpleEnvSchema>(arg1: T | [SyncResolver, T], ...rest: ([SyncResolver, T] | Partial<ResolveOptions>)[]): InferSimpleSchema<T>;
|
|
73
|
-
declare namespace resolveImpl {
|
|
74
|
-
var async: typeof resolveAsync;
|
|
75
|
-
}
|
|
38
|
+
type SafeResolveResultType<T> = SafeResolveResult<T> | SafeResolveError;
|
|
39
|
+
declare function resolve<T extends SimpleEnvSchema>(schema: T, options?: Partial<ResolveOptions>): {
|
|
40
|
+
[K in keyof T]: InferSimpleValue<T[K]>;
|
|
41
|
+
};
|
|
42
|
+
declare function resolve<T extends SimpleEnvSchema>(tuple: readonly [SyncResolver, T] | [SyncResolver, T], options?: Partial<ResolveOptions>): {
|
|
43
|
+
[K in keyof T]: InferSimpleValue<T[K]>;
|
|
44
|
+
};
|
|
45
|
+
declare function resolve<T1 extends SimpleEnvSchema, T2 extends SimpleEnvSchema>(tuple1: readonly [SyncResolver, T1] | [SyncResolver, T1], tuple2: readonly [SyncResolver, T2] | [SyncResolver, T2], options?: Partial<ResolveOptions>): {
|
|
46
|
+
[K in keyof (T1 & T2)]: InferSimpleValue<(T1 & T2)[K]>;
|
|
47
|
+
};
|
|
48
|
+
declare function resolve<T1 extends SimpleEnvSchema, T2 extends SimpleEnvSchema, T3 extends SimpleEnvSchema>(tuple1: readonly [SyncResolver, T1] | [SyncResolver, T1], tuple2: readonly [SyncResolver, T2] | [SyncResolver, T2], tuple3: readonly [SyncResolver, T3] | [SyncResolver, T3], options?: Partial<ResolveOptions>): {
|
|
49
|
+
[K in keyof (T1 & T2 & T3)]: InferSimpleValue<(T1 & T2 & T3)[K]>;
|
|
50
|
+
};
|
|
76
51
|
/**
|
|
77
52
|
* Resolve environment variables asynchronously (supports all resolver types - both sync and async)
|
|
78
53
|
*
|
|
79
54
|
* @example
|
|
80
55
|
* ```typescript
|
|
56
|
+
* import { resolveAsync } from 'node-env-resolver';
|
|
57
|
+
* import { postgres, string } from 'node-env-resolver/resolvers';
|
|
58
|
+
* import { awsSecrets, dotenv } from 'node-env-resolver/resolvers';
|
|
59
|
+
*
|
|
81
60
|
* // Works with async-only resolvers
|
|
82
|
-
* const config = await
|
|
61
|
+
* const config = await resolveAsync([
|
|
83
62
|
* awsSecrets(),
|
|
84
|
-
* { PORT: 3000, DATABASE_URL:
|
|
63
|
+
* { PORT: 3000, DATABASE_URL: postgres(), API_KEY: string() }
|
|
85
64
|
* ]);
|
|
86
65
|
*
|
|
87
66
|
* // Also works with sync resolvers (automatically wrapped in Promise)
|
|
88
|
-
* const config = await
|
|
67
|
+
* const config = await resolveAsync([
|
|
89
68
|
* processEnv(), // Sync resolver works in async context
|
|
90
|
-
* { DATABASE_URL:
|
|
69
|
+
* { DATABASE_URL: postgres() }
|
|
91
70
|
* ], { strict: true });
|
|
92
71
|
*
|
|
93
|
-
* // Multiple resolvers
|
|
94
|
-
* const config = await
|
|
72
|
+
* // Multiple resolvers - supports unlimited tuples!
|
|
73
|
+
* const config = await resolveAsync(
|
|
95
74
|
* [dotenv(), { PORT: 3000 }],
|
|
96
|
-
* [awsSecrets(), { DATABASE_URL:
|
|
75
|
+
* [awsSecrets(), { DATABASE_URL: postgres() }],
|
|
97
76
|
* { strict: true }
|
|
98
77
|
* );
|
|
99
78
|
* ```
|
|
100
79
|
*/
|
|
101
|
-
declare function resolveAsync<T extends SimpleEnvSchema>(
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
80
|
+
declare function resolveAsync<T extends SimpleEnvSchema>(tuple: readonly [Resolver, T] | [Resolver, T], options?: Partial<ResolveOptions>): Promise<{
|
|
81
|
+
[K in keyof T]: InferSimpleValue<T[K]>;
|
|
82
|
+
}>;
|
|
83
|
+
declare function resolveAsync<T1 extends SimpleEnvSchema, T2 extends SimpleEnvSchema>(tuple1: readonly [Resolver, T1] | [Resolver, T1], tuple2: readonly [Resolver, T2] | [Resolver, T2], options?: Partial<ResolveOptions>): Promise<{
|
|
84
|
+
[K in keyof (T1 & T2)]: InferSimpleValue<(T1 & T2)[K]>;
|
|
85
|
+
}>;
|
|
86
|
+
declare function resolveAsync<T1 extends SimpleEnvSchema, T2 extends SimpleEnvSchema, T3 extends SimpleEnvSchema>(tuple1: readonly [Resolver, T1] | [Resolver, T1], tuple2: readonly [Resolver, T2] | [Resolver, T2], tuple3: readonly [Resolver, T3] | [Resolver, T3], options?: Partial<ResolveOptions>): Promise<{
|
|
87
|
+
[K in keyof (T1 & T2 & T3)]: InferSimpleValue<(T1 & T2 & T3)[K]>;
|
|
88
|
+
}>;
|
|
89
|
+
declare function resolveAsync<T1 extends SimpleEnvSchema, T2 extends SimpleEnvSchema, T3 extends SimpleEnvSchema, T4 extends SimpleEnvSchema>(tuple1: readonly [Resolver, T1] | [Resolver, T1], tuple2: readonly [Resolver, T2] | [Resolver, T2], tuple3: readonly [Resolver, T3] | [Resolver, T3], tuple4: readonly [Resolver, T4] | [Resolver, T4], options?: Partial<ResolveOptions>): Promise<{
|
|
90
|
+
[K in keyof (T1 & T2 & T3 & T4)]: InferSimpleValue<(T1 & T2 & T3 & T4)[K]>;
|
|
91
|
+
}>;
|
|
92
|
+
declare function resolveAsync<T1 extends SimpleEnvSchema, T2 extends SimpleEnvSchema, T3 extends SimpleEnvSchema, T4 extends SimpleEnvSchema, T5 extends SimpleEnvSchema>(tuple1: readonly [Resolver, T1] | [Resolver, T1], tuple2: readonly [Resolver, T2] | [Resolver, T2], tuple3: readonly [Resolver, T3] | [Resolver, T3], tuple4: readonly [Resolver, T4] | [Resolver, T4], tuple5: readonly [Resolver, T5] | [Resolver, T5], options?: Partial<ResolveOptions>): Promise<{
|
|
93
|
+
[K in keyof (T1 & T2 & T3 & T4 & T5)]: InferSimpleValue<(T1 & T2 & T3 & T4 & T5)[K]>;
|
|
94
|
+
}>;
|
|
95
|
+
declare function safeResolve<T extends SimpleEnvSchema>(arg1: T | [SyncResolver, T], ...rest: ([SyncResolver, T] | Partial<ResolveOptions>)[]): SafeResolveResultType<{
|
|
96
|
+
[K in keyof T]: InferSimpleValue<T[K]>;
|
|
97
|
+
}>;
|
|
106
98
|
/**
|
|
107
99
|
* Safe async resolve (doesn't throw, returns result object)
|
|
108
100
|
* Supports both sync and async resolvers
|
|
109
101
|
*
|
|
110
102
|
* @example
|
|
111
103
|
* ```typescript
|
|
104
|
+
* import { safeResolveAsync } from 'node-env-resolver';
|
|
105
|
+
* import { postgres } from 'node-env-resolver/resolvers';
|
|
106
|
+
* import { awsSecrets, dotenv } from 'node-env-resolver/resolvers';
|
|
107
|
+
*
|
|
112
108
|
* // Works with async resolvers
|
|
113
|
-
* const result = await
|
|
109
|
+
* const result = await safeResolveAsync([
|
|
114
110
|
* awsSecrets({ region: 'us-east-1' }),
|
|
115
|
-
* { PORT: 3000, DATABASE_URL:
|
|
111
|
+
* { PORT: 3000, DATABASE_URL: postgres() }
|
|
116
112
|
* ]);
|
|
117
113
|
*
|
|
118
114
|
* // Also works with sync resolvers
|
|
119
|
-
* const result = await
|
|
115
|
+
* const result = await safeResolveAsync([
|
|
120
116
|
* processEnv(), // Sync resolver works fine
|
|
121
117
|
* { PORT: 3000 }
|
|
122
118
|
* ]);
|
|
123
119
|
*
|
|
124
|
-
* // Multiple resolvers
|
|
125
|
-
* const result = await
|
|
120
|
+
* // Multiple resolvers - supports unlimited tuples!
|
|
121
|
+
* const result = await safeResolveAsync(
|
|
126
122
|
* [dotenv(), { PORT: 3000 }],
|
|
127
|
-
* [awsSecrets(), { DATABASE_URL:
|
|
123
|
+
* [awsSecrets(), { DATABASE_URL: postgres() }],
|
|
128
124
|
* { strict: true }
|
|
129
125
|
* );
|
|
130
126
|
*
|
|
@@ -135,7 +131,20 @@ declare namespace safeResolveImpl {
|
|
|
135
131
|
* }
|
|
136
132
|
* ```
|
|
137
133
|
*/
|
|
138
|
-
declare function safeResolveAsync<T extends SimpleEnvSchema>(
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
134
|
+
declare function safeResolveAsync<T extends SimpleEnvSchema>(tuple: readonly [Resolver, T] | [Resolver, T], options?: Partial<ResolveOptions>): Promise<SafeResolveResultType<{
|
|
135
|
+
[K in keyof T]: InferSimpleValue<T[K]>;
|
|
136
|
+
}>>;
|
|
137
|
+
declare function safeResolveAsync<T1 extends SimpleEnvSchema, T2 extends SimpleEnvSchema>(tuple1: readonly [Resolver, T1] | [Resolver, T1], tuple2: readonly [Resolver, T2] | [Resolver, T2], options?: Partial<ResolveOptions>): Promise<SafeResolveResultType<{
|
|
138
|
+
[K in keyof (T1 & T2)]: InferSimpleValue<(T1 & T2)[K]>;
|
|
139
|
+
}>>;
|
|
140
|
+
declare function safeResolveAsync<T1 extends SimpleEnvSchema, T2 extends SimpleEnvSchema, T3 extends SimpleEnvSchema>(tuple1: readonly [Resolver, T1] | [Resolver, T1], tuple2: readonly [Resolver, T2] | [Resolver, T2], tuple3: readonly [Resolver, T3] | [Resolver, T3], options?: Partial<ResolveOptions>): Promise<SafeResolveResultType<{
|
|
141
|
+
[K in keyof (T1 & T2 & T3)]: InferSimpleValue<(T1 & T2 & T3)[K]>;
|
|
142
|
+
}>>;
|
|
143
|
+
declare function safeResolveAsync<T1 extends SimpleEnvSchema, T2 extends SimpleEnvSchema, T3 extends SimpleEnvSchema, T4 extends SimpleEnvSchema>(tuple1: readonly [Resolver, T1] | [Resolver, T1], tuple2: readonly [Resolver, T2] | [Resolver, T2], tuple3: readonly [Resolver, T3] | [Resolver, T3], tuple4: readonly [Resolver, T4] | [Resolver, T4], options?: Partial<ResolveOptions>): Promise<SafeResolveResultType<{
|
|
144
|
+
[K in keyof (T1 & T2 & T3 & T4)]: InferSimpleValue<(T1 & T2 & T3 & T4)[K]>;
|
|
145
|
+
}>>;
|
|
146
|
+
declare function safeResolveAsync<T1 extends SimpleEnvSchema, T2 extends SimpleEnvSchema, T3 extends SimpleEnvSchema, T4 extends SimpleEnvSchema, T5 extends SimpleEnvSchema>(tuple1: readonly [Resolver, T1] | [Resolver, T1], tuple2: readonly [Resolver, T2] | [Resolver, T2], tuple3: readonly [Resolver, T3] | [Resolver, T3], tuple4: readonly [Resolver, T4] | [Resolver, T4], tuple5: readonly [Resolver, T5] | [Resolver, T5], options?: Partial<ResolveOptions>): Promise<SafeResolveResultType<{
|
|
147
|
+
[K in keyof (T1 & T2 & T3 & T4 & T5)]: InferSimpleValue<(T1 & T2 & T3 & T4 & T5)[K]>;
|
|
148
|
+
}>>;
|
|
149
|
+
|
|
150
|
+
export { ResolveOptions, Resolver, type SafeResolveError, type SafeResolveResult, type SafeResolveResultType, SimpleEnvSchema, SyncResolver, processEnv, resolve, resolveAsync, safeResolve, safeResolveAsync };
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as processEnv,b as resolve,c as safeResolve}from'./chunk-
|
|
1
|
+
export{a as processEnv,b as resolve,c as resolveAsync,d as safeResolve,e as safeResolveAsync}from'./chunk-BJ2QNYTS.js';import'./chunk-DIXI6MUB.js';export{d as clearAuditLog,c as getAuditLog}from'./chunk-YOHHFBZN.js';export{b as isAsyncOnlyResolver,a as isSyncResolver}from'./chunk-ZMRT37K3.js';import'./chunk-5PELJRUQ.js';
|
package/dist/resolver.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunk4YVXFL3I_cjs=require('./chunk-4YVXFL3I.cjs');require('./chunk-4ZOF2PI4.cjs'),require('./chunk-KIQXH265.cjs');Object.defineProperty(exports,"normalizeSchema",{enumerable:true,get:function(){return chunk4YVXFL3I_cjs.a}});Object.defineProperty(exports,"resolveEnvInternal",{enumerable:true,get:function(){return chunk4YVXFL3I_cjs.b}});Object.defineProperty(exports,"resolveEnvInternalSync",{enumerable:true,get:function(){return chunk4YVXFL3I_cjs.c}});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SimpleEnvSchema, EnvSchema, Resolver, ResolveOptions } from './types.cjs';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Internal resolver functions - extracted for use by both old and new APIs
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Convert simplified schema to standard EnvSchema
|
|
9
|
+
*/
|
|
10
|
+
declare function normalizeSchema(schema: SimpleEnvSchema): EnvSchema;
|
|
11
|
+
/**
|
|
12
|
+
* Internal resolver - used by both old resolve() and new env() APIs
|
|
13
|
+
*/
|
|
14
|
+
declare function resolveEnvInternal<T extends EnvSchema>(schema: T, resolvers: Resolver[], options: ResolveOptions): Promise<Record<string, unknown>>;
|
|
15
|
+
/**
|
|
16
|
+
* Internal sync resolver
|
|
17
|
+
*/
|
|
18
|
+
declare function resolveEnvInternalSync<T extends EnvSchema>(schema: T, resolvers: Resolver[], options: ResolveOptions): Record<string, unknown>;
|
|
19
|
+
|
|
20
|
+
export { normalizeSchema, resolveEnvInternal, resolveEnvInternalSync };
|
package/dist/resolver.d.ts
CHANGED
|
@@ -1,17 +1,20 @@
|
|
|
1
|
+
import { SimpleEnvSchema, EnvSchema, Resolver, ResolveOptions } from './types.js';
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* Internal resolver functions - extracted for use by both old and new APIs
|
|
3
5
|
*/
|
|
4
|
-
|
|
6
|
+
|
|
5
7
|
/**
|
|
6
8
|
* Convert simplified schema to standard EnvSchema
|
|
7
9
|
*/
|
|
8
|
-
|
|
10
|
+
declare function normalizeSchema(schema: SimpleEnvSchema): EnvSchema;
|
|
9
11
|
/**
|
|
10
12
|
* Internal resolver - used by both old resolve() and new env() APIs
|
|
11
13
|
*/
|
|
12
|
-
|
|
14
|
+
declare function resolveEnvInternal<T extends EnvSchema>(schema: T, resolvers: Resolver[], options: ResolveOptions): Promise<Record<string, unknown>>;
|
|
13
15
|
/**
|
|
14
16
|
* Internal sync resolver
|
|
15
17
|
*/
|
|
16
|
-
|
|
17
|
-
|
|
18
|
+
declare function resolveEnvInternalSync<T extends EnvSchema>(schema: T, resolvers: Resolver[], options: ResolveOptions): Record<string, unknown>;
|
|
19
|
+
|
|
20
|
+
export { normalizeSchema, resolveEnvInternal, resolveEnvInternalSync };
|
package/dist/resolver.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as normalizeSchema,b as resolveEnvInternal,c as resolveEnvInternalSync}from'./chunk-
|
|
1
|
+
export{a as normalizeSchema,b as resolveEnvInternal,c as resolveEnvInternalSync}from'./chunk-DIXI6MUB.js';import'./chunk-YOHHFBZN.js';import'./chunk-5PELJRUQ.js';
|
package/dist/resolvers.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkUCLEPPLS_cjs=require('./chunk-UCLEPPLS.cjs');require('./chunk-KIQXH265.cjs');Object.defineProperty(exports,"boolean",{enumerable:true,get:function(){return chunkUCLEPPLS_cjs.k}});Object.defineProperty(exports,"custom",{enumerable:true,get:function(){return chunkUCLEPPLS_cjs.A}});Object.defineProperty(exports,"date",{enumerable:true,get:function(){return chunkUCLEPPLS_cjs.B}});Object.defineProperty(exports,"dotenv",{enumerable:true,get:function(){return chunkUCLEPPLS_cjs.a}});Object.defineProperty(exports,"duration",{enumerable:true,get:function(){return chunkUCLEPPLS_cjs.x}});Object.defineProperty(exports,"email",{enumerable:true,get:function(){return chunkUCLEPPLS_cjs.m}});Object.defineProperty(exports,"enums",{enumerable:true,get:function(){return chunkUCLEPPLS_cjs.w}});Object.defineProperty(exports,"file",{enumerable:true,get:function(){return chunkUCLEPPLS_cjs.y}});Object.defineProperty(exports,"http",{enumerable:true,get:function(){return chunkUCLEPPLS_cjs.d}});Object.defineProperty(exports,"https",{enumerable:true,get:function(){return chunkUCLEPPLS_cjs.s}});Object.defineProperty(exports,"json",{enumerable:true,get:function(){return chunkUCLEPPLS_cjs.e}});Object.defineProperty(exports,"mongodb",{enumerable:true,get:function(){return chunkUCLEPPLS_cjs.q}});Object.defineProperty(exports,"mysql",{enumerable:true,get:function(){return chunkUCLEPPLS_cjs.p}});Object.defineProperty(exports,"number",{enumerable:true,get:function(){return chunkUCLEPPLS_cjs.j}});Object.defineProperty(exports,"numberArray",{enumerable:true,get:function(){return chunkUCLEPPLS_cjs.u}});Object.defineProperty(exports,"packageJson",{enumerable:true,get:function(){return chunkUCLEPPLS_cjs.c}});Object.defineProperty(exports,"port",{enumerable:true,get:function(){return chunkUCLEPPLS_cjs.n}});Object.defineProperty(exports,"postgres",{enumerable:true,get:function(){return chunkUCLEPPLS_cjs.o}});Object.defineProperty(exports,"processEnv",{enumerable:true,get:function(){return chunkUCLEPPLS_cjs.b}});Object.defineProperty(exports,"redis",{enumerable:true,get:function(){return chunkUCLEPPLS_cjs.r}});Object.defineProperty(exports,"secret",{enumerable:true,get:function(){return chunkUCLEPPLS_cjs.z}});Object.defineProperty(exports,"secrets",{enumerable:true,get:function(){return chunkUCLEPPLS_cjs.f}});Object.defineProperty(exports,"string",{enumerable:true,get:function(){return chunkUCLEPPLS_cjs.i}});Object.defineProperty(exports,"stringArray",{enumerable:true,get:function(){return chunkUCLEPPLS_cjs.t}});Object.defineProperty(exports,"timestamp",{enumerable:true,get:function(){return chunkUCLEPPLS_cjs.C}});Object.defineProperty(exports,"toml",{enumerable:true,get:function(){return chunkUCLEPPLS_cjs.h}});Object.defineProperty(exports,"url",{enumerable:true,get:function(){return chunkUCLEPPLS_cjs.l}});Object.defineProperty(exports,"urlArray",{enumerable:true,get:function(){return chunkUCLEPPLS_cjs.v}});Object.defineProperty(exports,"yaml",{enumerable:true,get:function(){return chunkUCLEPPLS_cjs.g}});
|