@wrongstack/core 0.141.0 → 0.148.0

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.
@@ -818,8 +818,8 @@ function looksSecret(name) {
818
818
  }
819
819
  function buildChildEnv(optsOrSessionId) {
820
820
  const opts = typeof optsOrSessionId === "string" ? { sessionId: optsOrSessionId } : optsOrSessionId ?? {};
821
- const hasOwn = Object.prototype.hasOwnProperty.call(process.env, "WRONGSTACK_CHILD_ENV_PASSTHROUGH");
822
- const legacyHasOwn = Object.prototype.hasOwnProperty.call(process.env, "WRONGSTACK_BASH_ENV_PASSTHROUGH");
821
+ const hasOwn = Object.hasOwn(process.env, "WRONGSTACK_CHILD_ENV_PASSTHROUGH");
822
+ const legacyHasOwn = Object.hasOwn(process.env, "WRONGSTACK_BASH_ENV_PASSTHROUGH");
823
823
  const passthrough = hasOwn && process.env["WRONGSTACK_CHILD_ENV_PASSTHROUGH"] === "1" || legacyHasOwn && process.env["WRONGSTACK_BASH_ENV_PASSTHROUGH"] === "1";
824
824
  if (passthrough && !process.env["CI"]) {
825
825
  console.warn(
@@ -1350,7 +1350,7 @@ async function expandGlob(pattern) {
1350
1350
  } catch {
1351
1351
  return;
1352
1352
  }
1353
- const firstGlob = pat.search(/[*?[\[]/);
1353
+ const firstGlob = pat.search(/[*?[[]/);
1354
1354
  if (firstGlob < 0) {
1355
1355
  const re = globToRegex(pat);
1356
1356
  for (const e of entries) {