error-stack2
Advanced tools
Comparing version 2.0.3 to 2.0.4
{ | ||
"name": "error-stack2", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"description": "Parse and manipulate error.stack", | ||
@@ -89,5 +89,6 @@ "keywords": [ | ||
"dependencies": { | ||
"crlf-normalize": "^1.0.12", | ||
"crlf-normalize": "^1.0.15", | ||
"err-code": "^3.0.1", | ||
"string-split-keep2": "^1.0.7", | ||
"string-detect-indent": "^1.0.3", | ||
"string-split-keep2": "^1.0.8", | ||
"ts-type": ">=2" | ||
@@ -97,5 +98,5 @@ }, | ||
"@bluelovers/tsconfig": "^1.0.30", | ||
"@types/bluebird": "^3.5.36", | ||
"@types/jest": "^29.0.0", | ||
"@types/node": "^18.7.14", | ||
"@types/bluebird": "^3.5.37", | ||
"@types/jest": "^29.0.3", | ||
"@types/node": "^18.7.23", | ||
"tslib": "^2.4.0" | ||
@@ -102,0 +103,0 @@ }, |
@@ -10,2 +10,3 @@ import { ITSPickExtra, ITSRequireAtLeastOne } from 'ts-type/lib/type/record'; | ||
import { inspect } from 'util'; | ||
import { detectIndentLine } from 'string-detect-indent'; | ||
@@ -25,4 +26,2 @@ const AT = 'at' as const | ||
const REGEX_MATCH_INDENT = /^([ \t]*)(.+)$/; | ||
export function breakBrackets(str: string, first: string, last: string) | ||
@@ -127,3 +126,3 @@ { | ||
{ | ||
const [, indent, rawLine] = REGEX_MATCH_INDENT.exec(trace) | ||
const { indent, body: rawLine } = detectIndentLine(trace); | ||
@@ -130,0 +129,0 @@ return { |
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
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
157998
1545
5
+ Addedstring-detect-indent@^1.0.3
+ Addedstring-detect-indent@1.0.7(transitive)
Updatedcrlf-normalize@^1.0.15
Updatedstring-split-keep2@^1.0.8