poe-code 10.0.0 → 10.0.1
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/dist/index.js +3 -3
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
- package/packages/safejs/dist/chunks/{chunk-SDKCGJW4.js → chunk-HNGGGIMP.js} +3 -3
- package/packages/safejs/dist/chunks/{chunk-SDKCGJW4.js.map → chunk-HNGGGIMP.js.map} +2 -2
- package/packages/safejs/dist/cli.js +1 -1
- package/packages/safejs/dist/index.js +1 -1
- package/packages/safejs/dist/modules/env.js +2 -2
package/package.json
CHANGED
|
@@ -2622,12 +2622,12 @@ var EnvAccessError = class extends Error {
|
|
|
2622
2622
|
function makeEnvModule(input) {
|
|
2623
2623
|
const options = normalizeEnvOptions(Array.isArray(input) ? { allow: input } : input);
|
|
2624
2624
|
const allowedNames = new Set(options.allow);
|
|
2625
|
-
const values = options.values
|
|
2625
|
+
const values = options.values;
|
|
2626
2626
|
return {
|
|
2627
2627
|
get(name) {
|
|
2628
2628
|
const variable = readEnvName(name, "Environment variable name");
|
|
2629
2629
|
if (!allowedNames.has(variable)) throw new EnvAccessError(variable);
|
|
2630
|
-
return readEnvValue(values, variable);
|
|
2630
|
+
return readEnvValue(values ?? process.env, variable);
|
|
2631
2631
|
}
|
|
2632
2632
|
};
|
|
2633
2633
|
}
|
|
@@ -7886,4 +7886,4 @@ export {
|
|
|
7886
7886
|
parseMcpConfig,
|
|
7887
7887
|
makeMcpModule
|
|
7888
7888
|
};
|
|
7889
|
-
//# sourceMappingURL=chunk-
|
|
7889
|
+
//# sourceMappingURL=chunk-HNGGGIMP.js.map
|