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

module-grapher

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

module-grapher - npm Package Compare versions

Comparing version 0.9.0 to 0.9.1

2

lib/dependency-resolver.js

@@ -160,2 +160,4 @@ var identifier = require('./identifier'),

indexModule.setIdentifier(indexId);
// Mark it as not a dir module.
indexModule.isDir = false;
// It's a clone so we'll need to wipe out its requirers as

@@ -162,0 +164,0 @@ // it's only current requirer is the module itself.

@@ -131,5 +131,19 @@ exports.createModule = createModule;

// shallow clone referenced objects.
clone._dependencies = _cloneObj(this._dependencies);
clone._directDependencies = _cloneObj(this._directDependencies);
clone._requirers = _cloneObj(this._requirers);
return clone;
}
function _cloneObj(obj) {
if (!obj) { return obj; }
var clone = {};
for (var prop in obj) {
clone[prop] = obj[prop];
}
return clone;
}
p.getRequirers = getRequirers;

@@ -136,0 +150,0 @@ function getRequirers() {

2

package.json

@@ -5,3 +5,3 @@ {

"main": "./main",
"version": "0.9.0",
"version": "0.9.1",
"dependencies": {

@@ -8,0 +8,0 @@ "async-it": ">=0.2.0",

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