Skip to content

Commit

Permalink
Add db api in meta
Browse files Browse the repository at this point in the history
  • Loading branch information
Sytten committed Sep 11, 2024
1 parent 5af7e08 commit 8ba0da5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/sdk-backend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@caido/sdk-backend",
"version": "0.40.1-beta.8",
"version": "0.40.1-beta.9",
"description": "Typing for the Caido Backend SDK",
"author": "Caido Labs Inc. <[email protected]>",
"license": "MIT",
Expand Down
6 changes: 6 additions & 0 deletions packages/sdk-backend/src/typing.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
declare module "caido:plugin" {
import { Database } from "sqlite";
import {
MaybePromise,
FindingsSDK,
Expand Down Expand Up @@ -79,6 +80,11 @@ declare module "caido:plugin" {
* You can store data related to your plugin in this directory.
*/
path(): string;
/**
* Get a sqlite database for the plugin stored in Caido Data.
* You can use this to store data related to your plugin.
*/
db(): Promise<Database>;
};

/**
Expand Down

0 comments on commit 8ba0da5

Please sign in to comment.