@karmaniverous/get-dotenv 1.1.0 → 1.1.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.
@@ -73,7 +73,7 @@ const getDotenv = async function () {
73
73
  if (error) throw new Error(error);
74
74
 
75
75
  // Process dynamic variables.
76
- if (dynamicPath) {
76
+ if (!excludePublic && dynamicPath) {
77
77
  const dynamic = new Function(`return ${(await _fsExtra.default.readFile(dynamicPath)).toString()}`)()(dotenv);
78
78
  Object.keys(dynamic).forEach(key => {
79
79
  Object.assign(dotenv, {
@@ -79,7 +79,7 @@ export const getDotenv = async ({
79
79
  if (error) throw new Error(error);
80
80
 
81
81
  // Process dynamic variables.
82
- if (dynamicPath) {
82
+ if (!excludePublic && dynamicPath) {
83
83
  const dynamic = new Function(
84
84
  `return ${(await fs.readFile(dynamicPath)).toString()}`
85
85
  )()(dotenv);
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "bin": {
4
4
  "getdotenv": "bin/getdotenv/index.js"
5
5
  },
6
- "version": "1.1.0",
6
+ "version": "1.1.1",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },