Skip to content

Commit ce002d9

Browse files
committed
Do not hard-code version
1 parent 4490186 commit ce002d9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Client.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import { DeployedTriggers } from "./api/resources/deployedTriggers/client/Client
1818
import { Projects } from "./api/resources/projects/client/Client.js";
1919
import { Proxy } from "./api/resources/proxy/client/Client.js";
2020
import { Tokens } from "./api/resources/tokens/client/Client.js";
21+
import { SDK_VERSION } from "version.js";
2122

2223
export declare namespace PipedreamClient {
2324
export interface Options {
@@ -74,8 +75,8 @@ export class PipedreamClient {
7475
"x-pd-environment": _options?.projectEnvironment,
7576
"X-Fern-Language": "JavaScript",
7677
"X-Fern-SDK-Name": "@pipedream/sdk",
77-
"X-Fern-SDK-Version": "2.0.0",
78-
"User-Agent": "@pipedream/sdk/2.0.0",
78+
"X-Fern-SDK-Version": SDK_VERSION,
79+
"User-Agent": `@pipedream/sdk/${SDK_VERSION}`,
7980
"X-Fern-Runtime": core.RUNTIME.type,
8081
"X-Fern-Runtime-Version": core.RUNTIME.version,
8182
},

0 commit comments

Comments
 (0)