elseware-nodejs 1.11.2 → 1.11.4

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.cjs CHANGED
@@ -143,7 +143,7 @@ function loadEnv(options) {
143
143
  function handleValidationError(error) {
144
144
  logger.error("Environment validation failed");
145
145
  const grouped = {};
146
- error.issues.forEach((issue) => {
146
+ for (const issue of error.issues) {
147
147
  const key = issue.path.join(".") || "unknown";
148
148
  const rawValue = key !== "unknown" ? process.env[key] : void 0;
149
149
  const safeValue = key.toLowerCase().includes("secret") ? "***" : rawValue;
@@ -154,7 +154,7 @@ function handleValidationError(error) {
154
154
  ].filter(Boolean).join(" | ");
155
155
  grouped[key] ??= [];
156
156
  grouped[key].push(message);
157
- });
157
+ }
158
158
  Object.entries(grouped).forEach(([key, messages]) => {
159
159
  logger.error(`ENV: ${key}`);
160
160
  messages.forEach((message) => logger.error(` - ${message}`));