Comparing version 1.0.3 to 1.0.4
13
index.js
@@ -23,2 +23,13 @@ "use strict"; | ||
} | ||
function getValues(object) { | ||
if (Object.values) { | ||
return Object.values(object); | ||
} else { | ||
return Object.keys(object).map(function(key) { | ||
return object[key]; | ||
}); | ||
} | ||
} | ||
class FSMerge { | ||
@@ -115,3 +126,3 @@ constructor(trees) { | ||
} | ||
result = Object.values(hashStore); | ||
result = getValues(hashStore); | ||
result.sort((entryA, entryB) => (entryA.relativePath > entryB.relativePath) ? 1 : -1); | ||
@@ -118,0 +129,0 @@ return result; |
{ | ||
"name": "fs-merger", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Reads files from a real location", | ||
@@ -5,0 +5,0 @@ "main": "index.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
10639
276