Skip to content

Commit

Permalink
chore: remove (currently) unused source code
Browse files Browse the repository at this point in the history
  • Loading branch information
pviti committed Aug 16, 2024
1 parent 1d45843 commit aaf892d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions src/commercelayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import type { ErrorInterceptor, InterceptorType, RawResponseReader, RequestInter
import { CommerceLayerStatic } from './static'
import ResourceAdapter, { type ResourcesInitConfig } from './resource'
import { extractTokenData } from './util'
import type { ApiEnv } from './types'


import Debug from './debug'
Expand Down Expand Up @@ -312,8 +311,6 @@ class CommerceLayerClient {
get currentAccessToken(): string { return this.#adapter?.client?.currentAccessToken }
private get interceptors(): InterceptorManager { return this.#adapter.client.interceptors }

get environment(): ApiEnv { return extractTokenData(this.currentAccessToken) }


private localConfig(config: Partial<SdkConfig> & { organization?: string }): void {
if (config.organization) this.#slug = config.organization
Expand Down
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

export type ObjectType = Record<string, any>

export type ApiEnv = 'test' | 'live'
// export type ApiEnv = 'test' | 'live'


/*
Expand Down

0 comments on commit aaf892d

Please sign in to comment.