@bemoje/stacktrace 1.1.2 → 1.1.3

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.
Files changed (2) hide show
  1. package/README.md +11 -11
  2. package/package.json +15 -25
package/README.md CHANGED
@@ -1,10 +1,17 @@
1
1
  # @bemoje/stacktrace
2
2
 
3
- Beautiful, color-formatted stack trace output for Node.js errors with syntax-highlighted file paths and structured
4
- error properties.
3
+ Beautiful, color-formatted stack trace output for Node.js errors with syntax-highlighted file paths and structured error properties.
5
4
 
6
- [![TypeScript](https://img.shields.io/badge/TypeScript-5-blue)](https://www.typescriptlang.org/)
7
- [![Module](https://img.shields.io/badge/Module-ESM-yellow)](https://nodejs.org/api/esm.html)
5
+ [![TypeScript](https://img.shields.io/badge/TypeScript-5-blue)](https://www.typescriptlang.org/) [![Module](https://img.shields.io/badge/Module-ESM-yellow)](https://nodejs.org/api/esm.html)
6
+
7
+ ## Exports
8
+
9
+ <!-- EXPORTS_START -->
10
+
11
+ - **enablePrettyStackTrace**: Enables pretty stack trace formatting for uncaught exceptions.
12
+ - **prettyStackTrace**: Formats stack traces with colors and improved readability for debugging.
13
+
14
+ <!-- EXPORTS_END -->
8
15
 
9
16
  ## Installation
10
17
 
@@ -69,10 +76,3 @@ console.error(prettyStackTrace(error))
69
76
  // stack:
70
77
  // ...
71
78
  ```
72
-
73
- ## API Reference
74
-
75
- | Export | Description |
76
- | ------------------------ | ------------------------------------------------------------------- |
77
- | `prettyStackTrace` | Format an Error into a colorized, readable string |
78
- | `enablePrettyStackTrace` | Register a global uncaught exception handler with pretty formatting |
package/package.json CHANGED
@@ -1,9 +1,17 @@
1
1
  {
2
2
  "name": "@bemoje/stacktrace",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "Beautiful, color-formatted stack trace output for Node.js errors with syntax-highlighted file paths and structured error properties.",
5
5
  "type": "module",
6
6
  "sideEffects": false,
7
+ "publishConfig": {
8
+ "access": "public"
9
+ },
10
+ "dependencies": {
11
+ "ansi-colors": "^4.1.3",
12
+ "upath": "^2.0.1",
13
+ "stacktrace-parser": "^0.1.11"
14
+ },
7
15
  "keywords": [
8
16
  "stacktrace",
9
17
  "stack-trace",
@@ -35,17 +43,7 @@
35
43
  "default": "./lib/index.cjs"
36
44
  }
37
45
  },
38
- "./enablePrettyStackTrace": {
39
- "import": {
40
- "types": "./lib/index.d.ts",
41
- "default": "./lib/index.js"
42
- },
43
- "require": {
44
- "types": "./lib/index.d.cts",
45
- "default": "./lib/index.cjs"
46
- }
47
- },
48
- "./prettyStackTrace": {
46
+ "./*": {
49
47
  "import": {
50
48
  "types": "./lib/index.d.ts",
51
49
  "default": "./lib/index.js"
@@ -56,23 +54,15 @@
56
54
  }
57
55
  }
58
56
  },
59
- "dependencies": {
60
- "ansi-colors": "^4.1.3",
61
- "upath": "^2.0.1",
62
- "stacktrace-parser": "^0.1.11"
63
- },
64
- "publishConfig": {
65
- "access": "public"
57
+ "repository": {
58
+ "type": "git",
59
+ "url": "git+https://github.com/bemoje/mono.git",
60
+ "directory": "libs/stacktrace"
66
61
  },
67
- "license": "MIT",
68
62
  "author": {
69
63
  "name": "Benjamin Møller Jensen",
70
64
  "email": "bemoje@bemoje.net",
71
65
  "url": "https://github.com/bemoje/"
72
66
  },
73
- "repository": {
74
- "type": "git",
75
- "url": "git+https://github.com/bemoje/mono.git",
76
- "directory": "libs/stacktrace"
77
- }
67
+ "license": "MIT"
78
68
  }