@tahminator/pipeline 1.0.28 → 1.0.30
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/env/client.d.ts +1 -1
- package/dist/env/client.js +3 -4
- package/dist/env/strategy/index.d.ts +3 -1
- package/dist/env/strategy/index.js +3 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +1 -1
package/dist/env/client.d.ts
CHANGED
package/dist/env/client.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { GitCryptEnvClientStrategy } from "./strategy
|
|
2
|
-
import { SopsEnvClientStrategy } from "./strategy/sops";
|
|
1
|
+
import { SopsEnvClientStrategy, GitCryptEnvClientStrategy, } from "./strategy";
|
|
3
2
|
import { EnvClientStrategy } from "./types";
|
|
4
3
|
export class EnvClient {
|
|
5
4
|
strategy;
|
|
@@ -15,9 +14,9 @@ export class EnvClient {
|
|
|
15
14
|
}
|
|
16
15
|
}
|
|
17
16
|
async readFromEnv(fileName, opts) {
|
|
18
|
-
return this.
|
|
17
|
+
return this.maskAndReturnEnv(await this.strategy.readFromEnv(fileName, opts));
|
|
19
18
|
}
|
|
20
|
-
|
|
19
|
+
maskAndReturnEnv(envs) {
|
|
21
20
|
for (const [varName, value] of envs.entries()) {
|
|
22
21
|
if (value === "true" || value === "false" || value === "") {
|
|
23
22
|
console.log(`Not masking ${varName}: true/false/empty value`);
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"type": "module",
|
|
4
4
|
"author": "Tahmid Ahmed",
|
|
5
5
|
"description": "A collection of Bun shell scripts that can be re-used in various CICD pipelines.",
|
|
6
|
-
"version": "1.0.
|
|
6
|
+
"version": "1.0.30",
|
|
7
7
|
"repository": {
|
|
8
8
|
"url": "git+https://github.com/tahminator/pipeline.git"
|
|
9
9
|
},
|