@karmaniverous/get-dotenv 2.0.1 → 2.0.3

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.
@@ -89,7 +89,9 @@ const getDotenv = async function () {
89
89
  } catch ({
90
90
  message
91
91
  }) {
92
- throw new Error(`Dynamic processing failed for variable '${key}' with message '${message}'`);
92
+ Object.assign(dotenv, {
93
+ [key]: `ERROR: ${message}`
94
+ });
93
95
  }
94
96
  });
95
97
  }
@@ -97,9 +97,7 @@ export const getDotenv = async ({
97
97
  try {
98
98
  Object.assign(dotenv, { [key]: dynamic[key](dotenv) });
99
99
  } catch ({ message }) {
100
- throw new Error(
101
- `Dynamic processing failed for variable '${key}' with message '${message}'`
102
- );
100
+ Object.assign(dotenv, { [key]: `ERROR: ${message}` });
103
101
  }
104
102
  });
105
103
  }
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "bin": {
4
4
  "getdotenv": "bin/getdotenv/index.js"
5
5
  },
6
- "version": "2.0.1",
6
+ "version": "2.0.3",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },