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

error-cat

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

error-cat - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

16

index.js
'use strict';
require('loadenv')('error-cat:env');
var envIs = require('101/env-is');

@@ -97,6 +96,6 @@ var noop = require('101/noop');

// Expose default instance methods
var instance = new ErrorCat();
/**
* Maps exposed function names to default instance method names.
* @type {object}
*/
var defaultMethods = {

@@ -109,2 +108,9 @@ 'middleware': 'respond',

/**
* Default instance used for module level functions.
* @type {ErrorCat}
*/
var instance = new ErrorCat();
// Expose module functions by adding immutable static methods to ErrorCat
Object.keys(defaultMethods).forEach(function (name) {

@@ -111,0 +117,0 @@ Object.defineProperty(ErrorCat, name, {

{
"name": "error-cat",
"version": "1.1.0",
"version": "1.1.1",
"description": "A friendly feline companion that helps you create, track, and report errors.",

@@ -39,3 +39,2 @@ "main": "index.js",

"boom": "^2.7.1",
"loadenv": "^1.0.3",
"rollbar": "^0.5.3"

@@ -42,0 +41,0 @@ },

@@ -9,2 +9,16 @@ # error-cat

## Basic usage
```js
var ErrorCat = require('error-cat');
// Create, Log, and Report Errors
var err = ErrorCat.create(404, 'Not Found');
// Log and Report Errors
ErrorCat.log(someError);
// Report Errors via Rollbar
ErrorCat.report(anotherError);
```
## Using error-cat with express

@@ -11,0 +25,0 @@ Error cat was designed to be as easy as possible to use with express. Here is an

'use strict';
require('loadenv')('error-cat:test:env');
var Lab = require('lab');

@@ -5,0 +4,0 @@ var lab = exports.lab = Lab.script();

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