@socketsecurity/lib 3.2.5 → 3.2.6
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/CHANGELOG.md +9 -0
- package/dist/logger.js +2 -1
- package/dist/stdio/prompts.js +2 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [3.2.6](https://github.com/SocketDev/socket-lib/releases/tag/v3.2.6) - 2025-11-05
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- **logger**: Replace yoctocolors-cjs rgb() with manual ANSI codes
|
|
15
|
+
- The yoctocolors-cjs package doesn't have an rgb() method
|
|
16
|
+
- Manually construct ANSI escape sequences for RGB colors (ESC[38;2;r;g;bm...ESC[39m)
|
|
17
|
+
- Affects `src/logger.ts` and `src/stdio/prompts.ts` applyColor() functions
|
|
18
|
+
|
|
10
19
|
## [3.2.5](https://github.com/SocketDev/socket-lib/releases/tag/v3.2.5) - 2025-11-05
|
|
11
20
|
|
|
12
21
|
### Added
|
package/dist/logger.js
CHANGED
|
@@ -66,7 +66,8 @@ function applyColor(text, color, colors) {
|
|
|
66
66
|
if (typeof color === "string") {
|
|
67
67
|
return colors[color](text);
|
|
68
68
|
}
|
|
69
|
-
|
|
69
|
+
const { 0: r, 1: g, 2: b } = color;
|
|
70
|
+
return `\x1B[38;2;${r};${g};${b}m${text}\x1B[39m`;
|
|
70
71
|
}
|
|
71
72
|
const LOG_SYMBOLS = /* @__PURE__ */ (() => {
|
|
72
73
|
const target = {
|
package/dist/stdio/prompts.js
CHANGED
|
@@ -51,7 +51,8 @@ function applyColor(text, color) {
|
|
|
51
51
|
if (typeof color === "string") {
|
|
52
52
|
return import_yoctocolors_cjs.default[color](text);
|
|
53
53
|
}
|
|
54
|
-
|
|
54
|
+
const { 0: r, 1: g, 2: b } = color;
|
|
55
|
+
return `\x1B[38;2;${r};${g};${b}m${text}\x1B[39m`;
|
|
55
56
|
}
|
|
56
57
|
function resolveTheme(theme) {
|
|
57
58
|
return typeof theme === "string" ? import_themes.THEMES[theme] : theme;
|