We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf67c45 commit 436072cCopy full SHA for 436072c
1 file changed
src/lib/seam/connect/parse-options.ts
@@ -1,3 +1,5 @@
1
+import version from 'src/lib/version.js'
2
+
3
import { getAuthHeaders } from './auth.js'
4
import type { ClientOptions } from './client.js'
5
import {
@@ -8,6 +10,11 @@ import {
8
10
9
11
const defaultEndpoint = 'https://connect.getseam.com'
12
13
+const defaultHeaders = {
14
+ 'seam-sdk-name': 'seamapi/javascript-http',
15
+ 'seam-sdk-version': version,
16
+}
17
18
export type Options = SeamHttpOptions & { publishableKey?: string }
19
20
export const parseOptions = (
@@ -23,6 +30,7 @@ export const parseOptions = (
23
30
withCredentials: isSeamHttpOptionsWithClientSessionToken(options),
24
31
...options.axiosOptions,
25
32
headers: {
33
+ ...defaultHeaders,
26
34
...getAuthHeaders(options),
27
35
...options.axiosOptions?.headers,
28
36
},
0 commit comments