diff --git a/src/commercelayer.ts b/src/commercelayer.ts index de8d2b41..26d09676 100644 --- a/src/commercelayer.ts +++ b/src/commercelayer.ts @@ -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' @@ -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 & { organization?: string }): void { if (config.organization) this.#slug = config.organization diff --git a/src/types.ts b/src/types.ts index 74aba9d5..27fb0269 100644 --- a/src/types.ts +++ b/src/types.ts @@ -1,7 +1,7 @@ export type ObjectType = Record -export type ApiEnv = 'test' | 'live' +// export type ApiEnv = 'test' | 'live' /*