From ecba1ece65af5f2918ea2b08b876a104b07ac4b0 Mon Sep 17 00:00:00 2001 From: israx <70438514+israx@users.noreply.github.com> Date: Thu, 2 Nov 2023 10:42:23 -0400 Subject: [PATCH] chore(amplify-js/utils): expose storage helpers (#12493) * chore: expose storage helpers * fix test --- packages/aws-amplify/__tests__/exports.test.ts | 4 ++++ packages/aws-amplify/src/utils/index.ts | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/packages/aws-amplify/__tests__/exports.test.ts b/packages/aws-amplify/__tests__/exports.test.ts index 69ee2dee24b..3fd3015112b 100644 --- a/packages/aws-amplify/__tests__/exports.test.ts +++ b/packages/aws-amplify/__tests__/exports.test.ts @@ -41,6 +41,10 @@ describe('aws-amplify Exports', () => { "Cache", "ConsoleLogger", "ServiceWorker", + "CookieStorage", + "defaultStorage", + "sessionStorage", + "sharedInMemoryStorage", ] `); }); diff --git a/packages/aws-amplify/src/utils/index.ts b/packages/aws-amplify/src/utils/index.ts index c32d42a964f..7ea4a20be8b 100644 --- a/packages/aws-amplify/src/utils/index.ts +++ b/packages/aws-amplify/src/utils/index.ts @@ -10,4 +10,9 @@ export { Cache, ConsoleLogger, ServiceWorker, + CookieStorage, + defaultStorage, + sessionStorage, + sharedInMemoryStorage, + KeyValueStorageInterface, } from '@aws-amplify/core';