@compassdigital/middleware
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -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) => { |
{ | ||
"name": "@compassdigital/middleware", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "CDL Provider middleware module", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
15966
420