@poe-platform/safe-bash 0.1.42 → 0.1.43

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.
@@ -4,15 +4,9 @@ export function warnIfHostProcessEnv(env) {
4
4
  return;
5
5
  if (warned.has(env))
6
6
  return;
7
- if (env !== process.env && !isShallowCopyOfProcessEnv(env))
7
+ if (env !== process.env)
8
8
  return;
9
9
  warned.add(env);
10
- console.warn("[safe-bash] warning: the shell `env` is the host `process.env` (or a shallow copy of it). Scripts executed in this shell can read every value in it, including secrets; on Cloudflare Workers with nodejs_compat, process.env contains the Worker's secret bindings. Pass only the variables your scripts need. See docs/issues/safe-bash-cloudflare-security-audit.md (finding 1).");
11
- }
12
- function isShallowCopyOfProcessEnv(env) {
13
- const keys = Object.keys(env);
14
- if (keys.length !== Object.keys(process.env).length)
15
- return false;
16
- return keys.every((key) => env[key] === process.env[key]);
10
+ console.warn("[safe-bash] warning: the shell `env` is the host `process.env`. Scripts executed in this shell can read every value in it, including secrets; on Cloudflare Workers with nodejs_compat, process.env contains the Worker's secret bindings. Pass only the variables your scripts need. See docs/issues/safe-bash-cloudflare-security-audit.md (finding 1).");
17
11
  }
18
12
  //# sourceMappingURL=env-warning.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"env-warning.js","sourceRoot":"","sources":["../../src/shell/env-warning.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,GAAG,IAAI,OAAO,EAAU,CAAC;AAErC,MAAM,UAAU,oBAAoB,CAAC,GAAiD;IACpF,IAAI,CAAC,GAAG,IAAI,OAAO,OAAO,KAAK,WAAW,IAAI,CAAC,OAAO,CAAC,GAAG;QAAE,OAAO;IACnE,IAAI,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC;QAAE,OAAO;IAC5B,IAAI,GAAG,KAAK,OAAO,CAAC,GAAG,IAAI,CAAC,yBAAyB,CAAC,GAAG,CAAC;QAAE,OAAO;IACnE,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAChB,OAAO,CAAC,IAAI,CAAC,qXAAqX,CAAC,CAAC;AACtY,CAAC;AAED,SAAS,yBAAyB,CAAC,GAAqC;IACtE,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC9B,IAAI,IAAI,CAAC,MAAM,KAAK,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM;QAAE,OAAO,KAAK,CAAC;IAClE,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;AAC5D,CAAC"}
1
+ {"version":3,"file":"env-warning.js","sourceRoot":"","sources":["../../src/shell/env-warning.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,GAAG,IAAI,OAAO,EAAU,CAAC;AAErC,MAAM,UAAU,oBAAoB,CAAC,GAAiD;IACpF,IAAI,CAAC,GAAG,IAAI,OAAO,OAAO,KAAK,WAAW,IAAI,CAAC,OAAO,CAAC,GAAG;QAAE,OAAO;IACnE,IAAI,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC;QAAE,OAAO;IAC5B,IAAI,GAAG,KAAK,OAAO,CAAC,GAAG;QAAE,OAAO;IAChC,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAChB,OAAO,CAAC,IAAI,CAAC,2VAA2V,CAAC,CAAC;AAC5W,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@poe-platform/safe-bash",
3
- "version": "0.1.42",
3
+ "version": "0.1.43",
4
4
  "description": "Extensible virtual shell with pluggable filesystems and streaming commands",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -137,7 +137,7 @@
137
137
  "access": "public"
138
138
  },
139
139
  "dependencies": {
140
- "@poe-platform/safe-fs": "0.1.42",
140
+ "@poe-platform/safe-fs": "0.1.43",
141
141
  "@types/node": "^25.2.2"
142
142
  }
143
143
  }