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 5.0.1 to 5.0.2

4

index.js

@@ -11,4 +11,2 @@ 'use strict'

const builtins = Module.builtinModules
// 'foo/bar.js' or 'foo/bar/index.js' => 'foo/bar'

@@ -55,3 +53,3 @@ const normalize = /([/\\]index)?(\.js)?$/

const filename = Module._resolveFilename(id, this)
const core = builtins.includes(filename)
const core = filename.includes(path.sep) === false
let moduleName, basedir

@@ -58,0 +56,0 @@

{
"name": "require-in-the-middle",
"version": "5.0.1",
"version": "5.0.2",
"description": "Module to hook into the Node.js require function",

@@ -15,3 +15,2 @@ "main": "index.js",

"roundround": "^0.2.0",
"semver": "^6.3.0",
"standard": "^14.3.1",

@@ -46,5 +45,5 @@ "tape": "^4.11.0"

"coordinates": [
55.776587,
12.592619
55.776571,
12.592961
]
}
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