@caido/sdk-backend 0.40.1-beta.5 → 0.40.1-beta.6

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 +15 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caido/sdk-backend",
3
- "version": "0.40.1-beta.5",
3
+ "version": "0.40.1-beta.6",
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.4.0",
12
+ "@caido/quickjs-types": "0.5.0",
13
13
  "@caido/sdk-shared": "0.1.0"
14
14
  }
15
15
  }
package/src/typing.d.ts CHANGED
@@ -70,6 +70,17 @@ declare module "caido:plugin" {
70
70
  ): void;
71
71
  };
72
72
 
73
+ /**
74
+ * The SDK for metadata information about the plugin.
75
+ */
76
+ export type MetaSDK = {
77
+ /**
78
+ * The directory of the plugin in Caido Data.
79
+ * You can store data related to your plugin in this directory.
80
+ */
81
+ path(): string;
82
+ };
83
+
73
84
  /**
74
85
  * The SDK object available to all scripts.
75
86
  */
@@ -96,5 +107,9 @@ declare module "caido:plugin" {
96
107
  * The SDK for the Events service.
97
108
  */
98
109
  events: EventsSDK<API, Events>;
110
+ /**
111
+ * The SDK for metadata information about the plugin.
112
+ */
113
+ meta: MetaSDK;
99
114
  }
100
115
  }