dotenv-diff 1.0.2 → 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.
@@ -4,8 +4,11 @@ export function diffEnv(current, example) {
4
4
  const missing = exampleKeys.filter((key) => !currentKeys.includes(key));
5
5
  const extra = currentKeys.filter((key) => !exampleKeys.includes(key));
6
6
  const valueMismatches = exampleKeys
7
- .filter((key) => currentKeys.includes(key))
8
- .filter((key) => current[key] !== example[key]) // her kan du evt. bruge .toLowerCase() hvis det skal være case-insensitive
7
+ .filter((key) => {
8
+ return (currentKeys.includes(key) &&
9
+ example[key].trim() !== "" &&
10
+ current[key] !== example[key]);
11
+ })
9
12
  .map((key) => ({
10
13
  key,
11
14
  expected: example[key],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dotenv-diff",
3
- "version": "1.0.2",
3
+ "version": "1.1.1",
4
4
  "type": "module",
5
5
  "description": "A small CLI and library to find differences between .env and .env.example files.",
6
6
  "bin": {