@orion-js/env 3.11.8 → 4.0.0-alpha.3
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/index.cjs +9544 -0
- package/dist/index.d.ts +39 -0
- package/dist/index.js +9518 -0
- package/package.json +23 -16
- package/LICENSE +0 -21
- package/jest.config.js +0 -8
- package/lib/cli/add/encryptValue.d.ts +0 -2
- package/lib/cli/add/encryptValue.js +0 -8
- package/lib/cli/add/getConfig.d.ts +0 -2
- package/lib/cli/add/getConfig.js +0 -16
- package/lib/cli/add/getParams.d.ts +0 -5
- package/lib/cli/add/getParams.js +0 -26
- package/lib/cli/add/index.d.ts +0 -3
- package/lib/cli/add/index.js +0 -38
- package/lib/cli/index.d.ts +0 -2
- package/lib/cli/index.js +0 -43
- package/lib/cli/init/index.d.ts +0 -3
- package/lib/cli/init/index.js +0 -29
- package/lib/cli/read/index.d.ts +0 -5
- package/lib/cli/read/index.js +0 -21
- package/lib/crypto/index.d.ts +0 -13
- package/lib/crypto/index.js +0 -37
- package/lib/crypto/index.test.d.ts +0 -1
- package/lib/crypto/index.test.js +0 -30
- package/lib/crypto/tweetnacl.d.ts +0 -3
- package/lib/crypto/tweetnacl.js +0 -31
- package/lib/environment/getDts.d.ts +0 -4
- package/lib/environment/getDts.js +0 -32
- package/lib/environment/getVariables.d.ts +0 -17
- package/lib/environment/getVariables.js +0 -58
- package/lib/environment/index.d.ts +0 -8
- package/lib/environment/index.js +0 -35
- package/lib/environment/index.test.d.ts +0 -1
- package/lib/environment/index.test.js +0 -136
- package/lib/environment/load.d.ts +0 -6
- package/lib/environment/load.js +0 -33
- package/lib/files/index.d.ts +0 -3
- package/lib/files/index.js +0 -27
- package/lib/index.d.ts +0 -2
- package/lib/index.js +0 -14
- package/lib/internalGetEnv.d.ts +0 -1
- package/lib/internalGetEnv.js +0 -14
- package/tsconfig.json +0 -20
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
// Generated by dts-bundle-generator v9.5.1
|
|
2
|
+
|
|
3
|
+
export interface Config {
|
|
4
|
+
version: string;
|
|
5
|
+
publicKey: string;
|
|
6
|
+
cleanKeys: {
|
|
7
|
+
[key: string]: string;
|
|
8
|
+
};
|
|
9
|
+
encryptedKeys: {
|
|
10
|
+
[key: string]: string;
|
|
11
|
+
};
|
|
12
|
+
readFromSecret?: {
|
|
13
|
+
[key: string]: string[];
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export interface Variables {
|
|
17
|
+
[key: string]: string;
|
|
18
|
+
}
|
|
19
|
+
export declare function getDts(config: Config): string;
|
|
20
|
+
export declare function writeDtsFile(config: Config, path: string): void;
|
|
21
|
+
export declare function writeDtsFileFromConfigFile(configFilePath: string, path: string): void;
|
|
22
|
+
export interface LoadEnvOptions {
|
|
23
|
+
secretKey?: string;
|
|
24
|
+
envFilePath?: string;
|
|
25
|
+
override?: boolean;
|
|
26
|
+
}
|
|
27
|
+
export declare function loadEnv(passedOptions?: LoadEnvOptions): void;
|
|
28
|
+
interface Variables$1 {
|
|
29
|
+
[key: string]: string;
|
|
30
|
+
}
|
|
31
|
+
export declare const readEnv: () => Variables;
|
|
32
|
+
export declare const env: Variables$1;
|
|
33
|
+
export declare const internalGetEnv: (orionEnvName: string, processEnvName: string) => string | null;
|
|
34
|
+
|
|
35
|
+
export {
|
|
36
|
+
Variables$1 as Variables,
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export {};
|