colorino 0.12.0 → 0.12.2
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/README.md +3 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
Colorino automatically adapts its palette to your terminal or browser DevTools theme, and degrades colors gracefully so your logs stay readable and on‑brand even in limited environments
|
|
6
6
|
|
|
7
|
+

|
|
8
|
+
|
|
7
9
|
# <a id="0"></a><a id="0"></a>
|
|
8
10
|
|
|
9
11
|
- [Why use Colorino?](#1)
|
|
@@ -324,7 +326,7 @@ export function createContextLogger(
|
|
|
324
326
|
const logger = Object.create(base) as Colorino // Object.create uses `base` as the prototype.
|
|
325
327
|
|
|
326
328
|
// ...and override only what you need.
|
|
327
|
-
Object.assign(logger, { // Object.assign copies these methods onto `logger`.
|
|
329
|
+
Object.assign(logger, { // Object.assign copies these methods onto `logger`.
|
|
328
330
|
info(...args: unknown[]) {
|
|
329
331
|
base.info(`[${getCallerContext()}]`, ...args)
|
|
330
332
|
},
|