@poe-platform/safe-bash 0.1.676 → 0.1.677

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/README.md CHANGED
@@ -49,7 +49,8 @@ filesystem changes persist in the supplied `fs`.
49
49
  - Pipelines (`|`, `|&`), lists (`;`, `&&`, `||`, `!`), file redirection (`<`, `>`,
50
50
  `>>`), descriptor redirection such as `2>&1`, here-documents, and here-strings.
51
51
  - `if`/`elif`/`else`, `case`, `for name in …`, `while`, `until`, functions,
52
- groups `{ …; }`, subshells `( … )`, `[[ … ]]`, `(( … ))`, and indexed arrays.
52
+ groups `{ …; }`, subshells `( … )` (including adjacent nested subshells),
53
+ `[[ … ]]`, arithmetic commands `(( … ))`, and indexed arrays.
53
54
  - Virtual script files through `sh`, `bash`, or executable paths; `source`/`.`
54
55
  runs a script in the current shell. `set -e`, `set -u`, and `set -o pipefail`
55
56
  control failures; `shopt -s dotglob` includes dotfiles in globs.
@@ -3088,9 +3088,9 @@ function decodeDouble(raw) {
3088
3088
  continue;
3089
3089
  }
3090
3090
  if (character !== "\\") {
3091
- const codePoint2 = character.codePointAt(0);
3091
+ const codePoint2 = raw.codePointAt(index);
3092
3092
  if (codePoint2 === 0) throw syntax();
3093
- result += character;
3093
+ result += String.fromCodePoint(codePoint2);
3094
3094
  if (codePoint2 > 65535) index++;
3095
3095
  continue;
3096
3096
  }
@@ -3156,7 +3156,7 @@ function projectDoubleBytes(raw, start = 0, end = raw.length) {
3156
3156
  continue;
3157
3157
  }
3158
3158
  if (character !== "\\") {
3159
- const codePoint2 = character.codePointAt(0);
3159
+ const codePoint2 = raw.codePointAt(index);
3160
3160
  if (codePoint2 === 0) throw syntax();
3161
3161
  bytes += utf8Width(codePoint2);
3162
3162
  if (codePoint2 > 65535) index++;
@@ -3228,7 +3228,7 @@ function projectSingleBytes(raw, start = 0, end = raw.length) {
3228
3228
  if (character === "\n" || raw[index] === "\n") while (raw[index + 1] === " " || raw[index + 1] === " ") index++;
3229
3229
  bytes++;
3230
3230
  } else {
3231
- const codePoint = character.codePointAt(0);
3231
+ const codePoint = raw.codePointAt(index);
3232
3232
  bytes += utf8Width(codePoint);
3233
3233
  if (codePoint > 65535) index++;
3234
3234
  }
@@ -3960,7 +3960,7 @@ async function* parseYamlDocuments(text, work, ledger, admittedRawBytes, lineOff
3960
3960
  let codePoints = 0;
3961
3961
  for (let index = 0; index < line.text.length; index++) {
3962
3962
  const character = line.text[index];
3963
- const point = character.codePointAt(0);
3963
+ const point = line.text.codePointAt(index);
3964
3964
  if (doubleQuoted) {
3965
3965
  if (escaped) escaped = false;
3966
3966
  else if (character === "\\") escaped = true;
@@ -5200,4 +5200,4 @@ export {
5200
5200
  createYqCommands,
5201
5201
  yqCommands
5202
5202
  };
5203
- //# sourceMappingURL=chunk-AJMYOERL.js.map
5203
+ //# sourceMappingURL=chunk-MP5J46WX.js.map