Socket
Socket
Sign inDemoInstall

module-alias

Package Overview
Dependencies
0
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.9 to 1.0.10

6

index.js

@@ -0,1 +1,3 @@

'use strict'
var Module = require('module').Module

@@ -21,3 +23,3 @@ var nodePath = require('path')

var oldResolveFilename = Module._resolveFilename
Module._resolveFilename = function (request, self) {
Module._resolveFilename = function (request, parent, isMain) {
for (var alias in moduleAliases) {

@@ -32,3 +34,3 @@ if (request.indexOf(alias) === 0) {

return oldResolveFilename.apply(this, arguments)
return oldResolveFilename.call(this, request, parent, isMain)
}

@@ -35,0 +37,0 @@

{
"name": "module-alias",
"description": "Create aliases of directories and register custom module paths in NodeJS like a boss!",
"version": "1.0.9",
"version": "1.0.10",
"author": {

@@ -6,0 +6,0 @@ "name": "Nikita Gavrilov",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc