diff options
Diffstat (limited to 'lib/models/plugin.js')
-rw-r--r-- | lib/models/plugin.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/models/plugin.js b/lib/models/plugin.js index c8bb2f7..acabba9 100644 --- a/lib/models/plugin.js +++ b/lib/models/plugin.js @@ -18,6 +18,9 @@ var Plugin = Immutable.Record({ // Depth of this plugin in the dependency tree depth: Number(0), + // Parent depending on this plugin + parent: String(), + // Content of the "package.json" package: Immutable.Map(), @@ -49,6 +52,10 @@ Plugin.prototype.getDepth = function() { return this.get('depth'); }; +Plugin.prototype.getParent = function() { + return this.get('parent'); +}; + /** * Return the ID on NPM for this plugin * @return {String} |