compare-env-keys
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -44,4 +44,12 @@ "use strict"; | ||
const diff = (0, arr_diff_1.default)(mainEnvKeys, otherEnvKeys); | ||
const reverseDiff = (0, arr_diff_1.default)(otherEnvKeys, mainEnvKeys); | ||
if (diff.length === 0) { | ||
utils.pass(`Pass`); | ||
if (reverseDiff.length === 0) { | ||
utils.pass(`Pass`); | ||
} | ||
else { | ||
utils.pass(`Pass. But FYI found in ${utils.stringify(otherEnvPath)} these extra keys ${reverseDiff | ||
.map((key) => utils.stringify(key)) | ||
.join(", ")}`); | ||
} | ||
} | ||
@@ -48,0 +56,0 @@ else { |
{ | ||
"name": "compare-env-keys", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "license": "MITH", |
6559
71