@poe-platform/safe-bash 0.1.659 → 0.1.661
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/dist/safe-bash/chunks/{chunk-STBTGG6M.js → chunk-2GRCWCMW.js} +4 -3
- package/dist/safe-bash/chunks/chunk-2GRCWCMW.js.map +7 -0
- package/dist/safe-bash/commands/node/index.browser.js +1 -1
- package/dist/safe-bash/core.browser.js +1 -1
- package/package.json +2 -2
- package/dist/safe-bash/chunks/chunk-STBTGG6M.js.map +0 -7
|
@@ -99,7 +99,7 @@ init_platform();
|
|
|
99
99
|
// packages/safe-js/dist/browser/safe-fs.js
|
|
100
100
|
init_platform();
|
|
101
101
|
|
|
102
|
-
// packages/safe-js/dist/browser/chunks/chunk-
|
|
102
|
+
// packages/safe-js/dist/browser/chunks/chunk-3PGSLNVD.js
|
|
103
103
|
init_platform();
|
|
104
104
|
var platform = Object.freeze({
|
|
105
105
|
errno(_code) {
|
|
@@ -257,7 +257,7 @@ async function* readBytes2(source, signal) {
|
|
|
257
257
|
}
|
|
258
258
|
}
|
|
259
259
|
function admitCapabilities(path, options, capabilities) {
|
|
260
|
-
if (![capabilities.positionedRead, capabilities.positionedWrite, capabilities.truncate].every((value) => typeof value === "boolean") || capabilities.position !== void 0 && typeof capabilities.position !== "boolean" || capabilities.readObservation !== void 0 && typeof capabilities.readObservation !== "boolean" || capabilities.openTruncate !== void 0 && typeof capabilities.openTruncate !== "boolean" || capabilities.positionedAppendWrite !== void 0 && typeof capabilities.positionedAppendWrite !== "boolean" || capabilities.delegateZeroLengthWrite !== void 0 && typeof capabilities.delegateZeroLengthWrite !== "boolean" || !["none", "volatile", "storage"].includes(capabilities.synchronization)) throw new FsError("EINVAL", { syscall: "open", path });
|
|
260
|
+
if (![capabilities.positionedRead, capabilities.positionedWrite, capabilities.truncate].every((value) => typeof value === "boolean") || capabilities.publication !== void 0 && capabilities.publication !== "conditional" || capabilities.position !== void 0 && typeof capabilities.position !== "boolean" || capabilities.readObservation !== void 0 && typeof capabilities.readObservation !== "boolean" || capabilities.openTruncate !== void 0 && typeof capabilities.openTruncate !== "boolean" || capabilities.positionedAppendWrite !== void 0 && typeof capabilities.positionedAppendWrite !== "boolean" || capabilities.delegateZeroLengthWrite !== void 0 && typeof capabilities.delegateZeroLengthWrite !== "boolean" || !["none", "volatile", "storage"].includes(capabilities.synchronization)) throw new FsError("EINVAL", { syscall: "open", path });
|
|
261
261
|
if (options.truncate && !(capabilities.openTruncate ?? capabilities.truncate) || options.synchronization !== void 0 && capabilities.synchronization === "none") {
|
|
262
262
|
throw new FsError("ENOTSUP", { syscall: "open", path });
|
|
263
263
|
}
|
|
@@ -288,6 +288,7 @@ var ManagedFileDescriptor = class {
|
|
|
288
288
|
this.#backend = backend;
|
|
289
289
|
const positionedAppendWrite = capabilities.positionedAppendWrite === true && capabilities.positionedWrite && options.access !== "read";
|
|
290
290
|
this.capabilities = Object.freeze({
|
|
291
|
+
...capabilities.publication === void 0 ? {} : { publication: capabilities.publication },
|
|
291
292
|
...capabilities.position === void 0 ? {} : { position: capabilities.position },
|
|
292
293
|
...capabilities.readObservation === void 0 ? {} : { readObservation: capabilities.readObservation },
|
|
293
294
|
...capabilities.openTruncate === void 0 ? {} : { openTruncate: capabilities.openTruncate },
|
|
@@ -4295,4 +4296,4 @@ export {
|
|
|
4295
4296
|
safeJsNodeCommands,
|
|
4296
4297
|
createSafeJsNodeCommand
|
|
4297
4298
|
};
|
|
4298
|
-
//# sourceMappingURL=chunk-
|
|
4299
|
+
//# sourceMappingURL=chunk-2GRCWCMW.js.map
|