@lodestar/utils 1.21.0-dev.c78b6cee36 → 1.21.0-dev.e1dec02b10
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/lib/url.d.ts +2 -2
- package/lib/url.js +2 -2
- package/lib/url.js.map +1 -1
- package/package.json +2 -2
package/lib/url.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export declare function isValidHttpUrl(urlStr: string): boolean;
|
|
2
2
|
/**
|
|
3
|
-
* Sanitize URL to prevent leaking user credentials in logs
|
|
3
|
+
* Sanitize URL to prevent leaking user credentials in logs or metrics
|
|
4
4
|
*
|
|
5
5
|
* Note: `urlStr` must be a valid URL
|
|
6
6
|
*/
|
|
7
|
-
export declare function
|
|
7
|
+
export declare function toPrintableUrl(urlStr: string): string;
|
|
8
8
|
//# sourceMappingURL=url.d.ts.map
|
package/lib/url.js
CHANGED
|
@@ -18,11 +18,11 @@ export function isValidHttpUrl(urlStr) {
|
|
|
18
18
|
return url.protocol === "http:" || url.protocol === "https:";
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
|
-
* Sanitize URL to prevent leaking user credentials in logs
|
|
21
|
+
* Sanitize URL to prevent leaking user credentials in logs or metrics
|
|
22
22
|
*
|
|
23
23
|
* Note: `urlStr` must be a valid URL
|
|
24
24
|
*/
|
|
25
|
-
export function
|
|
25
|
+
export function toPrintableUrl(urlStr) {
|
|
26
26
|
return new URL(urlStr).origin;
|
|
27
27
|
}
|
|
28
28
|
//# sourceMappingURL=url.js.map
|
package/lib/url.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"url.js","sourceRoot":"","sources":["../src/url.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,cAAc,CAAC,MAAc;IAC3C,IAAI,GAAG,CAAC;IACR,IAAI,CAAC;QACH,GAAG,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC;QAEtB,gFAAgF;QAChF,6EAA6E;QAC7E,6EAA6E;QAC7E,EAAE;QACF,4EAA4E;QAC5E,EAAE;QACF,kFAAkF;QAClF,kBAAkB,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QACjC,kBAAkB,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACnC,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,OAAO,KAAK,CAAC;IACf,CAAC;IAED,OAAO,GAAG,CAAC,QAAQ,KAAK,OAAO,IAAI,GAAG,CAAC,QAAQ,KAAK,QAAQ,CAAC;AAC/D,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"url.js","sourceRoot":"","sources":["../src/url.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,cAAc,CAAC,MAAc;IAC3C,IAAI,GAAG,CAAC;IACR,IAAI,CAAC;QACH,GAAG,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC;QAEtB,gFAAgF;QAChF,6EAA6E;QAC7E,6EAA6E;QAC7E,EAAE;QACF,4EAA4E;QAC5E,EAAE;QACF,kFAAkF;QAClF,kBAAkB,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QACjC,kBAAkB,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACnC,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,OAAO,KAAK,CAAC;IACf,CAAC;IAED,OAAO,GAAG,CAAC,QAAQ,KAAK,OAAO,IAAI,GAAG,CAAC,QAAQ,KAAK,QAAQ,CAAC;AAC/D,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,cAAc,CAAC,MAAc;IAC3C,OAAO,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC;AAChC,CAAC"}
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"bugs": {
|
|
12
12
|
"url": "https://github.com/ChainSafe/lodestar/issues"
|
|
13
13
|
},
|
|
14
|
-
"version": "1.21.0-dev.
|
|
14
|
+
"version": "1.21.0-dev.e1dec02b10",
|
|
15
15
|
"type": "module",
|
|
16
16
|
"exports": "./lib/index.js",
|
|
17
17
|
"files": [
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"beacon",
|
|
57
57
|
"blockchain"
|
|
58
58
|
],
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "6f37877f25b0bb82d9eb9041ff69e5a82cc80794"
|
|
60
60
|
}
|