Skip to content

Commit

Permalink
feat added listeners
Browse files Browse the repository at this point in the history
  • Loading branch information
iamnasirudeen committed Aug 29, 2023
1 parent add16a5 commit 1544aaa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.0.0",
"version": "1.0.1",
"license": "MIT",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
Expand Down
7 changes: 2 additions & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,6 @@ class SecureLog {

assert(...args: any) {
// do whatever here with the passed parameters
this.cachedLog.log(
"Normally, this shouldn't be logged, but yeah, it is now being logged."
);
this.cachedLog.assert.apply(null, args);
}

Expand Down Expand Up @@ -179,8 +176,8 @@ class SecureLog {
checkForPotentialSecrets(modArgs, this.cachedLog);
}

const logValue = modArgs[1]?.skipValidationCheck
? [LOG_PREFIX, modArgs[0]]
const logValue = modArgs?.[1]?.skipValidationCheck
? [LOG_PREFIX, modArgs?.[0]]
: [LOG_PREFIX, ...modArgs];

this.cachedLog.error.apply(console, logValue);
Expand Down

0 comments on commit 1544aaa

Please sign in to comment.