Skip to content

Commit

Permalink
0.44.2-beta.11
Browse files Browse the repository at this point in the history
  • Loading branch information
caidobot committed Jan 8, 2025
1 parent 9d6f05f commit 5074a54
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/sdk-frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@caido/sdk-frontend",
"version": "0.44.2-beta.10",
"version": "0.44.2-beta.11",
"description": "Typing for the Caido Frontend SDK",
"author": "Caido Labs Inc. <[email protected]>",
"license": "MIT",
Expand Down
19 changes: 19 additions & 0 deletions packages/sdk-frontend/src/types/environment.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,23 @@ export type EnvironmentSDK = {
* @returns The value of the environment variable.
*/
getVar: (name: string) => string | undefined;
/**
* Get all environment variables available in the global environment and the selected environment.
* @returns All environment variables.
*/
getVars: () => EnvironmentVariable[];
};
export type EnvironmentVariable = {
/**
* The name of the environment variable.
*/
name: string;
/**
* The value of the environment variable.
*/
value: string;
/**
* Whether the environment variable is a secret.
*/
isSecret: boolean;
};
1 change: 1 addition & 0 deletions packages/sdk-frontend/src/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export type { Filter } from "./filters";
export type { HTTPQL, ID } from "./utils";
export type { MatchReplaceRule, MatchReplaceCollection, MatchReplaceStrategy, } from "./matchReplace";
export type { Scope } from "./scopes";
export type { EnvironmentVariable } from "./environment";
/**
* Utilities for frontend plugins.
* @category SDK
Expand Down

0 comments on commit 5074a54

Please sign in to comment.