New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

handle-cli-error

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

handle-cli-error - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

build/types/main.d.ts

2

build/src/print/main.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc