@jsenv/filesystem
Advanced tools
Comparing version 4.9.10 to 4.10.0
{ | ||
"name": "@jsenv/filesystem", | ||
"version": "4.9.10", | ||
"version": "4.10.0", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -90,2 +90,3 @@ // tslint:disable:ordered-imports | ||
export { replaceFileSync } from "./replace/replace_file_sync.js"; | ||
export { replaceFileStructureSync } from "./replace/replace_file_structure_sync.js"; | ||
@@ -92,0 +93,0 @@ // lifecycle |
import { ensureEmptyDirectorySync } from "../remove/ensure_empty_directory_sync.js"; | ||
import { readFileStructureSync } from "./read_file_structure_sync.js"; | ||
import { writeFileSync } from "./write_file_sync.js"; | ||
@@ -8,5 +7,2 @@ | ||
if (fileStructure) { | ||
if (typeof fileStructure === "string" || fileStructure instanceof URL) { | ||
fileStructure = readFileStructureSync(fileStructure); | ||
} | ||
Object.keys(fileStructure).forEach((relativeUrl) => { | ||
@@ -13,0 +9,0 @@ const fileUrl = new URL(relativeUrl, directoryUrl); |
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
138065
77
4024