diff --git a/packages/aws-amplify/src/index.ts b/packages/aws-amplify/src/index.ts index e172eb212f8..dddae95bbfe 100644 --- a/packages/aws-amplify/src/index.ts +++ b/packages/aws-amplify/src/index.ts @@ -13,13 +13,13 @@ import { Amplify, ServiceWorker } from '@aws-amplify/core'; import { Auth } from '@aws-amplify/auth'; -import Cache from '@aws-amplify/cache'; +import { BrowserStorageCache } from '@aws-amplify/cache'; /** Always importing Auth when users import Amplify such that for unauthenticated access (no sign in and sign up), users don't have to import Auth explicitly **/ Amplify.Auth = Auth; -Amplify.Cache = Cache; +Amplify.Cache = BrowserStorageCache; Amplify.ServiceWorker = ServiceWorker; export { @@ -42,7 +42,7 @@ export { syncExpression, } from '@aws-amplify/datastore'; export { PubSub } from '@aws-amplify/pubsub'; -export { default as Cache } from '@aws-amplify/cache'; +export { BrowserStorageCache as Cache } from '@aws-amplify/cache'; export { Interactions } from '@aws-amplify/interactions'; export * from '@aws-amplify/ui'; export { XR } from '@aws-amplify/xr';