@caido/sdk-backend 0.45.1 → 0.45.2-beta.0

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/typing.d.ts +8 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caido/sdk-backend",
3
- "version": "0.45.1",
3
+ "version": "0.45.2-beta.0",
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.16.1",
12
+ "@caido/quickjs-types": "0.17.1",
13
13
  "@caido/sdk-shared": "^0.1.0"
14
14
  },
15
15
  "scripts": {
package/src/typing.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  declare module "caido:plugin" {
2
- import { Database } from "sqlite";
3
- import {
2
+ import type { Database } from "sqlite";
3
+ import type {
4
4
  MaybePromise,
5
5
  FindingsSDK,
6
6
  RequestsSDK,
@@ -118,6 +118,12 @@ declare module "caido:plugin" {
118
118
  * You can store data related to your plugin in this directory.
119
119
  */
120
120
  path(): string;
121
+ /**
122
+ * The directory of the plugin's assets in Caido Data.
123
+ * You can read static data from your plugin in this directory.
124
+ * You shouldn't write anything there, as the contents can be reset at any time.
125
+ */
126
+ assetsPath(): string;
121
127
  /**
122
128
  * Get a sqlite database for the plugin stored in Caido Data.
123
129
  * You can use this to store data related to your plugin.