module-grapher
Advanced tools
Comparing version 0.9.0 to 0.9.1
@@ -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() { |
@@ -5,3 +5,3 @@ { | ||
"main": "./main", | ||
"version": "0.9.0", | ||
"version": "0.9.1", | ||
"dependencies": { | ||
@@ -8,0 +8,0 @@ "async-it": ">=0.2.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
40475
1089