@jsenv/filesystem
Advanced tools
Comparing version 4.7.2 to 4.7.3
{ | ||
"name": "@jsenv/filesystem", | ||
"version": "4.7.2", | ||
"version": "4.7.3", | ||
"license": "MIT", | ||
@@ -35,3 +35,3 @@ "repository": { | ||
"dependencies": { | ||
"@jsenv/urls": "2.2.7", | ||
"@jsenv/urls": "2.2.8", | ||
"@jsenv/url-meta": "8.4.2", | ||
@@ -38,0 +38,0 @@ "@jsenv/abort": "4.3.0", |
@@ -1,2 +0,6 @@ | ||
import { writeFileSync as writeFileSyncNode, mkdirSync } from "node:fs"; | ||
import { | ||
writeFileSync as writeFileSyncNode, | ||
mkdirSync, | ||
readFileSync, | ||
} from "node:fs"; | ||
@@ -8,2 +12,5 @@ import { assertAndNormalizeFileUrl } from "../path_and_url/file_url_validation.js"; | ||
const destinationUrlObject = new URL(destinationUrl); | ||
if (content && content instanceof URL) { | ||
content = readFileSync(content); | ||
} | ||
try { | ||
@@ -10,0 +17,0 @@ writeFileSyncNode(destinationUrlObject, content); |
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
132408
186
3849
+ Added@jsenv/humanize@1.2.0(transitive)
+ Added@jsenv/urls@2.2.8(transitive)
- Removed@jsenv/humanize@1.1.3(transitive)
- Removed@jsenv/urls@2.2.7(transitive)
Updated@jsenv/urls@2.2.8