Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@jsenv/util

Package Overview
Dependencies
Maintainers
2
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jsenv/util - npm Package Compare versions

Comparing version 4.0.5 to 4.0.6

2

package.json
{
"name": "@jsenv/util",
"version": "4.0.5",
"version": "4.0.6",
"description": "Set of functions often needed when using Node.js.",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -521,3 +521,3 @@ # util

[unit test](./test/readSymbolicLink/readSymbolicLink.test.js) • [implementation](./src/readSymbolicLink.js) • [symlink documentation on Node.js](https://nodejs.org/docs/latest-v13.x/api/fs.html#fs_fs_symlink_target_path_type_callback)
[implementation](./src/readSymbolicLink.js) • [symlink documentation on Node.js](https://nodejs.org/docs/latest-v13.x/api/fs.html#fs_fs_symlink_target_path_type_callback)

@@ -749,3 +749,7 @@ </details>

urlToFileSystemPath("file:///directory/file.js")
// on mac or linux
urlToFileSystemPath("file:///directory/file.js") // /directory/file.js
// on windows
urlToFileSystemPath("file://C:/directory/file.js") // C:\\directory\\file.js
```

@@ -823,4 +827,4 @@

urlToRelativeUrl("file:///directory/file.js", "file:///directory/")
urlToRelativeUrl("http://example.com/directory/file.js", "http://example.com/directory/")
urlToRelativeUrl("file:///directory/file.js", "file:///directory/") // file.js
urlToRelativeUrl("file:///directory/index.js", "file:///directory/foo/file.js") // ../index.js
```

@@ -845,3 +849,3 @@

[unit test](./test/urlToRelativeUrl/urlToRelativeUrl.test.js) &bullet; [implementation](./src/urlToRelativeUrl.js)
[unit test](./test/urlToRessource/urlToRessource.test.js) &bullet; [implementation](./src/urlToRessource.js)

@@ -899,3 +903,3 @@ </details>

[unit test](./test/writeFileSystemNodeModificationTime.test.js) &bullet; [implementation](./src/writeFileSystemNodeModificationTime.js)
[unit test](./test/writeFileSystemNodeModificationTime/writeFileSystemNodeModificationTime.test.js) &bullet; [implementation](./src/writeFileSystemNodeModificationTime.js)

@@ -917,3 +921,3 @@ </details>

[unit test](./test/writeFileSystemNodeModificationTime.test.js) &bullet; [implementation](./src/writeFileSystemNodeModificationTime.js) &bullet; [symlink documentation on Node.js](https://nodejs.org/docs/latest-v13.x/api/fs.html#fs_fs_symlink_target_path_type_callback)
[implementation](./src/writeFileSystemNodeModificationTime.js) &bullet; [symlink documentation on Node.js](https://nodejs.org/docs/latest-v13.x/api/fs.html#fs_fs_symlink_target_path_type_callback)

@@ -920,0 +924,0 @@ </details>

@@ -37,3 +37,3 @@ import { promises } from "fs"

if (isWindows && typeof type !== "string") {
if (isWindows && typeof type === "undefined") {
// without this if you write a symbolic link without specifying the type on windows

@@ -40,0 +40,0 @@ // you later get EPERM when doing stat on the symlink

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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