@poe-platform/safe-bash 0.1.770 → 0.1.771

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.
@@ -85666,6 +85666,10 @@ ${prefix2} line ${offset + line}: \`${source.split("\n")[line - 1] ?? ""}'
85666
85666
  }
85667
85667
  }
85668
85668
  if (files.length === 0) files.push("-");
85669
+ if (rawLines === void 0) {
85670
+ if (files.includes("-")) return void 0;
85671
+ rawLines = [];
85672
+ }
85669
85673
  if (!files.every((f) => f === "-")) {
85670
85674
  if (cwd === void 0) return rawLines.length === 0 ? [] : void 0;
85671
85675
  const stdinCount = files.filter((f) => f === "-").length;
@@ -90450,7 +90454,7 @@ unsigned int ${ident}_len = ${view.byteLength};
90450
90454
  let cjLines;
90451
90455
  if (w0Plain === "comm") cjLines = this.evalSyncComm(stdinLines, allArgs, rawState.cwd);
90452
90456
  else if (w0Plain === "join") cjLines = this.evalSyncJoin(stdinLines, allArgs, rawState.cwd);
90453
- else if (w0Plain === "paste") cjLines = this.evalSyncPaste(stdinLines ?? [], allArgs, rawState.cwd);
90457
+ else if (w0Plain === "paste") cjLines = this.evalSyncPaste(stdinLines, allArgs, rawState.cwd);
90454
90458
  else if (w0Plain === "factor") cjLines = this.evalSyncFactor(stdinLines, allArgs);
90455
90459
  else if (w0Plain === "tsort") cjLines = this.evalSyncTsort(stdinLines, allArgs, rawState.cwd);
90456
90460
  else if (w0Plain === "jq") cjLines = this.evalSyncJq(void 0, allArgs, rawState.cwd);
@@ -90607,7 +90611,7 @@ unsigned int ${ident}_len = ${view.byteLength};
90607
90611
  const nlRes = !hasSingleHereStringRedir && !hasSingleStdinRedir && opArgs.some((a) => !a.startsWith("-")) ? this.evalSyncNl([], allArgs, rawState.cwd) : this.evalSyncNl(rawLines, opArgs, rawState.cwd);
90608
90612
  if (nlRes !== void 0) fileRes = renderLines(nlRes);
90609
90613
  } else if (w0Plain === "paste") {
90610
- const pasteRes = hasSingleHereStringRedir || hasSingleStdinRedir ? this.evalSyncPaste(rawLines, opArgs, rawState.cwd) : this.evalSyncPaste([], allArgs, rawState.cwd);
90614
+ const pasteRes = hasSingleHereStringRedir || hasSingleStdinRedir ? this.evalSyncPaste(rawLines, opArgs, rawState.cwd) : this.evalSyncPaste(void 0, allArgs, rawState.cwd);
90611
90615
  if (pasteRes !== void 0) fileRes = renderLines(pasteRes);
90612
90616
  } else if (w0Plain === "comm") {
90613
90617
  const commRes = hasSingleHereStringRedir || hasSingleStdinRedir ? this.evalSyncComm(rawLines, opArgs, rawState.cwd) : this.evalSyncComm([], allArgs, rawState.cwd);
@@ -31988,6 +31988,11 @@ export class Runtime {
31988
31988
  }
31989
31989
  if (files.length === 0)
31990
31990
  files.push("-");
31991
+ if (rawLines === undefined) {
31992
+ if (files.includes("-"))
31993
+ return undefined;
31994
+ rawLines = [];
31995
+ }
31991
31996
  if (!files.every(f => f === "-")) {
31992
31997
  if (cwd === undefined)
31993
31998
  return rawLines.length === 0 ? [] : undefined;
@@ -38414,7 +38419,7 @@ export class Runtime {
38414
38419
  else if (w0Plain === "join")
38415
38420
  cjLines = this.evalSyncJoin(stdinLines, allArgs, rawState.cwd);
38416
38421
  else if (w0Plain === "paste")
38417
- cjLines = this.evalSyncPaste(stdinLines ?? [], allArgs, rawState.cwd);
38422
+ cjLines = this.evalSyncPaste(stdinLines, allArgs, rawState.cwd);
38418
38423
  else if (w0Plain === "factor")
38419
38424
  cjLines = this.evalSyncFactor(stdinLines, allArgs);
38420
38425
  else if (w0Plain === "tsort")
@@ -38637,7 +38642,7 @@ export class Runtime {
38637
38642
  fileRes = renderLines(nlRes);
38638
38643
  }
38639
38644
  else if (w0Plain === "paste") {
38640
- const pasteRes = (hasSingleHereStringRedir || hasSingleStdinRedir) ? this.evalSyncPaste(rawLines, opArgs, rawState.cwd) : this.evalSyncPaste([], allArgs, rawState.cwd);
38645
+ const pasteRes = (hasSingleHereStringRedir || hasSingleStdinRedir) ? this.evalSyncPaste(rawLines, opArgs, rawState.cwd) : this.evalSyncPaste(undefined, allArgs, rawState.cwd);
38641
38646
  if (pasteRes !== undefined)
38642
38647
  fileRes = renderLines(pasteRes);
38643
38648
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@poe-platform/safe-bash",
3
- "version": "0.1.770",
3
+ "version": "0.1.771",
4
4
  "description": "Extensible virtual shell with pluggable filesystems and streaming commands",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -841,7 +841,7 @@
841
841
  "access": "public"
842
842
  },
843
843
  "dependencies": {
844
- "@poe-platform/safe-fs": "0.1.770",
844
+ "@poe-platform/safe-fs": "0.1.771",
845
845
  "pdf-lib": "1.17.1",
846
846
  "@noble/hashes": "2.4.0",
847
847
  "pako": "3.0.1",