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

@compassdigital/middleware

Package Overview
Dependencies
Maintainers
11
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@compassdigital/middleware - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

8

lib/functions/action-logger.js

@@ -6,3 +6,2 @@ "use strict";

const DATA_EVENT = "actionLoggerData";
const ERROR_EVENT = "error";
const SAVE_EVENT = "actionLoggerSave";

@@ -51,9 +50,2 @@ const STAGE = process.env.NODE_ENV || "dev";

handle(req, res, next) {
// Register the error event
if (this.emitter.listenerCount(ERROR_EVENT) === 0) {
this.emitter.addListener(ERROR_EVENT, (err) => {
console.error(err);
});
}
if (this.emitter.listenerCount(DATA_EVENT) === 0) {

@@ -60,0 +52,0 @@ this.emitter.addListener(DATA_EVENT, (data) => {

2

package.json
{
"name": "@compassdigital/middleware",
"version": "1.0.1",
"version": "1.0.2",
"description": "CDL Provider middleware module",

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

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