@karmaniverous/get-dotenv 2.6.4 → 2.6.6

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.
@@ -44,7 +44,7 @@ const _resolveEscapeSequences = value => {
44
44
  return value.replace(/\\\$/g, '$');
45
45
  };
46
46
  const dotenvExpand = value => {
47
- if (!value) return;
47
+ if (!value || value === 'undefined') return;
48
48
  const result = _resolveEscapeSequences(_interpolate(value));
49
49
  return result.length ? result : undefined;
50
50
  };
@@ -46,7 +46,7 @@ const _resolveEscapeSequences = (value) => {
46
46
  };
47
47
 
48
48
  export const dotenvExpand = (value) => {
49
- if (!value) return;
49
+ if (!value || value === 'undefined') return;
50
50
  const result = _resolveEscapeSequences(_interpolate(value));
51
51
  return result.length ? result : undefined;
52
52
  };
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "bin": {
4
4
  "getdotenv": "bin/getdotenv/index.js"
5
5
  },
6
- "version": "2.6.4",
6
+ "version": "2.6.6",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },