Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

require-in-the-middle

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

require-in-the-middle - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

6

index.js

@@ -31,3 +31,7 @@ 'use strict'

// figure out if this is the main module file, or a file inside the module
var res = resolve.sync(name, { basedir: basedir })
try {
var res = resolve.sync(name, { basedir: basedir })
} catch (e) {
return exports
}
if (res !== filename) return exports // abort if not main module file

@@ -34,0 +38,0 @@ }

6

package.json
{
"name": "require-in-the-middle",
"version": "2.0.1",
"version": "2.0.2",
"description": "Module to hook into the Node.js require function",

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

"coordinates": [
55.66657499999999,
12.5801117
55.6665551,
12.5801899
]
}
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