colorino 0.7.0 → 0.7.1
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/browser.cjs
CHANGED
package/dist/browser.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as ColorLevel, t as themePalettes, a as Colorino, I as InputValidator, d as determineBaseTheme } from './shared/colorino.
|
|
1
|
+
import { C as ColorLevel, t as themePalettes, a as Colorino, I as InputValidator, d as determineBaseTheme } from './shared/colorino.DY10aAZs.mjs';
|
|
2
2
|
|
|
3
3
|
class BrowserColorSupportDetector {
|
|
4
4
|
constructor(_window, _navigator, _overrideTheme) {
|
package/dist/node.cjs
CHANGED
package/dist/node.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as err, O as OscQueryError, o as ok, C as ColorLevel, d as determineBaseTheme, t as themePalettes, a as Colorino, I as InputValidator } from './shared/colorino.
|
|
1
|
+
import { e as err, O as OscQueryError, o as ok, C as ColorLevel, d as determineBaseTheme, t as themePalettes, a as Colorino, I as InputValidator } from './shared/colorino.DY10aAZs.mjs';
|
|
2
2
|
|
|
3
3
|
class OscThemeQuerier {
|
|
4
4
|
constructor(_stdin, _stdout, _timeout = 300, _cacheTtl = 36e5) {
|
|
@@ -115,7 +115,7 @@ class Colorino {
|
|
|
115
115
|
"[Colorino] No ANSI color support detected in this terminal. See [https://github.com/chalk/supports-color#support-matrix](https://github.com/chalk/supports-color#support-matrix) to learn how to enable terminal color."
|
|
116
116
|
);
|
|
117
117
|
}
|
|
118
|
-
_formatValue(value, maxDepth =
|
|
118
|
+
_formatValue(value, maxDepth = 5) {
|
|
119
119
|
const seen = /* @__PURE__ */ new WeakSet();
|
|
120
120
|
const sanitize = (val, currentDepth) => {
|
|
121
121
|
if (val === null || typeof val !== "object") return val;
|
|
@@ -113,7 +113,7 @@ class Colorino {
|
|
|
113
113
|
"[Colorino] No ANSI color support detected in this terminal. See [https://github.com/chalk/supports-color#support-matrix](https://github.com/chalk/supports-color#support-matrix) to learn how to enable terminal color."
|
|
114
114
|
);
|
|
115
115
|
}
|
|
116
|
-
_formatValue(value, maxDepth =
|
|
116
|
+
_formatValue(value, maxDepth = 5) {
|
|
117
117
|
const seen = /* @__PURE__ */ new WeakSet();
|
|
118
118
|
const sanitize = (val, currentDepth) => {
|
|
119
119
|
if (val === null || typeof val !== "object") return val;
|