@caido/sdk-frontend 0.52.1-beta.0 → 0.52.1-beta.2
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 +1 -1
- package/src/types/index.d.ts +1 -0
- package/src/types/sdks/index.d.ts +5 -0
- package/src/types/sdks/log.d.ts +22 -0
package/package.json
CHANGED
package/src/types/index.d.ts
CHANGED
|
@@ -17,5 +17,6 @@ export type { ListenerHandle } from "./types/utils";
|
|
|
17
17
|
export type { AIProvider } from "./types/ai";
|
|
18
18
|
export type { SelectedProjectChangeEvent } from "./types/projects";
|
|
19
19
|
export type { CommandPaletteView } from "./sdks/commandPalette";
|
|
20
|
+
export type { LogSDK } from "./sdks/log";
|
|
20
21
|
export type { API } from "./sdks";
|
|
21
22
|
export { Routes } from "./types/navigation";
|
|
@@ -13,6 +13,7 @@ import type { FindingsSDK } from "./findings";
|
|
|
13
13
|
import type { FooterSDK } from "./footer";
|
|
14
14
|
import type { HTTPHistorySDK } from "./httpHistory";
|
|
15
15
|
import type { InterceptSDK } from "./intercept";
|
|
16
|
+
import type { LogSDK } from "./log";
|
|
16
17
|
import type { MatchReplaceSDK } from "./matchReplace";
|
|
17
18
|
import type { MenuSDK } from "./menu";
|
|
18
19
|
import type { NavigationSDK } from "./navigation";
|
|
@@ -149,4 +150,8 @@ export type API<T extends BackendEndpoints = Record<string, never>, E extends Ba
|
|
|
149
150
|
* Utilities to interact with the footer.
|
|
150
151
|
*/
|
|
151
152
|
footer: FooterSDK;
|
|
153
|
+
/**
|
|
154
|
+
* Utilities for logging messages to the console.
|
|
155
|
+
*/
|
|
156
|
+
log: LogSDK;
|
|
152
157
|
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Utilities to log messages to the console.
|
|
3
|
+
* @category Log
|
|
4
|
+
*/
|
|
5
|
+
export type LogSDK = {
|
|
6
|
+
/**
|
|
7
|
+
* Log info message with variable arguments
|
|
8
|
+
*/
|
|
9
|
+
info: (...data: unknown[]) => void;
|
|
10
|
+
/**
|
|
11
|
+
* Log warning message with variable arguments
|
|
12
|
+
*/
|
|
13
|
+
warn: (...data: unknown[]) => void;
|
|
14
|
+
/**
|
|
15
|
+
* Log debug message with variable arguments
|
|
16
|
+
*/
|
|
17
|
+
debug: (...data: unknown[]) => void;
|
|
18
|
+
/**
|
|
19
|
+
* Log error message with variable arguments
|
|
20
|
+
*/
|
|
21
|
+
error: (...data: unknown[]) => void;
|
|
22
|
+
};
|