Skip to content

Commit

Permalink
Update r2pipe-promise with missing callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Jan 16, 2024
1 parent 3a2d226 commit f0d500d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nodejs/r2pipe-promise/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
},
"homepage": "http://www.radare.org",
"devDependencies": {
"semistandard": "^14.0.0"
"semistandard": "^17.0.0"
},
"dependencies": {
"r2pipe": "^2.8.5"
Expand Down
9 changes: 8 additions & 1 deletion nodejs/r2pipe-promise/r2pipe-promise.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,16 @@ export declare class R2Pipe {
static open(target: string, options?: string[]): R2Pipe;
cmd(command: string): Promise<string>;
cmdj(command: string): Promise<CommandResponse>;
cmdAt(command: string, addr: number): Promise<CommandResponse>;
call(command: string): Promise<string>;
callj(command: string): Promise<CommandResponse>;
callAt(command: string, addr: number): Promise<CommandResponse>;
plugin(string, string): boolean;
unload(string, string): boolean;
log(string);
quit(): Promise<void>;
}

export declare interface CommandResponse {
[key: string]: any;
}
}

0 comments on commit f0d500d

Please sign in to comment.