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

@dotcom-reliability-kit/middleware-log-errors

Package Overview
Dependencies
Maintainers
4
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dotcom-reliability-kit/middleware-log-errors - npm Package Compare versions

Comparing version 1.2.7 to 1.2.8

6

lib/index.js

@@ -1,5 +0,1 @@

/**
* @module @dotcom-reliability-kit/middleware-log-errors
*/
const { logHandledError } = require('@dotcom-reliability-kit/log-error');

@@ -16,3 +12,3 @@

*
* @access public
* @public
* @param {ErrorLoggingOptions} [options = {}]

@@ -19,0 +15,0 @@ * Options to configure the middleware.

6

package.json
{
"name": "@dotcom-reliability-kit/middleware-log-errors",
"version": "1.2.7",
"version": "1.2.8",
"description": "Express middleware to consistently log errors",

@@ -19,6 +19,6 @@ "repository": {

"dependencies": {
"@dotcom-reliability-kit/log-error": "^1.3.6"
"@dotcom-reliability-kit/log-error": "^1.3.7"
},
"devDependencies": {
"@financial-times/n-express": "^26.1.2",
"@financial-times/n-express": "^26.3.0",
"@types/express": "^4.17.14",

@@ -25,0 +25,0 @@ "node-fetch": "^2.6.7"

@@ -34,3 +34,4 @@

:warning: this middleware **must** be added to your Express app _after_ all your application routes – you won't get error logs for any routes which are mounted after this middleware:
> **Warning**
> This middleware **must** be added to your Express app _after_ all your application routes – you won't get error logs for any routes which are mounted after this middleware.

@@ -75,3 +76,4 @@ ```js

**Note:** if you're also using [n-raven v6.1+](https://github.com/Financial-Times/n-raven) in your application then the Raven error logging will be deactivated so that you don't get double-logged errors.
> **Note**
> If you're also using [n-raven v6.1+](https://github.com/Financial-Times/n-raven) in your application then the Raven error logging will be deactivated so that you don't get double-logged errors.

@@ -103,3 +105,4 @@ ### Configuration options

**Note:** there's no need to include the `x-request-id` header in this array, as this is automatically included as `request.id` in the logs.
> **Note**
> There's no need to include the `x-request-id` header in this array, as this is automatically included as `request.id` in the logs.

@@ -106,0 +109,0 @@

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