Socket
Socket
Sign inDemoInstall

fs-merger

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fs-merger - npm Package Compare versions

Comparing version 1.0.6 to 1.0.7

dist/index.js

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';

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