@caido/sdk-backend 0.44.1 → 0.44.2-beta.1
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 +11 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@caido/sdk-backend",
|
|
3
|
-
"version": "0.44.1",
|
|
3
|
+
"version": "0.44.2-beta.1",
|
|
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": "
|
|
12
|
+
"@caido/quickjs-types": "0.15.0",
|
|
13
13
|
"@caido/sdk-shared": "^0.1.0"
|
|
14
14
|
},
|
|
15
15
|
"scripts": {
|
package/src/typing.d.ts
CHANGED
|
@@ -123,6 +123,17 @@ declare module "caido:plugin" {
|
|
|
123
123
|
* You can use this to store data related to your plugin.
|
|
124
124
|
*/
|
|
125
125
|
db(): Promise<Database>;
|
|
126
|
+
/**
|
|
127
|
+
* Get the version of the plugin.
|
|
128
|
+
* This uses the semver format.
|
|
129
|
+
*/
|
|
130
|
+
version(): string;
|
|
131
|
+
/**
|
|
132
|
+
* Check if an update is available for the plugin.
|
|
133
|
+
*
|
|
134
|
+
* @throws If Caido Cloud is offline.
|
|
135
|
+
*/
|
|
136
|
+
updateAvailable(): Promise<boolean>;
|
|
126
137
|
};
|
|
127
138
|
|
|
128
139
|
/**
|