@preship/secrets 1.0.3 → 1.0.4

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -607,6 +607,9 @@ function walkDirectory(rootPath, relativePath, files, allowPaths, scanPaths) {
607
607
  if (entry.name.endsWith(".min.js") || entry.name.endsWith(".min.css")) {
608
608
  continue;
609
609
  }
610
+ if (entry.name === ".env" || entry.name.startsWith(".env.")) {
611
+ continue;
612
+ }
610
613
  try {
611
614
  const stats = fs.statSync(path.join(rootPath, entryRelative));
612
615
  if (stats.size > MAX_FILE_SIZE) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@preship/secrets",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Secrets detection for PreShip — find leaked API keys, tokens, and credentials before shipping",
5
5
  "author": "Cyfox Inc.",
6
6
  "license": "Apache-2.0",