api-key-guard 1.1.1 → 1.1.2
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.
- package/package.json +1 -1
- package/src/keyFixer.js +2 -2
package/package.json
CHANGED
package/src/keyFixer.js
CHANGED
|
@@ -119,8 +119,8 @@ async function scanForFixableKeys(scanPath, specificFile) {
|
|
|
119
119
|
} else if (patternConfig.language === 'json') {
|
|
120
120
|
const [fullMatch, keyName, keyValue] = match;
|
|
121
121
|
envVarName = patternConfig.envVarNamer(keyName);
|
|
122
|
-
// For JSON, we
|
|
123
|
-
fixedLine = `"${keyName}": "
|
|
122
|
+
// For JSON, we suggest using a placeholder comment
|
|
123
|
+
fixedLine = `"${keyName}": "ENV_${envVarName}_PLACEHOLDER"`;
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
// Only include keys that look like real API keys
|