Skip to content

Commit

Permalink
Missing .d.ts newTaintedObject method declaration (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
iunanua authored Jan 18, 2024
1 parent cad10e4 commit 49b651c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ declare module 'datadog-iast-taint-tracking' {
export interface TaintedUtils {
createTransaction(transactionId: string): string;
newTaintedString(transactionId: string, original: string, paramName: string, type: string): string;
newTaintedObject(transactionId: string, original: any, paramName: string, type: string): any;
addSecureMarksToTaintedString(transactionId: string, taintedString: string, secureMarks: number): string;
isTainted(transactionId: string, ...args: string[]): boolean;
getMetrics(transactionId: string, telemetryVerbosity: number): Metrics;
Expand Down
2 changes: 1 addition & 1 deletion src/api/taint_methods.cc
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ void NewTaintedObject(const FunctionCallbackInfo<Value>& args) {
return;
}

if ((args[1]->IsString())) {
if (args[1]->IsString()) {
args.GetReturnValue().Set(args[1]);
return;
}
Expand Down

0 comments on commit 49b651c

Please sign in to comment.