@gearbox-protocol/cli-utils 5.36.3 → 5.36.5
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/CensoredString.js
CHANGED
|
@@ -6,13 +6,14 @@ export class CensoredString {
|
|
|
6
6
|
}
|
|
7
7
|
constructor(value) {
|
|
8
8
|
this.#value = value;
|
|
9
|
-
let visibleLen = Math.floor(0.2 * value.length);
|
|
9
|
+
let visibleLen = Math.min(4, Math.floor(0.2 * value.length));
|
|
10
10
|
if (visibleLen < 1) {
|
|
11
|
-
this.#censored = "*".repeat(value.length);
|
|
11
|
+
this.#censored = "*".repeat(Math.min(8, value.length));
|
|
12
12
|
}
|
|
13
13
|
else {
|
|
14
14
|
this.#censored =
|
|
15
|
-
"*".repeat(value.length - visibleLen) +
|
|
15
|
+
"*".repeat(Math.min(8, value.length - visibleLen)) +
|
|
16
|
+
value.slice(-1 * visibleLen);
|
|
16
17
|
}
|
|
17
18
|
}
|
|
18
19
|
get value() {
|
package/dist/CensoredURL.js
CHANGED
|
@@ -21,14 +21,15 @@ export class CensoredURL {
|
|
|
21
21
|
u.search = "";
|
|
22
22
|
this.#censored = u.href + "******";
|
|
23
23
|
}
|
|
24
|
-
catch
|
|
25
|
-
let visibleLen = Math.floor(0.2 * url.length);
|
|
24
|
+
catch {
|
|
25
|
+
let visibleLen = Math.min(4, Math.floor(0.2 * url.length));
|
|
26
26
|
if (visibleLen < 1) {
|
|
27
|
-
this.#censored = "*".repeat(url.length);
|
|
27
|
+
this.#censored = "*".repeat(Math.min(8, url.length));
|
|
28
28
|
}
|
|
29
29
|
else {
|
|
30
30
|
this.#censored =
|
|
31
|
-
"*".repeat(url.length - visibleLen) +
|
|
31
|
+
"*".repeat(Math.min(8, url.length - visibleLen)) +
|
|
32
|
+
url.slice(-1 * visibleLen);
|
|
32
33
|
}
|
|
33
34
|
}
|
|
34
35
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
|
-
export declare const boolLike: z.ZodUnion<readonly [z.ZodCoercedBoolean<unknown>, z.ZodPipe<z.
|
|
2
|
+
export declare const boolLike: z.ZodUnion<readonly [z.ZodCoercedBoolean<unknown>, z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<boolean, string>>, z.ZodBoolean>]>;
|
|
3
3
|
export declare const stringArrayLike: z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>;
|
|
4
4
|
export declare const optionalStringArrayLike: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>>, z.ZodTransform<string[] | undefined, string[] | undefined>>;
|
|
5
5
|
/**
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gearbox-protocol/cli-utils",
|
|
3
3
|
"description": "Utils for creating cli apps",
|
|
4
|
-
"version": "5.36.
|
|
4
|
+
"version": "5.36.5",
|
|
5
5
|
"homepage": "https://gearbox.fi",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"gearbox"
|
|
@@ -33,18 +33,18 @@
|
|
|
33
33
|
"package:version": "yarn version"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@aws-sdk/client-secrets-manager": "^3.
|
|
37
|
-
"@aws-sdk/client-ssm": "^3.
|
|
36
|
+
"@aws-sdk/client-secrets-manager": "^3.828.0",
|
|
37
|
+
"@aws-sdk/client-ssm": "^3.828.0",
|
|
38
38
|
"abitype": "^1.0.8",
|
|
39
39
|
"commander": "^14.0.0",
|
|
40
40
|
"lodash-es": "^4.17.21",
|
|
41
41
|
"yaml": "^2.8.0",
|
|
42
|
-
"zod": "^3.25.
|
|
42
|
+
"zod": "^3.25.63"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@commander-js/extra-typings": "^14.0.0",
|
|
46
46
|
"@types/lodash-es": "^4.17.12",
|
|
47
|
-
"@types/node": "^
|
|
47
|
+
"@types/node": "^24.0.1"
|
|
48
48
|
},
|
|
49
49
|
"prettier": "@gearbox-protocol/prettier-config"
|
|
50
50
|
}
|