Skip to content

Commit

Permalink
fix(cache): use named import when exporting from aws-amplify (#10305)
Browse files Browse the repository at this point in the history
  • Loading branch information
iartemiev authored and manueliglesias committed Sep 19, 2022
1 parent 59c3452 commit 019cf89
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/aws-amplify/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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';
Expand Down

0 comments on commit 019cf89

Please sign in to comment.