@kitsy/cnos 1.9.2 → 1.11.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/dist/build/index.cjs +523 -80
- package/dist/build/index.d.cts +1 -1
- package/dist/build/index.d.ts +1 -1
- package/dist/build/index.js +13 -15
- package/dist/{chunk-6QQPHDUI.js → chunk-2DMCB3PK.js} +1 -1
- package/dist/{chunk-LURQ4LAK.js → chunk-5JGNRADB.js} +1 -1
- package/dist/{chunk-2JBA2LXU.js → chunk-DPC2BV3S.js} +35 -6
- package/dist/{chunk-7JZO6XN3.js → chunk-KJ57PF47.js} +1 -1
- package/dist/{chunk-CPGRRZLP.js → chunk-NFGPS7VJ.js} +8 -8
- package/dist/{chunk-A2WG3ZKW.js → chunk-NU25VFA2.js} +1 -1
- package/dist/{chunk-L7JVECPE.js → chunk-RNTTPI5S.js} +1 -1
- package/dist/{chunk-NVFACB64.js → chunk-T3E57MSQ.js} +1 -1
- package/dist/{chunk-7KVM5PUW.js → chunk-WPB4HB2K.js} +478 -61
- package/dist/{chunk-QK7BMU47.js → chunk-XGK6DXQL.js} +157 -37
- package/dist/configure/index.cjs +521 -76
- package/dist/configure/index.d.cts +3 -3
- package/dist/configure/index.d.ts +3 -3
- package/dist/configure/index.js +8 -8
- package/dist/{core-zDTUSVx9.d.cts → core-BW8SLnRx.d.cts} +46 -7
- package/dist/{core-zDTUSVx9.d.ts → core-BW8SLnRx.d.ts} +46 -7
- package/dist/{envNaming-EFzezmB3.d.cts → envNaming-1rk7BR0e.d.cts} +1 -1
- package/dist/{envNaming-BkorOKW_.d.ts → envNaming-CjL28IeH.d.ts} +1 -1
- package/dist/index.cjs +672 -108
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +10 -10
- package/dist/internal.cjs +378 -54
- package/dist/internal.d.cts +32 -4
- package/dist/internal.d.ts +32 -4
- package/dist/internal.js +141 -23
- package/dist/plugin/basic-schema.cjs +13 -3
- package/dist/plugin/basic-schema.d.cts +1 -1
- package/dist/plugin/basic-schema.d.ts +1 -1
- package/dist/plugin/basic-schema.js +2 -2
- package/dist/plugin/cli-args.cjs +4 -1
- package/dist/plugin/cli-args.d.cts +1 -1
- package/dist/plugin/cli-args.d.ts +1 -1
- package/dist/plugin/cli-args.js +2 -2
- package/dist/plugin/dotenv.cjs +40 -8
- package/dist/plugin/dotenv.d.cts +2 -2
- package/dist/plugin/dotenv.d.ts +2 -2
- package/dist/plugin/dotenv.js +2 -2
- package/dist/plugin/env-export.cjs +5 -2
- package/dist/plugin/env-export.d.cts +2 -2
- package/dist/plugin/env-export.d.ts +2 -2
- package/dist/plugin/env-export.js +2 -2
- package/dist/plugin/filesystem.cjs +13 -10
- package/dist/plugin/filesystem.d.cts +1 -1
- package/dist/plugin/filesystem.d.ts +1 -1
- package/dist/plugin/filesystem.js +2 -2
- package/dist/plugin/process-env.cjs +4 -1
- package/dist/plugin/process-env.d.cts +2 -2
- package/dist/plugin/process-env.d.ts +2 -2
- package/dist/plugin/process-env.js +2 -2
- package/dist/runtime/index.cjs +672 -108
- package/dist/runtime/index.d.cts +13 -6
- package/dist/runtime/index.d.ts +13 -6
- package/dist/runtime/index.js +10 -10
- package/dist/{toPublicEnv-Ds1DRwCX.d.cts → toPublicEnv-CZzpvhGg.d.cts} +1 -1
- package/dist/{toPublicEnv-CT265rzS.d.ts → toPublicEnv-CmydGcxg.d.ts} +1 -1
- package/package.json +1 -1
package/dist/runtime/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as LogicalKey, g as CnosRuntime, I as InspectResult } from '../core-
|
|
1
|
+
import { b as LogicalKey, g as CnosRuntime, s as SecretVaultProviderFactory, C as CnosCreateOptions, I as InspectResult } from '../core-BW8SLnRx.cjs';
|
|
2
2
|
|
|
3
3
|
interface CnosSingleton {
|
|
4
4
|
<T = unknown>(key: LogicalKey): T | undefined;
|
|
@@ -14,11 +14,16 @@ interface CnosSingleton {
|
|
|
14
14
|
toPublicEnv(options?: Parameters<CnosRuntime['toPublicEnv']>[0]): ReturnType<CnosRuntime['toPublicEnv']>;
|
|
15
15
|
format(message: string): string;
|
|
16
16
|
log(message: string): string;
|
|
17
|
-
loadProjection(source: string): Promise<void>;
|
|
17
|
+
loadProjection(source: string, options?: CnosSingletonProjectionOptions): Promise<void>;
|
|
18
18
|
registerRuntimeProvider(namespace: string, provider: Parameters<CnosRuntime['registerRuntimeProvider']>[1]): void;
|
|
19
|
+
registerSecretVaultProvider(factory: SecretVaultProviderFactory): void;
|
|
20
|
+
registerSecretVaultProviders(factories: SecretVaultProviderFactory[]): void;
|
|
19
21
|
refreshSecrets(): Promise<void>;
|
|
20
22
|
refreshSecret(key: LogicalKey): Promise<void>;
|
|
21
|
-
ready(): Promise<void>;
|
|
23
|
+
ready(options?: CnosCreateOptions): Promise<void>;
|
|
24
|
+
}
|
|
25
|
+
interface CnosSingletonProjectionOptions {
|
|
26
|
+
secretVaultProviders?: SecretVaultProviderFactory[];
|
|
22
27
|
}
|
|
23
28
|
declare const cnos: CnosSingleton & {
|
|
24
29
|
read<T = unknown>(key: LogicalKey): T | undefined;
|
|
@@ -33,11 +38,13 @@ declare const cnos: CnosSingleton & {
|
|
|
33
38
|
toPublicEnv(options: Parameters<CnosRuntime["toPublicEnv"]>[0]): Record<string, string>;
|
|
34
39
|
format(message: string): string;
|
|
35
40
|
log(message: string): string;
|
|
36
|
-
loadProjection(source: string): Promise<void>;
|
|
41
|
+
loadProjection(source: string, options?: CnosSingletonProjectionOptions): Promise<void>;
|
|
37
42
|
registerRuntimeProvider(namespace: string, provider: Parameters<CnosRuntime["registerRuntimeProvider"]>[1]): void;
|
|
43
|
+
registerSecretVaultProvider(factory: SecretVaultProviderFactory): void;
|
|
44
|
+
registerSecretVaultProviders(factories: SecretVaultProviderFactory[]): void;
|
|
38
45
|
refreshSecrets(): Promise<void>;
|
|
39
46
|
refreshSecret(key: LogicalKey): Promise<void>;
|
|
40
|
-
ready(): Promise<void>;
|
|
47
|
+
ready(options?: CnosCreateOptions): Promise<void>;
|
|
41
48
|
};
|
|
42
49
|
|
|
43
|
-
export { type CnosSingleton, cnos as default };
|
|
50
|
+
export { type CnosSingleton, type CnosSingletonProjectionOptions, cnos as default };
|
package/dist/runtime/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as LogicalKey, g as CnosRuntime, I as InspectResult } from '../core-
|
|
1
|
+
import { b as LogicalKey, g as CnosRuntime, s as SecretVaultProviderFactory, C as CnosCreateOptions, I as InspectResult } from '../core-BW8SLnRx.js';
|
|
2
2
|
|
|
3
3
|
interface CnosSingleton {
|
|
4
4
|
<T = unknown>(key: LogicalKey): T | undefined;
|
|
@@ -14,11 +14,16 @@ interface CnosSingleton {
|
|
|
14
14
|
toPublicEnv(options?: Parameters<CnosRuntime['toPublicEnv']>[0]): ReturnType<CnosRuntime['toPublicEnv']>;
|
|
15
15
|
format(message: string): string;
|
|
16
16
|
log(message: string): string;
|
|
17
|
-
loadProjection(source: string): Promise<void>;
|
|
17
|
+
loadProjection(source: string, options?: CnosSingletonProjectionOptions): Promise<void>;
|
|
18
18
|
registerRuntimeProvider(namespace: string, provider: Parameters<CnosRuntime['registerRuntimeProvider']>[1]): void;
|
|
19
|
+
registerSecretVaultProvider(factory: SecretVaultProviderFactory): void;
|
|
20
|
+
registerSecretVaultProviders(factories: SecretVaultProviderFactory[]): void;
|
|
19
21
|
refreshSecrets(): Promise<void>;
|
|
20
22
|
refreshSecret(key: LogicalKey): Promise<void>;
|
|
21
|
-
ready(): Promise<void>;
|
|
23
|
+
ready(options?: CnosCreateOptions): Promise<void>;
|
|
24
|
+
}
|
|
25
|
+
interface CnosSingletonProjectionOptions {
|
|
26
|
+
secretVaultProviders?: SecretVaultProviderFactory[];
|
|
22
27
|
}
|
|
23
28
|
declare const cnos: CnosSingleton & {
|
|
24
29
|
read<T = unknown>(key: LogicalKey): T | undefined;
|
|
@@ -33,11 +38,13 @@ declare const cnos: CnosSingleton & {
|
|
|
33
38
|
toPublicEnv(options: Parameters<CnosRuntime["toPublicEnv"]>[0]): Record<string, string>;
|
|
34
39
|
format(message: string): string;
|
|
35
40
|
log(message: string): string;
|
|
36
|
-
loadProjection(source: string): Promise<void>;
|
|
41
|
+
loadProjection(source: string, options?: CnosSingletonProjectionOptions): Promise<void>;
|
|
37
42
|
registerRuntimeProvider(namespace: string, provider: Parameters<CnosRuntime["registerRuntimeProvider"]>[1]): void;
|
|
43
|
+
registerSecretVaultProvider(factory: SecretVaultProviderFactory): void;
|
|
44
|
+
registerSecretVaultProviders(factories: SecretVaultProviderFactory[]): void;
|
|
38
45
|
refreshSecrets(): Promise<void>;
|
|
39
46
|
refreshSecret(key: LogicalKey): Promise<void>;
|
|
40
|
-
ready(): Promise<void>;
|
|
47
|
+
ready(options?: CnosCreateOptions): Promise<void>;
|
|
41
48
|
};
|
|
42
49
|
|
|
43
|
-
export { type CnosSingleton, cnos as default };
|
|
50
|
+
export { type CnosSingleton, type CnosSingletonProjectionOptions, cnos as default };
|
package/dist/runtime/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runtime_default
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-XGK6DXQL.js";
|
|
4
|
+
import "../chunk-T3E57MSQ.js";
|
|
5
|
+
import "../chunk-NFGPS7VJ.js";
|
|
6
|
+
import "../chunk-5JGNRADB.js";
|
|
7
|
+
import "../chunk-NU25VFA2.js";
|
|
8
|
+
import "../chunk-RNTTPI5S.js";
|
|
9
|
+
import "../chunk-2DMCB3PK.js";
|
|
10
|
+
import "../chunk-KJ57PF47.js";
|
|
11
|
+
import "../chunk-DPC2BV3S.js";
|
|
12
|
+
import "../chunk-WPB4HB2K.js";
|
|
13
13
|
export {
|
|
14
14
|
runtime_default as default
|
|
15
15
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as ResolvedGraph, N as NormalizedManifest, T as ToEnvOptions, c as ToPublicEnvOptions } from './core-
|
|
1
|
+
import { R as ResolvedGraph, N as NormalizedManifest, T as ToEnvOptions, c as ToPublicEnvOptions } from './core-BW8SLnRx.cjs';
|
|
2
2
|
|
|
3
3
|
declare function toEnv(graph: ResolvedGraph, manifest: NormalizedManifest, options?: ToEnvOptions, helpers?: {
|
|
4
4
|
read?: (key: string) => unknown;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as ResolvedGraph, N as NormalizedManifest, T as ToEnvOptions, c as ToPublicEnvOptions } from './core-
|
|
1
|
+
import { R as ResolvedGraph, N as NormalizedManifest, T as ToEnvOptions, c as ToPublicEnvOptions } from './core-BW8SLnRx.js';
|
|
2
2
|
|
|
3
3
|
declare function toEnv(graph: ResolvedGraph, manifest: NormalizedManifest, options?: ToEnvOptions, helpers?: {
|
|
4
4
|
read?: (key: string) => unknown;
|