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

r42

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

r42 - npm Package Compare versions

Comparing version 0.5.1 to 0.5.2

31

lib/module.js

@@ -43,2 +43,23 @@ 'use strict';

// Resolve the full module's name
if (mm) {
def = mm.resolve(def);
// Compute module's dirname
this.dirname = path.dirname(this.name);
}
this.splitName(parent, def)
// Resolve the full module's name
if (mm) {
this.splitName(parent, mm.resolve(this.name));
// Compute module's dirname
this.dirname = path.dirname(this.name);
}
}
// Find name & module name
Module.prototype.splitName = function(parent, def) {
// Init name & plugin depending on def

@@ -58,12 +79,4 @@ def = def.split('!', 2);

}
};
// Resolve the full module's name
if (mm) {
this.name = mm.resolve(this.name);
// Compute module's dirname
this.dirname = path.dirname(this.name);
}
}
// Add dependency to the current module

@@ -70,0 +83,0 @@ Module.prototype.addDependency = function(module, mc) {

{
"name": "r42",
"version": "0.5.1",
"version": "0.5.2",
"description": "Dependency injection done right.",

@@ -5,0 +5,0 @@ "author": {

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