From 035a2091bb396eb0fd271470d96bb62a8d0f99fd Mon Sep 17 00:00:00 2001 From: Shuo Wu Date: Thu, 13 Jan 2022 12:57:18 -0500 Subject: [PATCH] use emitter type from tiny-emitter --- lib/TokenManager.ts | 3 ++- lib/types/index.ts | 1 - tsconfig.json | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/TokenManager.ts b/lib/TokenManager.ts index cfd1c239cd..c9d517d3e5 100644 --- a/lib/TokenManager.ts +++ b/lib/TokenManager.ts @@ -10,6 +10,8 @@ * See the License for the specific language governing permissions and limitations under the License. * */ + +import EventEmitter from 'tiny-emitter'; import { removeNils, clone } from './util'; import { AuthSdkError } from './errors'; import { isRefreshTokenError, validateToken } from './oidc/util'; @@ -17,7 +19,6 @@ import { isLocalhost, isIE11OrLess } from './features'; import { TOKEN_STORAGE_NAME } from './constants'; import SdkClock from './clock'; import { - EventEmitter, Token, Tokens, TokenType, diff --git a/lib/types/index.ts b/lib/types/index.ts index a008c49f3c..e5d1f75be3 100644 --- a/lib/types/index.ts +++ b/lib/types/index.ts @@ -12,7 +12,6 @@ export * from './api'; export * from './AuthState'; -export * from './EventEmitter'; export * from './Transaction'; export * from './Cookies'; export * from './http'; diff --git a/tsconfig.json b/tsconfig.json index 0f158bac14..ad2c348810 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -17,6 +17,7 @@ "outDir": "./build", "resolveJsonModule": true, "esModuleInterop": true, + "allowSyntheticDefaultImports": true, "skipLibCheck": true, "rootDir": "./", "baseUrl": "./"