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.
Files changed (109) hide show
  1. package/README.md +289 -251
  2. package/dist/audit.d.cts +29 -0
  3. package/dist/audit.d.ts +8 -7
  4. package/dist/builder.cjs +1 -1
  5. package/dist/builder.d.cts +149 -0
  6. package/dist/builder.d.ts +17 -14
  7. package/dist/builder.js +1 -1
  8. package/dist/chunk-4YVXFL3I.cjs +9 -0
  9. package/dist/chunk-6FXCXA4R.cjs +11 -0
  10. package/dist/chunk-BFLXBLZ3.cjs +1 -0
  11. package/dist/chunk-BJ2QNYTS.js +11 -0
  12. package/dist/chunk-DIXI6MUB.js +9 -0
  13. package/dist/chunk-P3TTYVEW.js +16 -0
  14. package/dist/chunk-UCLEPPLS.cjs +16 -0
  15. package/dist/chunk-ZMRT37K3.js +1 -0
  16. package/dist/cli.d.cts +52 -0
  17. package/dist/cli.d.ts +9 -6
  18. package/dist/index.cjs +1 -1
  19. package/dist/index.d.cts +150 -0
  20. package/dist/index.d.ts +86 -77
  21. package/dist/index.js +1 -1
  22. package/dist/resolver.cjs +1 -1
  23. package/dist/resolver.d.cts +20 -0
  24. package/dist/resolver.d.ts +8 -5
  25. package/dist/resolver.js +1 -1
  26. package/dist/resolvers.cjs +1 -1
  27. package/dist/resolvers.d.cts +407 -0
  28. package/dist/resolvers.d.ts +289 -22
  29. package/dist/resolvers.js +1 -1
  30. package/dist/types.cjs +1 -1
  31. package/dist/types.d.cts +74 -0
  32. package/dist/types.d.ts +58 -172
  33. package/dist/types.js +1 -1
  34. package/dist/utils.cjs +1 -1
  35. package/dist/utils.d.cts +213 -0
  36. package/dist/utils.d.ts +28 -26
  37. package/dist/utils.js +1 -1
  38. package/dist/valibot.cjs +1 -1
  39. package/dist/valibot.d.cts +156 -0
  40. package/dist/valibot.d.ts +11 -8
  41. package/dist/valibot.js +1 -1
  42. package/dist/validation-types.d.cts +29 -0
  43. package/dist/validation-types.d.ts +4 -3
  44. package/dist/validators.cjs +2 -1
  45. package/dist/validators.d.cts +116 -0
  46. package/dist/validators.d.ts +46 -18
  47. package/dist/validators.js +2 -1
  48. package/dist/web.cjs +4 -4
  49. package/dist/web.d.cts +69 -0
  50. package/dist/web.d.ts +28 -10
  51. package/dist/web.js +4 -4
  52. package/dist/zod.cjs +1 -1
  53. package/dist/zod.d.cts +135 -0
  54. package/dist/zod.d.ts +11 -8
  55. package/dist/zod.js +1 -1
  56. package/package.json +7 -7
  57. package/dist/advanced-features.test.d.ts +0 -2
  58. package/dist/advanced-features.test.d.ts.map +0 -1
  59. package/dist/audit.d.ts.map +0 -1
  60. package/dist/audit.test.d.ts +0 -2
  61. package/dist/audit.test.d.ts.map +0 -1
  62. package/dist/builder.d.ts.map +0 -1
  63. package/dist/chunk-54OHKWZJ.js +0 -1
  64. package/dist/chunk-FCFDGYTF.cjs +0 -15
  65. package/dist/chunk-HCVTYYLE.js +0 -9
  66. package/dist/chunk-IU5TG3HL.js +0 -15
  67. package/dist/chunk-J7ZHEMRP.js +0 -9
  68. package/dist/chunk-NKPXKLF7.js +0 -1
  69. package/dist/chunk-P3ZWKKKW.cjs +0 -1
  70. package/dist/chunk-THFGEKYL.cjs +0 -9
  71. package/dist/chunk-ULL4WKTV.cjs +0 -9
  72. package/dist/chunk-XPGSWVRT.cjs +0 -1
  73. package/dist/cli.d.ts.map +0 -1
  74. package/dist/cli.test.d.ts +0 -2
  75. package/dist/cli.test.d.ts.map +0 -1
  76. package/dist/composition.test.d.ts +0 -7
  77. package/dist/composition.test.d.ts.map +0 -1
  78. package/dist/computed.test.d.ts +0 -2
  79. package/dist/computed.test.d.ts.map +0 -1
  80. package/dist/index.d.ts.map +0 -1
  81. package/dist/index.test.d.ts +0 -2
  82. package/dist/index.test.d.ts.map +0 -1
  83. package/dist/nested.test.d.ts +0 -2
  84. package/dist/nested.test.d.ts.map +0 -1
  85. package/dist/performance.test.d.ts +0 -7
  86. package/dist/performance.test.d.ts.map +0 -1
  87. package/dist/priority.test.d.ts +0 -6
  88. package/dist/priority.test.d.ts.map +0 -1
  89. package/dist/providers.d.ts +0 -11
  90. package/dist/providers.d.ts.map +0 -1
  91. package/dist/resolver.d.ts.map +0 -1
  92. package/dist/resolvers.d.ts.map +0 -1
  93. package/dist/resolvers.test.d.ts +0 -2
  94. package/dist/resolvers.test.d.ts.map +0 -1
  95. package/dist/sync-resolvers.test.d.ts +0 -2
  96. package/dist/sync-resolvers.test.d.ts.map +0 -1
  97. package/dist/type-inference.test.d.ts +0 -2
  98. package/dist/type-inference.test.d.ts.map +0 -1
  99. package/dist/type-override.test.d.ts +0 -2
  100. package/dist/type-override.test.d.ts.map +0 -1
  101. package/dist/types.d.ts.map +0 -1
  102. package/dist/utils.d.ts.map +0 -1
  103. package/dist/utils.test.d.ts +0 -2
  104. package/dist/utils.test.d.ts.map +0 -1
  105. package/dist/valibot.d.ts.map +0 -1
  106. package/dist/validation-types.d.ts.map +0 -1
  107. package/dist/validators.d.ts.map +0 -1
  108. package/dist/web.d.ts.map +0 -1
  109. 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 resolve.async(
17
+ * const config = await resolveAsync(
16
18
  * [cliArgs(), {
17
19
  * PORT: 3000,
18
- * DATABASE_URL: 'postgres',
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
- import type { Resolver } from './types';
28
- export interface CliArgsOptions {
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
- export declare function cliArgs(options?: CliArgsOptions): Resolver;
49
- //# sourceMappingURL=cli.d.ts.map
50
+ declare function cliArgs(options?: CliArgsOptions): Resolver;
51
+
52
+ export { type CliArgsOptions, cliArgs };
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- 'use strict';var chunkTHFGEKYL_cjs=require('./chunk-THFGEKYL.cjs');require('./chunk-ULL4WKTV.cjs'),require('./chunk-XPGSWVRT.cjs');var chunk4ZOF2PI4_cjs=require('./chunk-4ZOF2PI4.cjs'),chunkP3ZWKKKW_cjs=require('./chunk-P3ZWKKKW.cjs');require('./chunk-KIQXH265.cjs');Object.defineProperty(exports,"processEnv",{enumerable:true,get:function(){return chunkTHFGEKYL_cjs.a}});Object.defineProperty(exports,"resolve",{enumerable:true,get:function(){return chunkTHFGEKYL_cjs.b}});Object.defineProperty(exports,"safeResolve",{enumerable:true,get:function(){return chunkTHFGEKYL_cjs.c}});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 chunkP3ZWKKKW_cjs.b}});Object.defineProperty(exports,"isSyncResolver",{enumerable:true,get:function(){return chunkP3ZWKKKW_cjs.a}});
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}});
@@ -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 = await resolve({
14
+ * const config = resolve({
9
15
  * PORT: 3000, // number with default
10
- * DATABASE_URL: 'url', // required secret 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: 'string?', // optional string
19
+ * API_KEY: string({optional: true}), // optional string
14
20
  * });
15
21
  * ```
16
22
  */
17
- import type { Resolver, SyncResolver, ResolveOptions, SimpleEnvSchema, InferSimpleSchema } from './types';
18
- export type { EnvDefinition, EnvSchema, Resolver, SyncResolver, AsyncOnlyResolver, ResolveOptions, Provenance, PolicyOptions, SimpleEnvValue, SimpleEnvSchema, InferType, InferSchema, InferSimpleSchema, } from './types';
19
- export { isSyncResolver, isAsyncOnlyResolver } from './types';
20
- export type { ValidationIssue, SafeResolveResult as SafeResolveResultWithIssues } from './validation-types';
21
- export { getAuditLog, clearAuditLog, type AuditEvent, type AuditEventType } from './audit';
22
- export declare function processEnv(): SyncResolver;
23
- export interface SafeResolveResult<T> {
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
- export interface SafeResolveError {
33
+ interface SafeResolveError {
28
34
  success: false;
29
35
  error: string;
30
36
  errors?: string[];
31
37
  }
32
- export type SafeResolveResultType<T> = SafeResolveResult<T> | SafeResolveError;
33
- /**
34
- * Resolve environment variables synchronously
35
- *
36
- * @example
37
- * ```typescript
38
- * // Simple usage - process.env only (default)
39
- * const config = resolve({
40
- * PORT: 3000, // number with default
41
- * DATABASE_URL: 'url', // required secret url
42
- * NODE_ENV: ['dev', 'prod'], // enum
43
- * FEATURE_FLAG: 'string?', // optional string
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 resolve.async([
61
+ * const config = await resolveAsync([
83
62
  * awsSecrets(),
84
- * { PORT: 3000, DATABASE_URL: 'url', API_KEY: 'string' }
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 resolve.async([
67
+ * const config = await resolveAsync([
89
68
  * processEnv(), // Sync resolver works in async context
90
- * { DATABASE_URL: 'postgres' }
69
+ * { DATABASE_URL: postgres() }
91
70
  * ], { strict: true });
92
71
  *
93
- * // Multiple resolvers
94
- * const config = await resolve.async(
72
+ * // Multiple resolvers - supports unlimited tuples!
73
+ * const config = await resolveAsync(
95
74
  * [dotenv(), { PORT: 3000 }],
96
- * [awsSecrets(), { DATABASE_URL: 'url' }],
75
+ * [awsSecrets(), { DATABASE_URL: postgres() }],
97
76
  * { strict: true }
98
77
  * );
99
78
  * ```
100
79
  */
101
- declare function resolveAsync<T extends SimpleEnvSchema>(arg1: [Resolver, T] | Partial<ResolveOptions>, ...rest: ([Resolver, T] | Partial<ResolveOptions>)[]): Promise<InferSimpleSchema<T>>;
102
- declare function safeResolveImpl<T extends SimpleEnvSchema>(arg1: T | [SyncResolver, T], ...rest: ([SyncResolver, T] | Partial<ResolveOptions>)[]): SafeResolveResultType<InferSimpleSchema<T>>;
103
- declare namespace safeResolveImpl {
104
- var async: typeof safeResolveAsync;
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 safeResolve.async([
109
+ * const result = await safeResolveAsync([
114
110
  * awsSecrets({ region: 'us-east-1' }),
115
- * { PORT: 3000, DATABASE_URL: 'url' }
111
+ * { PORT: 3000, DATABASE_URL: postgres() }
116
112
  * ]);
117
113
  *
118
114
  * // Also works with sync resolvers
119
- * const result = await safeResolve.async([
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 safeResolve.async(
120
+ * // Multiple resolvers - supports unlimited tuples!
121
+ * const result = await safeResolveAsync(
126
122
  * [dotenv(), { PORT: 3000 }],
127
- * [awsSecrets(), { DATABASE_URL: '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>(arg1: [Resolver, T] | Partial<ResolveOptions>, ...rest: ([Resolver, T] | Partial<ResolveOptions>)[]): Promise<SafeResolveResultType<InferSimpleSchema<T>>>;
139
- export declare const resolve: typeof resolveImpl;
140
- export declare const safeResolve: typeof safeResolveImpl;
141
- //# sourceMappingURL=index.d.ts.map
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-HCVTYYLE.js';import'./chunk-J7ZHEMRP.js';import'./chunk-NKPXKLF7.js';export{d as clearAuditLog,c as getAuditLog}from'./chunk-YOHHFBZN.js';export{b as isAsyncOnlyResolver,a as isSyncResolver}from'./chunk-54OHKWZJ.js';import'./chunk-5PELJRUQ.js';
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 chunkULL4WKTV_cjs=require('./chunk-ULL4WKTV.cjs');require('./chunk-XPGSWVRT.cjs'),require('./chunk-4ZOF2PI4.cjs'),require('./chunk-KIQXH265.cjs');Object.defineProperty(exports,"normalizeSchema",{enumerable:true,get:function(){return chunkULL4WKTV_cjs.a}});Object.defineProperty(exports,"resolveEnvInternal",{enumerable:true,get:function(){return chunkULL4WKTV_cjs.b}});Object.defineProperty(exports,"resolveEnvInternalSync",{enumerable:true,get:function(){return chunkULL4WKTV_cjs.c}});
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 };
@@ -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
- import type { Resolver, EnvSchema, SimpleEnvSchema, ResolveOptions } from './types';
6
+
5
7
  /**
6
8
  * Convert simplified schema to standard EnvSchema
7
9
  */
8
- export declare function normalizeSchema(schema: SimpleEnvSchema): EnvSchema;
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
- export declare function resolveEnvInternal<T extends EnvSchema>(schema: T, resolvers: Resolver[], options: ResolveOptions): Promise<Record<string, unknown>>;
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
- export declare function resolveEnvInternalSync<T extends EnvSchema>(schema: T, resolvers: Resolver[], options: ResolveOptions): Record<string, unknown>;
17
- //# sourceMappingURL=resolver.d.ts.map
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-J7ZHEMRP.js';import'./chunk-NKPXKLF7.js';import'./chunk-YOHHFBZN.js';import'./chunk-5PELJRUQ.js';
1
+ export{a as normalizeSchema,b as resolveEnvInternal,c as resolveEnvInternalSync}from'./chunk-DIXI6MUB.js';import'./chunk-YOHHFBZN.js';import'./chunk-5PELJRUQ.js';
@@ -1 +1 @@
1
- 'use strict';var chunkFCFDGYTF_cjs=require('./chunk-FCFDGYTF.cjs');require('./chunk-KIQXH265.cjs');Object.defineProperty(exports,"dotenv",{enumerable:true,get:function(){return chunkFCFDGYTF_cjs.a}});Object.defineProperty(exports,"http",{enumerable:true,get:function(){return chunkFCFDGYTF_cjs.d}});Object.defineProperty(exports,"json",{enumerable:true,get:function(){return chunkFCFDGYTF_cjs.e}});Object.defineProperty(exports,"packageJson",{enumerable:true,get:function(){return chunkFCFDGYTF_cjs.c}});Object.defineProperty(exports,"processEnv",{enumerable:true,get:function(){return chunkFCFDGYTF_cjs.b}});Object.defineProperty(exports,"secrets",{enumerable:true,get:function(){return chunkFCFDGYTF_cjs.f}});Object.defineProperty(exports,"toml",{enumerable:true,get:function(){return chunkFCFDGYTF_cjs.h}});Object.defineProperty(exports,"yaml",{enumerable:true,get:function(){return chunkFCFDGYTF_cjs.g}});
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}});