@caido/sdk-backend 0.40.1-beta.7 → 0.40.1-beta.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/src/typing.d.ts +6 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@caido/sdk-backend",
|
|
3
|
-
"version": "0.40.1-beta.
|
|
3
|
+
"version": "0.40.1-beta.9",
|
|
4
4
|
"description": "Typing for the Caido Backend SDK",
|
|
5
5
|
"author": "Caido Labs Inc. <dev@caido.io>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"src/*"
|
|
10
10
|
],
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@caido/quickjs-types": "0.
|
|
12
|
+
"@caido/quickjs-types": "0.7.0",
|
|
13
13
|
"@caido/sdk-shared": "0.1.0"
|
|
14
14
|
}
|
|
15
15
|
}
|
package/src/typing.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
declare module "caido:plugin" {
|
|
2
|
+
import { Database } from "sqlite";
|
|
2
3
|
import {
|
|
3
4
|
MaybePromise,
|
|
4
5
|
FindingsSDK,
|
|
@@ -79,6 +80,11 @@ declare module "caido:plugin" {
|
|
|
79
80
|
* You can store data related to your plugin in this directory.
|
|
80
81
|
*/
|
|
81
82
|
path(): string;
|
|
83
|
+
/**
|
|
84
|
+
* Get a sqlite database for the plugin stored in Caido Data.
|
|
85
|
+
* You can use this to store data related to your plugin.
|
|
86
|
+
*/
|
|
87
|
+
db(): Promise<Database>;
|
|
82
88
|
};
|
|
83
89
|
|
|
84
90
|
/**
|