Skip to content

Commit

Permalink
Remove Legacy
Browse files Browse the repository at this point in the history
  • Loading branch information
razor-x committed Sep 28, 2023
1 parent b0d0c84 commit fd8583a
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/lib/seam/connect/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import {
type SeamHttpOptionsWithClient,
type SeamHttpOptionsWithClientSessionToken,
} from './client-options.js'
import { SeamHttpLegacyWorkspaces } from './legacy/workspaces.js'
import { parseOptions } from './parse-options.js'
import {
SeamHttpAccessCodes,
Expand All @@ -32,11 +31,11 @@ import {
export class SeamHttp {
client: Axios

#legacy: boolean
// #legacy: boolean

constructor(apiKeyOrOptions: string | SeamHttpOptions) {
const options = parseOptions(apiKeyOrOptions)
this.#legacy = options.enableLegacyMethodBehaivor
// this.#legacy = options.enableLegacyMethodBehaivor
this.client = createAxiosClient(options)
}

Expand Down Expand Up @@ -125,9 +124,6 @@ export class SeamHttp {
}

get workspaces(): SeamHttpWorkspaces {
if (this.#legacy) {
return SeamHttpLegacyWorkspaces.fromClient(this.client)
}
return SeamHttpWorkspaces.fromClient(this.client)
}
}
Expand Down

0 comments on commit fd8583a

Please sign in to comment.