Skip to content

Commit

Permalink
Merge pull request #35 from Onboardbase/secret-scan
Browse files Browse the repository at this point in the history
feat: updates
  • Loading branch information
dantelex authored Nov 25, 2024
2 parents 80235d5 + 279986b commit 37158cb
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 944 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "3.1.2",
"version": "3.1.3",
"license": "MIT",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
Expand Down Expand Up @@ -83,6 +83,6 @@
"consola": "^3.2.3",
"mask-sensitive-data": "^0.11.5",
"node": "^18.20.2",
"securelog-scan": "^3.0.7"
"securelog-scan": "^3.0.13"
}
}
11 changes: 9 additions & 2 deletions src/scanString.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
import { processPossibleSecretsInString } from 'securelog-scan/dist/fileScanner';

export const scanSecretsInString = async (rawValue: string) => {
return await processPossibleSecretsInString({ rawValue });
export const scanSecretsInString = async (
rawValue: string,
options?: { maskedValue?: string; visibleChars?: number }
) => {
return await processPossibleSecretsInString({
rawValue,
maskedValue: options.maskedValue,
visibleChars: options.visibleChars,
});
};
Loading

0 comments on commit 37158cb

Please sign in to comment.