@jsenv/filesystem
Advanced tools
Comparing version 4.8.1 to 4.8.2
{ | ||
"name": "@jsenv/filesystem", | ||
"version": "4.8.1", | ||
"version": "4.8.2", | ||
"license": "MIT", | ||
@@ -34,3 +34,3 @@ "repository": { | ||
"dependencies": { | ||
"@jsenv/urls": "2.3.0", | ||
"@jsenv/urls": "2.3.1", | ||
"@jsenv/url-meta": "8.4.2", | ||
@@ -37,0 +37,0 @@ "@jsenv/abort": "4.3.0", |
import { Abort } from "@jsenv/abort"; | ||
import { urlToFileSystemPath, resolveUrl } from "@jsenv/urls"; | ||
import { resolveUrl, urlToFileSystemPath } from "@jsenv/urls"; | ||
import { assertAndNormalizeDirectoryUrl } from "../path_and_url/directory_url_validation.js"; | ||
import { urlTargetsSameFileSystemPath } from "../path_and_url/url_targets_same_file_system_path.js"; | ||
import { readDirectorySync } from "../read_write/read_directory_sync.js"; | ||
import { readSymbolicLinkSync } from "../read_write/read_symbolic_link_sync.js"; | ||
import { readEntryStatSync } from "../read_write/stat/read_entry_stat_sync.js"; | ||
import { statsToType } from "../read_write/stat/stats_to_type.js"; | ||
import { readEntryStatSync } from "../read_write/stat/read_entry_stat_sync.js"; | ||
import { readSymbolicLinkSync } from "../read_write/read_symbolic_link_sync.js"; | ||
import { readDirectorySync } from "../read_write/read_directory_sync.js"; | ||
import { copyEntrySync } from "./copy_entry_sync.js"; | ||
@@ -11,0 +11,0 @@ |
import { Abort } from "@jsenv/abort"; | ||
import { urlToFileSystemPath, resolveUrl } from "@jsenv/urls"; | ||
import { resolveUrl, urlToFileSystemPath } from "@jsenv/urls"; | ||
import { assertAndNormalizeDirectoryUrl } from "../path_and_url/directory_url_validation.js"; | ||
import { urlTargetsSameFileSystemPath } from "../path_and_url/url_targets_same_file_system_path.js"; | ||
import { readDirectory } from "../read_write/read_directory.js"; | ||
import { readSymbolicLink } from "../read_write/read_symbolic_link.js"; | ||
import { readEntryStat } from "../read_write/stat/read_entry_stat.js"; | ||
import { statsToType } from "../read_write/stat/stats_to_type.js"; | ||
import { readEntryStat } from "../read_write/stat/read_entry_stat.js"; | ||
import { readSymbolicLink } from "../read_write/read_symbolic_link.js"; | ||
import { readDirectory } from "../read_write/read_directory.js"; | ||
import { copyEntry } from "./copy_entry.js"; | ||
@@ -11,0 +11,0 @@ |
@@ -1,22 +0,22 @@ | ||
import { copyFileSync as copyFileSyncNode } from "node:fs"; | ||
import { Abort } from "@jsenv/abort"; | ||
import { | ||
ensurePathnameTrailingSlash, | ||
resolveUrl, | ||
urlToRelativeUrl, | ||
ensurePathnameTrailingSlash, | ||
urlIsInsideOf, | ||
urlToFileSystemPath, | ||
urlToRelativeUrl, | ||
} from "@jsenv/urls"; | ||
import { copyFileSync as copyFileSyncNode } from "node:fs"; | ||
import { assertAndNormalizeFileUrl } from "../path_and_url/file_url_validation.js"; | ||
import { urlTargetsSameFileSystemPath } from "../path_and_url/url_targets_same_file_system_path.js"; | ||
import { ensureParentDirectoriesSync } from "../read_write/ensure_parent_directories_sync.js"; | ||
import { readDirectorySync } from "../read_write/read_directory_sync.js"; | ||
import { readSymbolicLinkSync } from "../read_write/read_symbolic_link_sync.js"; | ||
import { binaryFlagsToPermissions } from "../read_write/stat/permissions.js"; | ||
import { readEntryStatSync } from "../read_write/stat/read_entry_stat_sync.js"; | ||
import { statsToType } from "../read_write/stat/stats_to_type.js"; | ||
import { binaryFlagsToPermissions } from "../read_write/stat/permissions.js"; | ||
import { writeEntryModificationTimeSync } from "../read_write/stat/write_entry_modification_time_sync.js"; | ||
import { writeEntryPermissionsSync } from "../read_write/stat/write_entry_permissions_sync.js"; | ||
import { writeEntryModificationTimeSync } from "../read_write/stat/write_entry_modification_time_sync.js"; | ||
import { writeDirectorySync } from "../read_write/write_directory_sync.js"; | ||
import { ensureParentDirectoriesSync } from "../read_write/ensure_parent_directories_sync.js"; | ||
import { readDirectorySync } from "../read_write/read_directory_sync.js"; | ||
import { readSymbolicLinkSync } from "../read_write/read_symbolic_link_sync.js"; | ||
import { writeSymbolicLinkSync } from "../read_write/write_symbolic_link_sync.js"; | ||
@@ -23,0 +23,0 @@ import { removeEntrySync } from "../remove/remove_entry_sync.js"; |
@@ -1,22 +0,22 @@ | ||
import { copyFile as copyFileNode } from "node:fs"; | ||
import { Abort } from "@jsenv/abort"; | ||
import { | ||
ensurePathnameTrailingSlash, | ||
resolveUrl, | ||
urlToRelativeUrl, | ||
ensurePathnameTrailingSlash, | ||
urlIsInsideOf, | ||
urlToFileSystemPath, | ||
urlToRelativeUrl, | ||
} from "@jsenv/urls"; | ||
import { copyFile as copyFileNode } from "node:fs"; | ||
import { assertAndNormalizeFileUrl } from "../path_and_url/file_url_validation.js"; | ||
import { urlTargetsSameFileSystemPath } from "../path_and_url/url_targets_same_file_system_path.js"; | ||
import { ensureParentDirectories } from "../read_write/ensure_parent_directories.js"; | ||
import { readDirectory } from "../read_write/read_directory.js"; | ||
import { readSymbolicLink } from "../read_write/read_symbolic_link.js"; | ||
import { binaryFlagsToPermissions } from "../read_write/stat/permissions.js"; | ||
import { readEntryStat } from "../read_write/stat/read_entry_stat.js"; | ||
import { statsToType } from "../read_write/stat/stats_to_type.js"; | ||
import { binaryFlagsToPermissions } from "../read_write/stat/permissions.js"; | ||
import { writeEntryModificationTime } from "../read_write/stat/write_entry_modification_time.js"; | ||
import { writeEntryPermissions } from "../read_write/stat/write_entry_permissions.js"; | ||
import { writeEntryModificationTime } from "../read_write/stat/write_entry_modification_time.js"; | ||
import { writeDirectory } from "../read_write/write_directory.js"; | ||
import { ensureParentDirectories } from "../read_write/ensure_parent_directories.js"; | ||
import { readDirectory } from "../read_write/read_directory.js"; | ||
import { readSymbolicLink } from "../read_write/read_symbolic_link.js"; | ||
import { writeSymbolicLink } from "../read_write/write_symbolic_link.js"; | ||
@@ -23,0 +23,0 @@ import { removeEntry } from "../remove/remove_entry.js"; |
@@ -1,2 +0,2 @@ | ||
import { watch, openSync, closeSync } from "node:fs"; | ||
import { closeSync, openSync, watch } from "node:fs"; | ||
@@ -3,0 +3,0 @@ const isWindows = process.platform === "win32"; |
@@ -1,9 +0,9 @@ | ||
import { readdirSync, statSync } from "node:fs"; | ||
import { URL_META } from "@jsenv/url-meta"; | ||
import { urlToFileSystemPath, urlToRelativeUrl } from "@jsenv/urls"; | ||
import { readdirSync, statSync } from "node:fs"; | ||
import { assertAndNormalizeDirectoryUrl } from "../path_and_url/directory_url_validation.js"; | ||
import { statsToType } from "../read_write/stat/stats_to_type.js"; | ||
import { createWatcher } from "./create_watcher.js"; | ||
import { guardTooFastSecondCallPerFile } from "./guard_second_call.js"; | ||
import { createWatcher } from "./create_watcher.js"; | ||
import { trackResources } from "./track_resources.js"; | ||
@@ -10,0 +10,0 @@ |
@@ -0,10 +1,10 @@ | ||
import { urlToFileSystemPath } from "@jsenv/urls"; | ||
import { statSync } from "node:fs"; | ||
import { dirname, basename } from "node:path"; | ||
import { urlToFileSystemPath } from "@jsenv/urls"; | ||
import { basename, dirname } from "node:path"; | ||
import { assertAndNormalizeFileUrl } from "../path_and_url/file_url_validation.js"; | ||
import { statsToType } from "../read_write/stat/stats_to_type.js"; | ||
import { trackResources } from "./track_resources.js"; | ||
import { createWatcher } from "./create_watcher.js"; | ||
import { guardTooFastSecondCall } from "./guard_second_call.js"; | ||
import { trackResources } from "./track_resources.js"; | ||
@@ -11,0 +11,0 @@ export const registerFileLifecycle = ( |
@@ -5,4 +5,4 @@ import { Abort } from "@jsenv/abort"; | ||
import { comparePathnames } from "../path_and_url/compare_pathnames.js"; | ||
import { assertAndNormalizeDirectoryUrl } from "../path_and_url/directory_url_validation.js"; | ||
import { comparePathnames } from "../path_and_url/compare_pathnames.js"; | ||
import { readDirectory } from "../read_write/read_directory.js"; | ||
@@ -9,0 +9,0 @@ import { readEntryStat } from "../read_write/stat/read_entry_stat.js"; |
@@ -5,6 +5,6 @@ import { Abort } from "@jsenv/abort"; | ||
import { comparePathnames } from "../path_and_url/compare_pathnames.js"; | ||
import { assertAndNormalizeDirectoryUrl } from "../path_and_url/directory_url_validation.js"; | ||
import { comparePathnames } from "../path_and_url/compare_pathnames.js"; | ||
import { readDirectory } from "../read_write/read_directory.js"; | ||
import { readEntryStat } from "../read_write/stat/read_entry_stat.js"; | ||
import { readDirectory } from "../read_write/read_directory.js"; | ||
@@ -11,0 +11,0 @@ export const collectFiles = async ({ |
import { URL_META } from "@jsenv/url-meta"; | ||
import { urlToRelativeUrl } from "@jsenv/urls"; | ||
import { comparePathnames } from "../path_and_url/compare_pathnames.js"; | ||
import { assertAndNormalizeDirectoryUrl } from "../path_and_url/directory_url_validation.js"; | ||
import { comparePathnames } from "../path_and_url/compare_pathnames.js"; | ||
import { readDirectorySync } from "../read_write/read_directory_sync.js"; | ||
import { readEntryStatSync } from "../read_write/stat/read_entry_stat_sync.js"; | ||
import { readDirectorySync } from "../read_write/read_directory_sync.js"; | ||
@@ -9,0 +9,0 @@ export const visitStructureSync = ({ |
@@ -0,1 +1,3 @@ | ||
// tslint:disable:ordered-imports | ||
// we might wanna expose the sync versions as follows: | ||
@@ -2,0 +4,0 @@ // readDirectory.sync() |
import { Abort } from "@jsenv/abort"; | ||
import { urlToFileSystemPath, resolveUrl } from "@jsenv/urls"; | ||
import { resolveUrl, urlToFileSystemPath } from "@jsenv/urls"; | ||
import { assertAndNormalizeDirectoryUrl } from "../path_and_url/directory_url_validation.js"; | ||
import { urlTargetsSameFileSystemPath } from "../path_and_url/url_targets_same_file_system_path.js"; | ||
import { readDirectory } from "../read_write/read_directory.js"; | ||
import { readSymbolicLink } from "../read_write/read_symbolic_link.js"; | ||
import { readEntryStat } from "../read_write/stat/read_entry_stat.js"; | ||
import { statsToType } from "../read_write/stat/stats_to_type.js"; | ||
import { readSymbolicLink } from "../read_write/read_symbolic_link.js"; | ||
import { readDirectory } from "../read_write/read_directory.js"; | ||
import { moveEntry } from "./move_entry.js"; | ||
@@ -11,0 +11,0 @@ |
@@ -0,12 +1,12 @@ | ||
import { Abort } from "@jsenv/abort"; | ||
import { resolveUrl, urlToFileSystemPath } from "@jsenv/urls"; | ||
import { rename } from "node:fs"; | ||
import { Abort } from "@jsenv/abort"; | ||
import { urlToFileSystemPath, resolveUrl } from "@jsenv/urls"; | ||
import { copyEntry } from "../copy/copy_entry.js"; | ||
import { assertAndNormalizeFileUrl } from "../path_and_url/file_url_validation.js"; | ||
import { urlTargetsSameFileSystemPath } from "../path_and_url/url_targets_same_file_system_path.js"; | ||
import { statsToType } from "../read_write/stat/stats_to_type.js"; | ||
import { readEntryStat } from "../read_write/stat/read_entry_stat.js"; | ||
import { ensureParentDirectories } from "../read_write/ensure_parent_directories.js"; | ||
import { readSymbolicLink } from "../read_write/read_symbolic_link.js"; | ||
import { copyEntry } from "../copy/copy_entry.js"; | ||
import { readEntryStat } from "../read_write/stat/read_entry_stat.js"; | ||
import { statsToType } from "../read_write/stat/stats_to_type.js"; | ||
import { removeEntry } from "../remove/remove_entry.js"; | ||
@@ -13,0 +13,0 @@ |
import { | ||
ensurePathnameTrailingSlash, | ||
fileSystemPathToUrl, | ||
isFileSystemPath, | ||
ensurePathnameTrailingSlash, | ||
} from "@jsenv/urls"; | ||
@@ -6,0 +6,0 @@ |
@@ -0,3 +1,3 @@ | ||
import { urlToFileSystemPath } from "@jsenv/urls"; | ||
import { dirname } from "node:path"; | ||
import { urlToFileSystemPath } from "@jsenv/urls"; | ||
@@ -4,0 +4,0 @@ import { assertAndNormalizeFileUrl } from "../path_and_url/file_url_validation.js"; |
@@ -0,3 +1,3 @@ | ||
import { urlToFileSystemPath } from "@jsenv/urls"; | ||
import { dirname } from "node:path"; | ||
import { urlToFileSystemPath } from "@jsenv/urls"; | ||
@@ -4,0 +4,0 @@ import { assertAndNormalizeFileUrl } from "../path_and_url/file_url_validation.js"; |
@@ -0,3 +1,3 @@ | ||
import { fileSystemPathToUrl, urlToFileSystemPath } from "@jsenv/urls"; | ||
import { readdirSync, realpathSync } from "node:fs"; | ||
import { fileSystemPathToUrl, urlToFileSystemPath } from "@jsenv/urls"; | ||
@@ -4,0 +4,0 @@ export const getRealFileSystemUrlSync = ( |
@@ -1,7 +0,7 @@ | ||
import { readdirSync, statSync, readFileSync } from "node:fs"; | ||
import { urlToRelativeUrl } from "@jsenv/urls"; | ||
import { CONTENT_TYPE } from "@jsenv/utils/src/content_type/content_type.js"; | ||
import { readdirSync, readFileSync, statSync } from "node:fs"; | ||
import { comparePathnames } from "../path_and_url/compare_pathnames.js"; | ||
import { assertAndNormalizeDirectoryUrl } from "../path_and_url/directory_url_validation.js"; | ||
import { comparePathnames } from "../path_and_url/compare_pathnames.js"; | ||
@@ -8,0 +8,0 @@ export const readFileStructureSync = (directoryUrl) => { |
@@ -6,4 +6,4 @@ /* | ||
import { fileSystemPathToUrl, isFileSystemPath } from "@jsenv/urls"; | ||
import { readlinkSync } from "node:fs"; | ||
import { isFileSystemPath, fileSystemPathToUrl } from "@jsenv/urls"; | ||
@@ -10,0 +10,0 @@ import { assertAndNormalizeFileUrl } from "../path_and_url/file_url_validation.js"; |
@@ -6,4 +6,4 @@ /* | ||
import { fileSystemPathToUrl, isFileSystemPath } from "@jsenv/urls"; | ||
import { readlink } from "node:fs"; | ||
import { isFileSystemPath, fileSystemPathToUrl } from "@jsenv/urls"; | ||
@@ -10,0 +10,0 @@ import { assertAndNormalizeFileUrl } from "../path_and_url/file_url_validation.js"; |
@@ -6,4 +6,4 @@ /* | ||
import { urlToFileSystemPath } from "@jsenv/urls"; | ||
import { promises } from "node:fs"; | ||
import { urlToFileSystemPath } from "@jsenv/urls"; | ||
@@ -10,0 +10,0 @@ import { assertAndNormalizeFileUrl } from "../../path_and_url/file_url_validation.js"; |
@@ -6,4 +6,4 @@ /* | ||
import { urlToFileSystemPath } from "@jsenv/urls"; | ||
import { lstatSync, statSync } from "node:fs"; | ||
import { urlToFileSystemPath } from "@jsenv/urls"; | ||
@@ -10,0 +10,0 @@ import { assertAndNormalizeFileUrl } from "../../path_and_url/file_url_validation.js"; |
@@ -6,4 +6,4 @@ /* | ||
import { urlToFileSystemPath } from "@jsenv/urls"; | ||
import { lstat, stat } from "node:fs"; | ||
import { urlToFileSystemPath } from "@jsenv/urls"; | ||
@@ -10,0 +10,0 @@ import { assertAndNormalizeFileUrl } from "../../path_and_url/file_url_validation.js"; |
@@ -1,2 +0,2 @@ | ||
import { promises, constants } from "node:fs"; | ||
import { constants, promises } from "node:fs"; | ||
@@ -3,0 +3,0 @@ import { assertAndNormalizeFileUrl } from "../../path_and_url/file_url_validation.js"; |
@@ -0,3 +1,3 @@ | ||
import { urlToFileSystemPath } from "@jsenv/urls"; | ||
import { mkdirSync } from "node:fs"; | ||
import { urlToFileSystemPath } from "@jsenv/urls"; | ||
@@ -4,0 +4,0 @@ import { assertAndNormalizeDirectoryUrl } from "../path_and_url/directory_url_validation.js"; |
@@ -0,7 +1,7 @@ | ||
import { urlToFileSystemPath } from "@jsenv/urls"; | ||
import { promises } from "node:fs"; | ||
import { urlToFileSystemPath } from "@jsenv/urls"; | ||
import { assertAndNormalizeDirectoryUrl } from "../path_and_url/directory_url_validation.js"; | ||
import { readEntryStat } from "./stat/read_entry_stat.js"; | ||
import { statsToType } from "./stat/stats_to_type.js"; | ||
import { readEntryStat } from "./stat/read_entry_stat.js"; | ||
@@ -8,0 +8,0 @@ // https://nodejs.org/dist/latest-v13.x/docs/api/fs.html#fs_fspromises_mkdir_path_options |
import { | ||
writeFileSync as writeFileSyncNode, | ||
mkdirSync, | ||
readFileSync, | ||
writeFileSync as writeFileSyncNode, | ||
} from "node:fs"; | ||
@@ -6,0 +6,0 @@ |
@@ -1,14 +0,14 @@ | ||
import { symlinkSync } from "node:fs"; | ||
import { | ||
fileSystemPathToUrl, | ||
isFileSystemPath, | ||
resolveUrl, | ||
urlToFileSystemPath, | ||
resolveUrl, | ||
isFileSystemPath, | ||
} from "@jsenv/urls"; | ||
import { symlinkSync } from "node:fs"; | ||
import { assertAndNormalizeFileUrl } from "../path_and_url/file_url_validation.js"; | ||
import { removeEntrySync } from "../remove/remove_entry_sync.js"; | ||
import { ensureParentDirectoriesSync } from "./ensure_parent_directories_sync.js"; | ||
import { readSymbolicLinkSync } from "./read_symbolic_link_sync.js"; | ||
import { readEntryStatSync } from "./stat/read_entry_stat_sync.js"; | ||
import { readSymbolicLinkSync } from "./read_symbolic_link_sync.js"; | ||
import { ensureParentDirectoriesSync } from "./ensure_parent_directories_sync.js"; | ||
@@ -15,0 +15,0 @@ const isWindows = process.platform === "win32"; |
@@ -1,14 +0,14 @@ | ||
import { promises } from "node:fs"; | ||
import { | ||
fileSystemPathToUrl, | ||
isFileSystemPath, | ||
resolveUrl, | ||
urlToFileSystemPath, | ||
resolveUrl, | ||
isFileSystemPath, | ||
} from "@jsenv/urls"; | ||
import { promises } from "node:fs"; | ||
import { assertAndNormalizeFileUrl } from "../path_and_url/file_url_validation.js"; | ||
import { removeEntry } from "../remove/remove_entry.js"; | ||
import { ensureParentDirectories } from "./ensure_parent_directories.js"; | ||
import { readSymbolicLink } from "./read_symbolic_link.js"; | ||
import { readEntryStat } from "./stat/read_entry_stat.js"; | ||
import { readSymbolicLink } from "./read_symbolic_link.js"; | ||
import { ensureParentDirectories } from "./ensure_parent_directories.js"; | ||
@@ -15,0 +15,0 @@ // https://nodejs.org/dist/latest-v13.x/docs/api/fs.html#fs_fspromises_symlink_target_path_type |
@@ -0,3 +1,3 @@ | ||
import { URL_META } from "@jsenv/url-meta"; | ||
import { readdirSync, statSync } from "node:fs"; | ||
import { URL_META } from "@jsenv/url-meta"; | ||
@@ -4,0 +4,0 @@ import { removeEntrySync } from "./remove_entry_sync.js"; |
import { urlToFileSystemPath } from "@jsenv/urls"; | ||
import { assertAndNormalizeFileUrl } from "../path_and_url/file_url_validation.js"; | ||
import { readEntryStat } from "../read_write/stat/read_entry_stat.js"; | ||
import { statsToType } from "../read_write/stat/stats_to_type.js"; | ||
import { readEntryStat } from "../read_write/stat/read_entry_stat.js"; | ||
import { writeDirectory } from "../read_write/write_directory.js"; | ||
@@ -7,0 +7,0 @@ import { removeEntry } from "./remove_entry.js"; |
@@ -1,14 +0,14 @@ | ||
import { | ||
unlinkSync, | ||
rmdirSync, | ||
readdirSync, | ||
openSync, | ||
closeSync, | ||
} from "node:fs"; | ||
import { Abort } from "@jsenv/abort"; | ||
import { | ||
ensurePathnameTrailingSlash, | ||
resolveUrl, | ||
urlToFileSystemPath, | ||
resolveUrl, | ||
} from "@jsenv/urls"; | ||
import { | ||
closeSync, | ||
openSync, | ||
readdirSync, | ||
rmdirSync, | ||
unlinkSync, | ||
} from "node:fs"; | ||
@@ -15,0 +15,0 @@ import { assertAndNormalizeFileUrl } from "../path_and_url/file_url_validation.js"; |
@@ -1,12 +0,12 @@ | ||
import { unlink, rmdir, openSync, closeSync } from "node:fs"; | ||
import { Abort } from "@jsenv/abort"; | ||
import { | ||
ensurePathnameTrailingSlash, | ||
resolveUrl, | ||
urlToFileSystemPath, | ||
resolveUrl, | ||
} from "@jsenv/urls"; | ||
import { closeSync, openSync, rmdir, unlink } from "node:fs"; | ||
import { assertAndNormalizeFileUrl } from "../path_and_url/file_url_validation.js"; | ||
import { readDirectory } from "../read_write/read_directory.js"; | ||
import { readEntryStat } from "../read_write/stat/read_entry_stat.js"; | ||
import { readDirectory } from "../read_write/read_directory.js"; | ||
@@ -13,0 +13,0 @@ export const removeEntry = async ( |
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
133061
3872
+ Added@jsenv/humanize@1.2.5(transitive)
+ Added@jsenv/urls@2.3.1(transitive)
- Removed@jsenv/humanize@1.2.4(transitive)
- Removed@jsenv/urls@2.3.0(transitive)
Updated@jsenv/urls@2.3.1