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

gedyx-middleware

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gedyx-middleware - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

11

index.js
class Middleware {
constructor(logger = null) {
this.logger = logger;
if(typeof this.logger?.log !== 'function') {
this.logger = console;
}
}
/**

@@ -15,3 +8,3 @@ * This function is called before the request is sent to the server

async beforeRequest(request, socket) {
this.logger.log("beforeRequest method can be overwritten");
throw "beforeRequest method can be overwritten";
}

@@ -25,3 +18,3 @@

async afterRequest(response, socket) {
this.logger.log("afterRequest method can be overwritten");
throw "afterRequest method can be overwritten";
}

@@ -28,0 +21,0 @@ }

2

package.json
{
"name": "gedyx-middleware",
"version": "1.0.1",
"version": "1.0.2",
"description": "",

@@ -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