@photostructure/fs-metadata 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -2
- package/dist/index.d.mts +14 -2
- package/dist/index.d.ts +14 -2
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/doc/SECURITY_AUDIT_2026.md +1 -0
- package/package.json +1 -1
- package/prebuilds/darwin-arm64/@photostructure+fs-metadata.glibc.node +0 -0
- package/prebuilds/darwin-x64/@photostructure+fs-metadata.glibc.node +0 -0
- package/prebuilds/win32-arm64/@photostructure+fs-metadata.glibc.node +0 -0
- package/prebuilds/win32-x64/@photostructure+fs-metadata.glibc.node +0 -0
- package/src/index.ts +6 -2
- package/src/types/options.ts +14 -0
- package/src/volume_metadata.ts +6 -4
package/CHANGELOG.md
CHANGED
|
@@ -14,6 +14,12 @@ Fixed for any bug fixes.
|
|
|
14
14
|
Security in case of vulnerabilities.
|
|
15
15
|
-->
|
|
16
16
|
|
|
17
|
+
## 1.3.0 - 2026-03-26
|
|
18
|
+
|
|
19
|
+
### Added
|
|
20
|
+
|
|
21
|
+
- New optional `mountPoints` field on `Options`: pass pre-fetched mount points to `getMountPointForPath()` and `getVolumeMetadataForPath()` to avoid redundant system queries when resolving multiple paths. Obtain via `getVolumeMountPoints({ includeSystemVolumes: true })`.
|
|
22
|
+
|
|
17
23
|
## 1.2.0 - 2026-03-26
|
|
18
24
|
|
|
19
25
|
### Added
|
package/dist/index.cjs
CHANGED
|
@@ -1502,7 +1502,7 @@ async function getVolumeMetadataForPathImpl(pathname, opts, nativeFn2) {
|
|
|
1502
1502
|
}
|
|
1503
1503
|
async function findMountPointByDeviceId(resolved, resolvedStat, opts, nativeFn2) {
|
|
1504
1504
|
const targetDev = resolvedStat.dev;
|
|
1505
|
-
const mountPoints = await getVolumeMountPointsImpl(
|
|
1505
|
+
const mountPoints = opts.mountPoints ?? await getVolumeMountPointsImpl(
|
|
1506
1506
|
{ ...opts, includeSystemVolumes: true },
|
|
1507
1507
|
nativeFn2
|
|
1508
1508
|
);
|