Socket
Socket
Sign inDemoInstall

@jsenv/filesystem

Package Overview
Dependencies
Maintainers
2
Versions
95
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jsenv/filesystem - npm Package Compare versions

Comparing version 4.7.2 to 4.7.3

4

package.json
{
"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);

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