omp-fabric 1.0.2 → 1.0.3
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
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.0.3
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
|
|
7
|
+
- **Reads never paged on Windows.** The guard that decides whether a path is pageable scanned for the last colon in the whole path string, and a Windows drive designator is a colon, so `omp.read` stopped at the host's per-call line cap and reported the wrong reason for stopping. The drive root is now excluded from that scan on every platform. Windows users were getting the truncated reads that 1.0.0 set out to fix.
|
|
8
|
+
- Three test files assumed a POSIX environment: a drive-letter path encoding, two bash fixtures that read `/dev/zero`, and PATH fixtures that Windows could not resolve. All three now run on both platforms with no skips.
|
|
9
|
+
|
|
3
10
|
## 1.0.2
|
|
4
11
|
|
|
5
12
|
### Fixed
|
|
@@ -8730,6 +8730,8 @@ var countLines = (text) => {
|
|
|
8730
8730
|
};
|
|
8731
8731
|
var READ_SELECTOR_PATTERN = /:(raw:)?(\d+)(-(\d+)?)?$/i;
|
|
8732
8732
|
var READ_RAW_SELECTOR_PATTERN = /:raw$/i;
|
|
8733
|
+
var WINDOWS_PATH_ROOT_PATTERN = /^(?:\\\\[?.]\\)?[A-Za-z]:(?=[\\/])/;
|
|
8734
|
+
var withoutWindowsRoot = (rawPath) => rawPath.slice(WINDOWS_PATH_ROOT_PATTERN.exec(rawPath)?.[0].length ?? 0);
|
|
8733
8735
|
var readPageSelector = (target, offset) => target.endLimit === Number.POSITIVE_INFINITY ? `${target.base}:raw:${offset}-` : `${target.base}:raw:${offset}-${target.endLimit}`;
|
|
8734
8736
|
var parseReadTarget = (rawPath) => {
|
|
8735
8737
|
if (typeof rawPath !== "string" || rawPath.length === 0 || rawPath.includes("://")) return void 0;
|
|
@@ -8747,8 +8749,9 @@ var parseReadTarget = (rawPath) => {
|
|
|
8747
8749
|
selected: true
|
|
8748
8750
|
};
|
|
8749
8751
|
}
|
|
8750
|
-
const
|
|
8751
|
-
const
|
|
8752
|
+
const body = withoutWindowsRoot(rawPath);
|
|
8753
|
+
const lastColon = body.lastIndexOf(":");
|
|
8754
|
+
const suffix = lastColon === -1 ? "" : body.slice(lastColon + 1);
|
|
8752
8755
|
const pageable = suffix.length === 0;
|
|
8753
8756
|
return { base: rawPath, start: 1, endLimit: Number.POSITIVE_INFINITY, pageable, selected: false };
|
|
8754
8757
|
};
|