File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 1+ import version from 'src/lib/version.js'
2+
13import { getAuthHeaders } from './auth.js'
24import type { ClientOptions } from './client.js'
35import {
@@ -8,6 +10,11 @@ import {
810
911const defaultEndpoint = 'https://connect.getseam.com'
1012
13+ const defaultHeaders = {
14+ 'seam-sdk-name' : 'seamapi/javascript-http' ,
15+ 'seam-sdk-version' : version ,
16+ }
17+
1118export type Options = SeamHttpOptions & { publishableKey ?: string }
1219
1320export const parseOptions = (
@@ -23,6 +30,7 @@ export const parseOptions = (
2330 withCredentials : isSeamHttpOptionsWithClientSessionToken ( options ) ,
2431 ...options . axiosOptions ,
2532 headers : {
33+ ...defaultHeaders ,
2634 ...getAuthHeaders ( options ) ,
2735 ...options . axiosOptions ?. headers ,
2836 } ,
You can’t perform that action at this time.
0 commit comments