@caido/sdk-frontend 0.43.2-beta.1 → 0.43.2-beta.3
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.
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Utilities to interact with the environment.
|
|
3
|
+
* @category Environment
|
|
4
|
+
*/
|
|
5
|
+
export type EnvironmentSDK = {
|
|
6
|
+
/**
|
|
7
|
+
* Get the value of an environment variable.
|
|
8
|
+
* @param name The name of the environment variable.
|
|
9
|
+
* @returns The value of the environment variable.
|
|
10
|
+
*/
|
|
11
|
+
getVar: (name: string) => string | undefined;
|
|
12
|
+
};
|
package/src/types/index.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ import type { HTTPHistorySDK } from "./httpHistory";
|
|
|
17
17
|
import type { FilesSDK } from "./files";
|
|
18
18
|
import type { FiltersSDK } from "./filters";
|
|
19
19
|
import type { MatchReplaceSDK } from "./matchReplace";
|
|
20
|
+
import type { EnvironmentSDK } from "./environment";
|
|
20
21
|
export type { CommandContext } from "./commands";
|
|
21
22
|
export type { MenuItem } from "./menu";
|
|
22
23
|
export type { ReplayTab, ReplaySession, ReplayCollection } from "./replay";
|
|
@@ -105,4 +106,8 @@ export type API<T extends BackendEndpoints = Record<string, never>, E extends Ba
|
|
|
105
106
|
* Utilities to interact with Match and Replace page.
|
|
106
107
|
*/
|
|
107
108
|
matchReplace: MatchReplaceSDK;
|
|
109
|
+
/**
|
|
110
|
+
* Utilities to interact with the environment.
|
|
111
|
+
*/
|
|
112
|
+
env: EnvironmentSDK;
|
|
108
113
|
};
|