Skip to content

Commit

Permalink
fix(client): correctly send deno version header (#736)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot authored Mar 25, 2024
1 parent 2baa149 commit b7ea175
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,8 @@ const getPlatformProperties = (): PlatformProperties => {
'X-Stainless-OS': normalizePlatform(Deno.build.os),
'X-Stainless-Arch': normalizeArch(Deno.build.arch),
'X-Stainless-Runtime': 'deno',
'X-Stainless-Runtime-Version': Deno.version,
'X-Stainless-Runtime-Version':
typeof Deno.version === 'string' ? Deno.version : Deno.version?.deno ?? 'unknown',
};
}
if (typeof EdgeRuntime !== 'undefined') {
Expand Down

0 comments on commit b7ea175

Please sign in to comment.