Comparing version 1.0.6 to 1.0.7
16
index.js
@@ -37,7 +37,2 @@ "use strict"; | ||
this._dirList = Array.isArray(trees) ? trees : [trees]; | ||
this.MAP = this._dirList.reduce(function(map, tree) { | ||
let parsedTree = getRootAndPrefix(tree); | ||
map[parsedTree.root] = parsedTree; | ||
return map; | ||
}, {}); | ||
} | ||
@@ -58,3 +53,14 @@ | ||
_generateMap() { | ||
this.MAP = this._dirList.reduce(function(map, tree) { | ||
let parsedTree = getRootAndPrefix(tree); | ||
map[parsedTree.root] = parsedTree; | ||
return map; | ||
}, {}); | ||
} | ||
readFileMeta(filePath, options) { | ||
if (!this.MAP) { | ||
this._generateMap(); | ||
} | ||
let { _dirList } = this; | ||
@@ -61,0 +67,0 @@ let result = null; |
{ | ||
"name": "fs-merger", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "Reads files from a real location", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -153,3 +153,3 @@ ## Introduction | ||
root: 'fixture/example', | ||
getFileDestiation: function (relativePath) { | ||
getDestinationPath: function (relativePath) { | ||
if (relativePath.includes('map.js')) { | ||
@@ -156,0 +156,0 @@ return 'metal.js'; |
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
24872
9
568
3