Skip to content

Commit 2bdb6b5

Browse files
committed
Add getEnvironment to BaseClient
1 parent c250d1a commit 2bdb6b5

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

packages/sdk/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
# Changelog
44

5+
## [1.3.2] - 2025-02-3
6+
7+
### Changed
8+
9+
- Add getEnvironment function to BaseClient
10+
511
## [1.3.1] - 2025-01-30
612

713
### Changed

packages/sdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@pipedream/sdk",
33
"type": "module",
4-
"version": "1.3.1",
4+
"version": "1.3.2",
55
"description": "Pipedream SDK",
66
"main": "./dist/server.js",
77
"module": "./dist/server.js",

packages/sdk/src/shared/index.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -871,6 +871,14 @@ export abstract class BaseClient {
871871
this.workflowDomain = workflowDomain;
872872
}
873873

874+
/**
875+
* Retrieves the current environment the client is configured to use.
876+
* @returns {string} The current environment.
877+
*/
878+
public getEnvironment(): string {
879+
return this.environment;
880+
}
881+
874882
/**
875883
* Makes an HTTP request
876884
*

0 commit comments

Comments
 (0)