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

cf-errors

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cf-errors - npm Package Compare versions

Comparing version 0.1.9 to 0.1.10

2

package.json
{
"name": "cf-errors",
"version": "0.1.9",
"version": "0.1.10",
"description": "Extensible error library",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -51,2 +51,3 @@ cf-errors

<a name="cause" />
##Extending with a previous error

@@ -61,2 +62,3 @@ ```javascript

<a name="stack" />
##Printing the stack

@@ -69,2 +71,3 @@ will print the stack of all previous errors too

<a name="toString" />
##toString()

@@ -80,2 +83,3 @@ Will print the whole chain of errors in a nice way. </br>

<a name="predefined" />
##Predefined Error Types

@@ -111,2 +115,3 @@ ```javascript

<a name="inherit" />
##Inheriting the previous error type

@@ -130,2 +135,3 @@ Creating an error with the same name as its cause can be achieved using 'Inherit' as the error name.

<a name="getfirstvalue" />
##Getting the value of the first occurrence of a field in the chain

@@ -143,4 +149,5 @@ Sometimes you will populate an error with a field and wrap it with an additional error. In order to get the value of the field you will need to recursively go over the whole chain. </br>

<a name="tests" />
##Running the tests
'npm test' or 'gulp unit_test'
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