@jsenv/util
Advanced tools
Comparing version 4.0.5 to 4.0.6
{ | ||
"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) • [implementation](./src/urlToRelativeUrl.js) | ||
[unit test](./test/urlToRessource/urlToRessource.test.js) • [implementation](./src/urlToRessource.js) | ||
@@ -899,3 +903,3 @@ </details> | ||
[unit test](./test/writeFileSystemNodeModificationTime.test.js) • [implementation](./src/writeFileSystemNodeModificationTime.js) | ||
[unit test](./test/writeFileSystemNodeModificationTime/writeFileSystemNodeModificationTime.test.js) • [implementation](./src/writeFileSystemNodeModificationTime.js) | ||
@@ -917,3 +921,3 @@ </details> | ||
[unit test](./test/writeFileSystemNodeModificationTime.test.js) • [implementation](./src/writeFileSystemNodeModificationTime.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/writeFileSystemNodeModificationTime.js) • [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
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
333290
923