Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@akkadu/error

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@akkadu/error - npm Package Compare versions

Comparing version 1.6.0 to 2.0.0-alpha.1

6

dist/index.js

@@ -14,3 +14,3 @@ /**

if (err instanceof Error) {
const newError = new Error(`${message}=>${err.message}`);
const newError = new Error(`${message}:${err.message}`);
newError.stack = err.stack;

@@ -21,3 +21,3 @@ newError.code = err.code;

}
return new Error(`${message}=>${JSON.stringify(err)}`)
return new Error(`${message}:${JSON.stringify(err)}`)
}

@@ -40,3 +40,3 @@ catch (error) {

try {
return `${header}=>${JSON.stringify(message)}`
return `${header}:${JSON.stringify(message)}`
}

@@ -43,0 +43,0 @@ catch (error) {

@@ -14,3 +14,3 @@ /**

if (err instanceof Error) {
const newError = new Error(`${message}=>${err.message}`)
const newError = new Error(`${message}:${err.message}`)
newError.stack = err.stack

@@ -21,3 +21,3 @@ newError.code = err.code

}
return new Error(`${message}=>${JSON.stringify(err)}`)
return new Error(`${message}:${JSON.stringify(err)}`)
}

@@ -40,3 +40,3 @@ catch (error) {

try {
return `${header}=>${JSON.stringify(message)}`
return `${header}:${JSON.stringify(message)}`
}

@@ -43,0 +43,0 @@ catch (error) {

{
"name": "@akkadu/error",
"version": "1.6.0",
"version": "2.0.0-alpha.1",
"module": "dist/index.js",

@@ -25,3 +25,3 @@ "license": "ISC",

"description": "",
"gitHead": "0de0736bf31b037efa87519eaa60c7edac19d5e3"
"gitHead": "f9375dd9f898a51052bef325699f87c5781adafa"
}
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