@visulima/error
Advanced tools
Comparing version 4.2.0 to 4.3.0
@@ -0,1 +1,16 @@ | ||
## @visulima/error [4.3.0](https://github.com/visulima/visulima/compare/@visulima/error@4.2.0...@visulima/error@4.3.0) (2024-07-02) | ||
### Features | ||
* **error:** added a prefix option to renderError ([e164d52](https://github.com/visulima/visulima/commit/e164d528dfef4195a7cbd9f8843f58148dfc5e08)) | ||
* **error:** added stackFilter to parseStacktrace, fixed parsing AggregateError stack, added filterStacktrace to renderError ([bb4b4f7](https://github.com/visulima/visulima/commit/bb4b4f72ab00c63bf0ac5e9e6a9a01110c102a1c)) | ||
### Bug Fixes | ||
* **error:** renamed stackFilter to filter and changed interface for filterStacktrace ([b95dfb6](https://github.com/visulima/visulima/commit/b95dfb640b0d243122bff2ddf2e32a79101652e1)) | ||
### Miscellaneous Chores | ||
* changed typescript version back to 5.4.5 ([55d28bb](https://github.com/visulima/visulima/commit/55d28bbdc103718d19f844034b38a0e8e5af798a)) | ||
## @visulima/error [4.2.0](https://github.com/visulima/visulima/compare/@visulima/error@4.1.0...@visulima/error@4.2.0) (2024-07-02) | ||
@@ -2,0 +17,0 @@ |
@@ -43,2 +43,3 @@ import { b as CodeFrameOptions, c as ColorizeMethod } from '../shared/error.CrVmNoPV.js'; | ||
displayShortPath: boolean; | ||
filterStacktrace: ((line: string) => boolean) | undefined; | ||
framesMaxLimit: number; | ||
@@ -51,2 +52,3 @@ hideErrorCauseCodeView: boolean; | ||
indentation: number | "\t"; | ||
prefix: string; | ||
}; | ||
@@ -53,0 +55,0 @@ declare const renderError: (error: AggregateError | Error | VisulimaError, options?: Partial<Options$1>) => string; |
@@ -12,3 +12,4 @@ type TraceType = "eval" | "internal" | "native" | undefined; | ||
declare const parse: (error: Error, options?: Partial<{ | ||
declare const parse: (error: Error, { filter, frameLimit }?: Partial<{ | ||
filter?: (line: string) => boolean; | ||
frameLimit: number; | ||
@@ -15,0 +16,0 @@ }>) => Trace[]; |
{ | ||
"name": "@visulima/error", | ||
"version": "4.2.0", | ||
"version": "4.3.0", | ||
"description": "Error with more than just a message, stacktrace parsing.", | ||
@@ -149,3 +149,3 @@ "keywords": [ | ||
"semantic-release": "24.0.0", | ||
"typescript": "^5.4.5", | ||
"typescript": "5.4.5", | ||
"vitest": "^1.6.0" | ||
@@ -152,0 +152,0 @@ }, |
@@ -231,2 +231,26 @@ <div align="center"> | ||
### API | ||
#### error | ||
Type: `Error` | ||
The error to parse. | ||
#### options | ||
Type: `object` | ||
##### options.filter | ||
Type: `Function` | ||
A function to filter the stack frames. | ||
##### options.frameLimit | ||
Type: `number` | ||
The maximum number of frames to parse. | ||
## `serialize` an error object | ||
@@ -233,0 +257,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
75653
268
426