@mks2508/better-logger 1.2.0 → 1.2.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/CHANGELOG.md +19 -0
- package/dist/chunks/{Logger-BynuRJQf.js → Logger-B7L-ujY4.js} +3 -3
- package/dist/chunks/{Logger-BynuRJQf.js.map → Logger-B7L-ujY4.js.map} +1 -1
- package/dist/chunks/{Logger-DMjlVQWi.js → Logger-DzU_c5sX.js} +2 -2
- package/dist/chunks/{Logger-DMjlVQWi.js.map → Logger-DzU_c5sX.js.map} +1 -1
- package/dist/chunks/{ScopedLogger-D2HzayKH.js → ScopedLogger-BY3-E8Ov.js} +2 -2
- package/dist/chunks/{ScopedLogger-D2HzayKH.js.map → ScopedLogger-BY3-E8Ov.js.map} +1 -1
- package/dist/chunks/{ScopedLogger-Bl56WovH.js → ScopedLogger-D-RbiFZn.js} +2 -2
- package/dist/chunks/{ScopedLogger-Bl56WovH.js.map → ScopedLogger-D-RbiFZn.js.map} +1 -1
- package/dist/chunks/environment-Ba5kShbx.js +4 -0
- package/dist/chunks/environment-Ba5kShbx.js.map +1 -0
- package/dist/chunks/{environment-BanAyF-K.js → environment-TI2ByCPT.js} +46 -9
- package/dist/chunks/environment-TI2ByCPT.js.map +1 -0
- package/dist/chunks/{formatting-BSNvAxLK.js → formatting-Blwy-f0W.js} +2 -2
- package/dist/chunks/{formatting-BSNvAxLK.js.map → formatting-Blwy-f0W.js.map} +1 -1
- package/dist/chunks/{formatting-CgQSWgXR.js → formatting-CuNUqGks.js} +2 -2
- package/dist/chunks/{formatting-CgQSWgXR.js.map → formatting-CuNUqGks.js.map} +1 -1
- package/dist/core.cjs +1 -1
- package/dist/core.js +2 -2
- package/dist/exports.cjs +1 -1
- package/dist/exports.js +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +6 -6
- package/dist/styling.cjs +1 -1
- package/dist/styling.js +3 -3
- package/dist/terminal/terminal-renderer.d.ts +1 -1
- package/dist/terminal/terminal-renderer.d.ts.map +1 -1
- package/dist/utils/stackTrace.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/terminal/terminal-renderer.ts +12 -4
- package/src/utils/stackTrace.ts +54 -5
- package/dist/chunks/environment--eaTrhRu.js +0 -4
- package/dist/chunks/environment--eaTrhRu.js.map +0 -1
- package/dist/chunks/environment-BanAyF-K.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -37,6 +37,25 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
37
37
|
- Updated package.json with new keywords: terminal, ansi, chalk, server, nodejs
|
|
38
38
|
- Enhanced description highlighting dual environment support
|
|
39
39
|
|
|
40
|
+
## [1.2.1] - 2024-10-28
|
|
41
|
+
|
|
42
|
+
### 🔧 Fixes
|
|
43
|
+
- **Enhanced Domain Badges**: Domain/scope now displays as proper badges with background color (e.g., `[CONNECTION]` instead of plain text)
|
|
44
|
+
- **Improved Stack Trace**: Better filtering of minified/bundle files to show TypeScript source locations
|
|
45
|
+
- **Cleaner File Names**: Transforms minified filenames like `Logger-BynuRJQf.js` to clean names like `logger.ts`
|
|
46
|
+
- **Consistent Styling**: All badges (level and domain) now use consistent visual styling
|
|
47
|
+
|
|
48
|
+
### 🎨 Visual Improvements
|
|
49
|
+
- Domain badges use background color + text styling similar to level badges
|
|
50
|
+
- Uppercase domain names for better visibility
|
|
51
|
+
- Enhanced cyberpunk preset with more vibrant badge styling
|
|
52
|
+
- Better visual hierarchy in terminal logs
|
|
53
|
+
|
|
54
|
+
### 🐛 Bug Fixes
|
|
55
|
+
- Fixed undefined filename handling in stack trace parsing
|
|
56
|
+
- Improved TypeScript type safety in stack trace functions
|
|
57
|
+
- Better error handling for malformed stack traces
|
|
58
|
+
|
|
40
59
|
---
|
|
41
60
|
|
|
42
61
|
## [1.1.0] - Previous
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as getAdaptiveColor, A as ADAPTIVE_COLORS, b as StyleBuilder, j as BUFFER_LIMITS, k as generateLogId, l as parseTimeInput, m as formatDisplayTime, n as safeStringify, o as escapeHtml, q as EXPORT_FORMATS, D as DEFAULT_CONFIG, r as setupThemeChangeListener, t as getEnvironment, p as parseStackTrace, c as createStyledOutput, f as formatTimestamp, S as StylePresets } from "./environment-
|
|
1
|
+
import { h as getAdaptiveColor, A as ADAPTIVE_COLORS, b as StyleBuilder, j as BUFFER_LIMITS, k as generateLogId, l as parseTimeInput, m as formatDisplayTime, n as safeStringify, o as escapeHtml, q as EXPORT_FORMATS, D as DEFAULT_CONFIG, r as setupThemeChangeListener, t as getEnvironment, p as parseStackTrace, c as createStyledOutput, f as formatTimestamp, S as StylePresets } from "./environment-TI2ByCPT.js";
|
|
2
2
|
const THEME_PRESETS = {
|
|
3
3
|
default: {
|
|
4
4
|
debug: {
|
|
@@ -2706,7 +2706,7 @@ class Logger {
|
|
|
2706
2706
|
*/
|
|
2707
2707
|
async createScopedLogger(type, name) {
|
|
2708
2708
|
try {
|
|
2709
|
-
const { ScopedLogger, APILogger, ComponentLogger } = await import("./ScopedLogger-
|
|
2709
|
+
const { ScopedLogger, APILogger, ComponentLogger } = await import("./ScopedLogger-D-RbiFZn.js");
|
|
2710
2710
|
switch (type) {
|
|
2711
2711
|
case "component":
|
|
2712
2712
|
return new ComponentLogger(this, name);
|
|
@@ -3500,4 +3500,4 @@ export {
|
|
|
3500
3500
|
THEME_BANNERS as a,
|
|
3501
3501
|
displayInitBanner as d
|
|
3502
3502
|
};
|
|
3503
|
-
//# sourceMappingURL=Logger-
|
|
3503
|
+
//# sourceMappingURL=Logger-B7L-ujY4.js.map
|