@poe-platform/safe-bash 0.1.648 → 0.1.649

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.
@@ -51966,7 +51966,7 @@ ${prefix3} line ${offset + line}: \`${source2.split("\n")[line - 1] ?? ""}'
51966
51966
  let candidates = [make(empty2, pattern.startsWith("/") ? "/" : "", pattern.startsWith("/") ? 1 : 0, true, 0)];
51967
51967
  const ignored = (error) => {
51968
51968
  this.signal.throwIfAborted();
51969
- return ["ENOENT", "ENOTDIR", "EACCES"].includes(errorCode(error) ?? "");
51969
+ return ["ENOENT", "ENOTDIR", "EACCES", "EINVAL"].includes(errorCode(error) ?? "");
51970
51970
  };
51971
51971
  const read = async (candidate) => {
51972
51972
  const maxEntries = 1e5 - this.budget.globstarEntries;
@@ -52119,7 +52119,8 @@ ${prefix3} line ${offset + line}: \`${source2.split("\n")[line - 1] ?? ""}'
52119
52119
  const pending = this.fs.readdir(pathOf(state, candidate || "."), { signal: this.signal });
52120
52120
  entries = arrayStore(state) ? await interruptible3(pending, this.signal) : await pending;
52121
52121
  } catch (error) {
52122
- if (["ENOENT", "ENOTDIR", "EACCES"].includes(errorCode(error) ?? "")) continue;
52122
+ this.signal.throwIfAborted();
52123
+ if (["ENOENT", "ENOTDIR", "EACCES", "EINVAL"].includes(errorCode(error) ?? "")) continue;
52123
52124
  throw error;
52124
52125
  }
52125
52126
  for (const entry of entries) {
@@ -52141,7 +52142,8 @@ ${prefix3} line ${offset + line}: \`${source2.split("\n")[line - 1] ?? ""}'
52141
52142
  const stat = arrayStore(state) ? await interruptible3(pending, this.signal) : await pending;
52142
52143
  if (!value2.endsWith("/") || stat.type === "directory") found.push(candidate + (value2.endsWith("/") ? "/" : ""));
52143
52144
  } catch (error) {
52144
- if (!["ENOENT", "ENOTDIR", "EACCES"].includes(errorCode(error) ?? "")) throw error;
52145
+ this.signal.throwIfAborted();
52146
+ if (!["ENOENT", "ENOTDIR", "EACCES", "EINVAL"].includes(errorCode(error) ?? "")) throw error;
52145
52147
  }
52146
52148
  }
52147
52149
  return found.length ? found.sort() : [value2];