Skip to content

Commit

Permalink
Add RequestSdk matches
Browse files Browse the repository at this point in the history
  • Loading branch information
Sytten committed Oct 29, 2024
1 parent c451177 commit 10eba78
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/quickjs-types/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@caido/quickjs-types",
"version": "0.11.0",
"version": "0.12.0",
"description": "Typing for the QuickJS Engine",
"author": "Caido Labs Inc. <[email protected]>",
"license": "MIT",
Expand Down
8 changes: 8 additions & 0 deletions packages/quickjs-types/src/caido/requests.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,14 @@ declare module "caido:utils" {
* ```
*/
query(): RequestsQuery;
/**
* Checks if a request/response matches an HTTPQL filter.
*
* @param filter HTTPQL filter
* @param request The {@link Request} to match against
* @param response The {@link Response} to match against
*/
matches(filter: string, request: Request, response?: Response): boolean;
/**
* Get a request by its unique {@link ID}.
*
Expand Down

0 comments on commit 10eba78

Please sign in to comment.