@liflig/load-secrets 1.1.113 → 1.1.115
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/.bun-version +1 -0
- package/.github/workflows/ci.yaml +4 -0
- package/.husky/commit-msg +1 -1
- package/Makefile +11 -27
- package/README.md +1 -1
- package/biome.jsonc +1 -1
- package/bun.lock +904 -0
- package/bunfig.toml +2 -0
- package/lib/cli/reporter.d.ts +12 -2
- package/lib/cli/reporter.js +11 -2
- package/lib/cli/reporter.js.map +1 -1
- package/mise.toml +2 -0
- package/package.json +10 -12
- package/src/cli/reporter.ts +24 -2
- package/.tool-versions +0 -1
package/bunfig.toml
ADDED
package/lib/cli/reporter.d.ts
CHANGED
|
@@ -1,4 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
type StyleFn = (text: string) => string;
|
|
2
|
+
export interface Format {
|
|
3
|
+
red: StyleFn;
|
|
4
|
+
yellow: StyleFn;
|
|
5
|
+
blue: StyleFn;
|
|
6
|
+
greenBright: StyleFn;
|
|
7
|
+
magentaBright: StyleFn;
|
|
8
|
+
yellowBright: StyleFn;
|
|
9
|
+
redBright: StyleFn;
|
|
10
|
+
}
|
|
2
11
|
export declare function createReporter(argv: Record<string, unknown>): CLIReporter;
|
|
3
12
|
export declare class CLIReporter {
|
|
4
13
|
constructor(opts?: {
|
|
@@ -13,9 +22,10 @@ export declare class CLIReporter {
|
|
|
13
22
|
};
|
|
14
23
|
nonInteractive: boolean;
|
|
15
24
|
isVerbose: boolean;
|
|
16
|
-
format:
|
|
25
|
+
format: Format;
|
|
17
26
|
error(msg: string): void;
|
|
18
27
|
log(msg: string): void;
|
|
19
28
|
warn(msg: string): void;
|
|
20
29
|
info(msg: string): void;
|
|
21
30
|
}
|
|
31
|
+
export {};
|
package/lib/cli/reporter.js
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import readline from "node:readline";
|
|
2
|
-
import
|
|
2
|
+
import { styleText } from "node:util";
|
|
3
3
|
const CLEAR_WHOLE_LINE = 0;
|
|
4
|
+
const format = {
|
|
5
|
+
red: (text) => styleText("red", text),
|
|
6
|
+
yellow: (text) => styleText("yellow", text),
|
|
7
|
+
blue: (text) => styleText("blue", text),
|
|
8
|
+
greenBright: (text) => styleText("greenBright", text),
|
|
9
|
+
magentaBright: (text) => styleText("magentaBright", text),
|
|
10
|
+
yellowBright: (text) => styleText("yellowBright", text),
|
|
11
|
+
redBright: (text) => styleText("redBright", text),
|
|
12
|
+
};
|
|
4
13
|
export function createReporter(argv) {
|
|
5
14
|
return new CLIReporter({
|
|
6
15
|
verbose: !!argv.verbose,
|
|
@@ -20,7 +29,7 @@ export class CLIReporter {
|
|
|
20
29
|
stderr = process.stderr;
|
|
21
30
|
nonInteractive;
|
|
22
31
|
isVerbose;
|
|
23
|
-
format =
|
|
32
|
+
format = format;
|
|
24
33
|
error(msg) {
|
|
25
34
|
clearLine(this.stderr);
|
|
26
35
|
this.stderr.write(`${this.format.red("error")} ${msg}\n`);
|
package/lib/cli/reporter.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reporter.js","sourceRoot":"","sources":["../../src/cli/reporter.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,eAAe,CAAA;AACpC,OAAO,
|
|
1
|
+
{"version":3,"file":"reporter.js","sourceRoot":"","sources":["../../src/cli/reporter.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,eAAe,CAAA;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AAErC,MAAM,gBAAgB,GAAG,CAAC,CAAA;AAc1B,MAAM,MAAM,GAAW;IACrB,GAAG,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,SAAS,CAAC,KAAK,EAAE,IAAI,CAAC;IACrC,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,SAAS,CAAC,QAAQ,EAAE,IAAI,CAAC;IAC3C,IAAI,EAAE,CAAC,IAA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G,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC,CAAA;IAC3D,CAAC;IAEM,GAAG,CAAC,GAAW;QACpB,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QACtB,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,GAAG,IAAI,CAAC,CAAA;IAC/B,CAAC;IAEM,IAAI,CAAC,GAAW;QACrB,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QACtB,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,GAAG,IAAI,CAAC,CAAA;IAChE,CAAC;IAEM,IAAI,CAAC,GAAW;QACrB,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QACtB,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC,CAAA;IAC3D,CAAC;CACF"}
|
package/mise.toml
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@liflig/load-secrets",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.115",
|
|
4
4
|
"description": "Library for loading project secrets into AWS Secrets Manager",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"url": "git+https://github.com/capralifecycle/load-secrets.git"
|
|
11
11
|
},
|
|
12
12
|
"scripts": {
|
|
13
|
-
"prepare": "
|
|
13
|
+
"prepare": "bun run build && husky",
|
|
14
14
|
"build": "tsc",
|
|
15
15
|
"lint": "biome check",
|
|
16
16
|
"lint:fix": "biome check --write",
|
|
@@ -18,26 +18,24 @@
|
|
|
18
18
|
"fmt": "biome format --write",
|
|
19
19
|
"fmt:check": "biome format",
|
|
20
20
|
"semantic-release": "semantic-release",
|
|
21
|
-
"upgrade-deps": "
|
|
21
|
+
"upgrade-deps": "bun update"
|
|
22
22
|
},
|
|
23
23
|
"publishConfig": {
|
|
24
24
|
"access": "public",
|
|
25
25
|
"provenance": true
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@aws-sdk/client-secrets-manager": "3.
|
|
29
|
-
"@aws-sdk/client-sts": "3.
|
|
30
|
-
"
|
|
31
|
-
"read": "5.0.1",
|
|
32
|
-
"typescript": "5.9.3"
|
|
28
|
+
"@aws-sdk/client-secrets-manager": "3.1009.0",
|
|
29
|
+
"@aws-sdk/client-sts": "3.1009.0",
|
|
30
|
+
"read": "5.0.1"
|
|
33
31
|
},
|
|
34
32
|
"devDependencies": {
|
|
35
|
-
"@biomejs/biome": "2.4.
|
|
36
|
-
"@commitlint/cli": "20.4.
|
|
37
|
-
"@commitlint/config-conventional": "20.4.
|
|
33
|
+
"@biomejs/biome": "2.4.7",
|
|
34
|
+
"@commitlint/cli": "20.4.4",
|
|
35
|
+
"@commitlint/config-conventional": "20.4.4",
|
|
38
36
|
"@types/node": "24.12.0",
|
|
39
37
|
"husky": "9.1.7",
|
|
40
|
-
"
|
|
38
|
+
"typescript": "5.9.3",
|
|
41
39
|
"semantic-release": "25.0.3"
|
|
42
40
|
}
|
|
43
41
|
}
|
package/src/cli/reporter.ts
CHANGED
|
@@ -1,8 +1,30 @@
|
|
|
1
1
|
import readline from "node:readline"
|
|
2
|
-
import
|
|
2
|
+
import { styleText } from "node:util"
|
|
3
3
|
|
|
4
4
|
const CLEAR_WHOLE_LINE = 0
|
|
5
5
|
|
|
6
|
+
type StyleFn = (text: string) => string
|
|
7
|
+
|
|
8
|
+
export interface Format {
|
|
9
|
+
red: StyleFn
|
|
10
|
+
yellow: StyleFn
|
|
11
|
+
blue: StyleFn
|
|
12
|
+
greenBright: StyleFn
|
|
13
|
+
magentaBright: StyleFn
|
|
14
|
+
yellowBright: StyleFn
|
|
15
|
+
redBright: StyleFn
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
const format: Format = {
|
|
19
|
+
red: (text) => styleText("red", text),
|
|
20
|
+
yellow: (text) => styleText("yellow", text),
|
|
21
|
+
blue: (text) => styleText("blue", text),
|
|
22
|
+
greenBright: (text) => styleText("greenBright", text),
|
|
23
|
+
magentaBright: (text) => styleText("magentaBright", text),
|
|
24
|
+
yellowBright: (text) => styleText("yellowBright", text),
|
|
25
|
+
redBright: (text) => styleText("redBright", text),
|
|
26
|
+
}
|
|
27
|
+
|
|
6
28
|
export function createReporter(argv: Record<string, unknown>): CLIReporter {
|
|
7
29
|
return new CLIReporter({
|
|
8
30
|
verbose: !!argv.verbose,
|
|
@@ -30,7 +52,7 @@ export class CLIReporter {
|
|
|
30
52
|
public stderr = process.stderr
|
|
31
53
|
public nonInteractive: boolean
|
|
32
54
|
public isVerbose: boolean
|
|
33
|
-
public format:
|
|
55
|
+
public format: Format = format
|
|
34
56
|
|
|
35
57
|
public error(msg: string): void {
|
|
36
58
|
clearLine(this.stderr)
|
package/.tool-versions
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
nodejs 24.14.0
|