handle-cli-error
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -54,5 +54,5 @@ import{inspect}from"util"; | ||
restoreStack(errorA,stack); | ||
const errorStringA=omitStackBracket(errorString,stack); | ||
const errorStringA=omitStackBracket(errorString); | ||
return errorStringA; | ||
}; | ||
//# sourceMappingURL=main.js.map |
@@ -86,4 +86,4 @@ import isErrorInstance from"is-error-instance"; | ||
export const omitStackBracket=function(errorString,stack){ | ||
return stack?errorString:errorString.replace(STACK_BRACKET_REGEXP,"$1"); | ||
export const omitStackBracket=function(errorString){ | ||
return errorString.replace(STACK_BRACKET_REGEXP,"$1"); | ||
}; | ||
@@ -90,0 +90,0 @@ |
{ | ||
"name": "handle-cli-error", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"type": "module", | ||
"exports": "./build/src/main.js", | ||
"exports": { | ||
"types": "./build/types/main.d.ts", | ||
"default": "./build/src/main.js" | ||
}, | ||
"main": "./build/src/main.js", | ||
"types": "./build/src/main.d.ts", | ||
"types": "./build/types/main.d.ts", | ||
"files": [ | ||
"build/src/**/*.{js,d.ts,json}" | ||
"build/src/**/*.{js,json}", | ||
"build/types/**/*.d.ts" | ||
], | ||
@@ -49,3 +53,3 @@ "scripts": { | ||
"devDependencies": { | ||
"@ehmicky/dev-tasks": "^1.0.94", | ||
"@ehmicky/dev-tasks": "^1.0.98", | ||
"@sinonjs/fake-timers": "^9.1.2", | ||
@@ -67,5 +71,5 @@ "error-serializer": "^3.5.1", | ||
"is-plain-obj": "^4.1.0", | ||
"normalize-exception": "^2.8.1", | ||
"normalize-exception": "^2.9.0", | ||
"strip-ansi": "^7.0.1" | ||
} | ||
} |
@@ -7,3 +7,3 @@ <picture> | ||
[![Codecov](https://img.shields.io/codecov/c/github/ehmicky/handle-cli-error.svg?label=tested&logo=codecov)](https://codecov.io/gh/ehmicky/handle-cli-error) | ||
[![TypeScript](https://img.shields.io/badge/-typed-brightgreen?logo=typescript&colorA=gray&logoColor=0096ff)](/src/main.d.ts) | ||
[![TypeScript](https://img.shields.io/badge/-typed-brightgreen?logo=typescript&colorA=gray&logoColor=0096ff)](/types/main.d.ts) | ||
[![Node](https://img.shields.io/node/v/handle-cli-error.svg?logo=node.js&logoColor=66cc33)](https://www.npmjs.com/package/handle-cli-error) | ||
@@ -174,2 +174,4 @@ [![Twitter](https://img.shields.io/badge/%E2%80%8B-twitter-brightgreen.svg?logo=twitter)](https://twitter.com/intent/follow?screen_name=ehmicky) | ||
like it's 2022 🔮 | ||
- [`modern-errors-cli`](https://github.com/ehmicky/modern-errors-cli): Handle | ||
errors in CLI modules | ||
- [`error-custom-class`](https://github.com/ehmicky/error-custom-class): Create | ||
@@ -176,0 +178,0 @@ one error class |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
26608
230
0
Updatednormalize-exception@^2.9.0