Skip to content

Commit b7ea175

Browse files
fix(client): correctly send deno version header (#736)
1 parent 2baa149 commit b7ea175

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/core.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,8 @@ const getPlatformProperties = (): PlatformProperties => {
818818
'X-Stainless-OS': normalizePlatform(Deno.build.os),
819819
'X-Stainless-Arch': normalizeArch(Deno.build.arch),
820820
'X-Stainless-Runtime': 'deno',
821-
'X-Stainless-Runtime-Version': Deno.version,
821+
'X-Stainless-Runtime-Version':
822+
typeof Deno.version === 'string' ? Deno.version : Deno.version?.deno ?? 'unknown',
822823
};
823824
}
824825
if (typeof EdgeRuntime !== 'undefined') {

0 commit comments

Comments
 (0)