@gearbox-protocol/cli-utils 5.35.6 → 5.35.8
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/CensoredURL.js +16 -4
- package/dist/SSMManager.js +2 -4
- package/dist/SecretsManager.js +2 -4
- package/package.json +1 -1
package/dist/CensoredURL.js
CHANGED
|
@@ -15,10 +15,22 @@ export class CensoredURL {
|
|
|
15
15
|
this.#censored = url;
|
|
16
16
|
}
|
|
17
17
|
else {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
try {
|
|
19
|
+
const u = new URL(url);
|
|
20
|
+
u.pathname = "/";
|
|
21
|
+
u.search = "";
|
|
22
|
+
this.#censored = u.href + "******";
|
|
23
|
+
}
|
|
24
|
+
catch (e) {
|
|
25
|
+
let visibleLen = Math.floor(0.2 * url.length);
|
|
26
|
+
if (visibleLen < 1) {
|
|
27
|
+
this.#censored = "*".repeat(url.length);
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
this.#censored =
|
|
31
|
+
"*".repeat(url.length - visibleLen) + url.slice(-1 * visibleLen);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
22
34
|
}
|
|
23
35
|
}
|
|
24
36
|
get value() {
|
package/dist/SSMManager.js
CHANGED
|
@@ -22,10 +22,8 @@ export class SSMManager {
|
|
|
22
22
|
}
|
|
23
23
|
export const ssmManagerProxy = (mgr) => new Proxy(mgr ?? new SSMManager(), {
|
|
24
24
|
get(target, prop) {
|
|
25
|
-
if (prop === "
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
if (typeof prop === "string") {
|
|
25
|
+
if (typeof prop === "string" &&
|
|
26
|
+
!["parameter", "then", "catch", "finally"].includes(prop)) {
|
|
29
27
|
return target.parameter(prop);
|
|
30
28
|
}
|
|
31
29
|
},
|
package/dist/SecretsManager.js
CHANGED
|
@@ -44,10 +44,8 @@ export class SecretsManager {
|
|
|
44
44
|
}
|
|
45
45
|
export const secretsManagerProxy = (mgr) => new Proxy(mgr ?? new SecretsManager(), {
|
|
46
46
|
get(target, prop) {
|
|
47
|
-
if (
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
if (typeof prop === "string") {
|
|
47
|
+
if (typeof prop === "string" &&
|
|
48
|
+
!["secret", "secretRaw", "then", "catch", "finally"].includes(prop)) {
|
|
51
49
|
return target.secretRaw(prop);
|
|
52
50
|
}
|
|
53
51
|
},
|