@aws-amplify/core 6.0.29-gen2-storage.3cca682.0 → 6.0.29-unstable.6d4366e.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/dist/cjs/Platform/version.js +1 -1
  2. package/dist/cjs/Platform/version.js.map +1 -1
  3. package/dist/cjs/libraryUtils.js +2 -7
  4. package/dist/cjs/libraryUtils.js.map +1 -1
  5. package/dist/cjs/singleton/Amplify.js +8 -2
  6. package/dist/cjs/singleton/Amplify.js.map +1 -1
  7. package/dist/esm/Platform/version.d.ts +1 -1
  8. package/dist/esm/Platform/version.mjs +1 -1
  9. package/dist/esm/Platform/version.mjs.map +1 -1
  10. package/dist/esm/libraryUtils.d.ts +0 -3
  11. package/dist/esm/libraryUtils.mjs +0 -2
  12. package/dist/esm/libraryUtils.mjs.map +1 -1
  13. package/dist/esm/singleton/API/types.d.ts +3 -2
  14. package/dist/esm/singleton/Amplify.d.ts +2 -2
  15. package/dist/esm/singleton/Amplify.mjs +9 -15
  16. package/dist/esm/singleton/Amplify.mjs.map +1 -1
  17. package/dist/esm/singleton/Auth/types.d.ts +1 -2
  18. package/dist/esm/singleton/Storage/types.d.ts +0 -10
  19. package/dist/esm/singleton/types.d.ts +0 -1
  20. package/package.json +3 -3
  21. package/src/Platform/version.ts +1 -1
  22. package/src/libraryUtils.ts +0 -4
  23. package/src/singleton/API/types.ts +2 -2
  24. package/src/singleton/Amplify.ts +9 -4
  25. package/src/singleton/Auth/types.ts +1 -3
  26. package/src/singleton/Storage/types.ts +0 -10
  27. package/src/singleton/types.ts +0 -2
  28. package/dist/cjs/parseAmplifyOutputs.js +0 -215
  29. package/dist/cjs/parseAmplifyOutputs.js.map +0 -1
  30. package/dist/cjs/singleton/AmplifyOutputs/types.js +0 -6
  31. package/dist/cjs/singleton/AmplifyOutputs/types.js.map +0 -1
  32. package/dist/cjs/utils/parseAmplifyConfig.js +0 -27
  33. package/dist/cjs/utils/parseAmplifyConfig.js.map +0 -1
  34. package/dist/esm/parseAmplifyOutputs.d.ts +0 -5
  35. package/dist/esm/parseAmplifyOutputs.mjs +0 -210
  36. package/dist/esm/parseAmplifyOutputs.mjs.map +0 -1
  37. package/dist/esm/singleton/AmplifyOutputs/types.d.ts +0 -80
  38. package/dist/esm/singleton/AmplifyOutputs/types.mjs +0 -2
  39. package/dist/esm/singleton/AmplifyOutputs/types.mjs.map +0 -1
  40. package/dist/esm/utils/parseAmplifyConfig.d.ts +0 -10
  41. package/dist/esm/utils/parseAmplifyConfig.mjs +0 -25
  42. package/dist/esm/utils/parseAmplifyConfig.mjs.map +0 -1
  43. package/src/parseAmplifyOutputs.ts +0 -333
  44. package/src/singleton/AmplifyOutputs/types.ts +0 -99
  45. package/src/utils/parseAmplifyConfig.ts +0 -26
@@ -3,5 +3,5 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.version = void 0;
5
5
  // generated by genversion
6
- exports.version = '6.0.30-gen2-storage.3cca682.0+3cca682';
6
+ exports.version = '6.0.31-unstable.6d4366e.0+6d4366e';
7
7
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sources":["../../../src/Platform/version.ts"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.version = void 0;\n// generated by genversion\nexports.version = '6.0.30-gen2-storage.3cca682.0+3cca682';\n"],"names":[],"mappings":";;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,OAAO,GAAG,KAAK,CAAC,CAAC;AACzB;AACA,OAAO,CAAC,OAAO,GAAG,uCAAuC;;"}
1
+ {"version":3,"file":"version.js","sources":["../../../src/Platform/version.ts"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.version = void 0;\n// generated by genversion\nexports.version = '6.0.31-unstable.6d4366e.0+6d4366e';\n"],"names":[],"mappings":";;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,OAAO,GAAG,KAAK,CAAC,CAAC;AACzB;AACA,OAAO,CAAC,OAAO,GAAG,mCAAmC;;"}
@@ -3,8 +3,8 @@
3
3
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
4
  // SPDX-License-Identifier: Apache-2.0
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.BackgroundProcessManager = exports.AmplifyErrorCode = exports.ApiError = exports.createAssertionFunction = exports.PlatformNotSupportedError = exports.AmplifyError = exports.setCustomUserAgent = exports.StorageAction = exports.PushNotificationAction = exports.PubSubAction = exports.PredictionsAction = exports.InAppMessagingAction = exports.InteractionsAction = exports.GeoAction = exports.Framework = exports.DataStoreAction = exports.Category = exports.AnalyticsAction = exports.AuthAction = exports.ApiAction = exports.getAmplifyUserAgent = exports.getAmplifyUserAgentObject = exports.Platform = exports.haveCredentialsChanged = exports.Signer = exports.isTokenExpired = exports.assertOAuthConfig = exports.assertIdentityPoolIdConfig = exports.assertTokenProviderConfig = exports.decodeJWT = exports.getClientInfo = exports.parseAmplifyConfig = exports.AmplifyUrlSearchParams = exports.AmplifyUrl = exports.amplifyUuid = exports.ADD_OAUTH_LISTENER = exports.parseAmplifyOutputs = exports.isAmplifyOutputs = exports.parseAWSExports = exports.deDupeAsyncFunction = exports.urlSafeEncode = exports.urlSafeDecode = exports.retry = exports.NonRetryableError = exports.jitteredExponentialRetry = exports.jitteredBackoff = exports.isWebWorker = exports.isNonRetryableError = exports.isBrowser = exports.generateRandomString = void 0;
7
- exports.SESSION_STOP_EVENT = exports.SESSION_START_EVENT = exports.sessionListener = exports.HubInternal = exports.WordArray = exports.cryptoSecureRandomInt = exports.getCrypto = exports.base64Encoder = exports.base64Decoder = exports.AMPLIFY_SYMBOL = exports.fetchAuthSession = exports.USER_AGENT_HEADER = exports.Reachability = exports.Mutex = void 0;
6
+ exports.USER_AGENT_HEADER = exports.Reachability = exports.Mutex = exports.BackgroundProcessManager = exports.AmplifyErrorCode = exports.ApiError = exports.createAssertionFunction = exports.PlatformNotSupportedError = exports.AmplifyError = exports.setCustomUserAgent = exports.StorageAction = exports.PushNotificationAction = exports.PubSubAction = exports.PredictionsAction = exports.InAppMessagingAction = exports.InteractionsAction = exports.GeoAction = exports.Framework = exports.DataStoreAction = exports.Category = exports.AnalyticsAction = exports.AuthAction = exports.ApiAction = exports.getAmplifyUserAgent = exports.getAmplifyUserAgentObject = exports.Platform = exports.haveCredentialsChanged = exports.Signer = exports.isTokenExpired = exports.assertOAuthConfig = exports.assertIdentityPoolIdConfig = exports.assertTokenProviderConfig = exports.decodeJWT = exports.getClientInfo = exports.AmplifyUrlSearchParams = exports.AmplifyUrl = exports.amplifyUuid = exports.ADD_OAUTH_LISTENER = exports.parseAWSExports = exports.deDupeAsyncFunction = exports.urlSafeEncode = exports.urlSafeDecode = exports.retry = exports.NonRetryableError = exports.jitteredExponentialRetry = exports.jitteredBackoff = exports.isWebWorker = exports.isNonRetryableError = exports.isBrowser = exports.generateRandomString = void 0;
7
+ exports.SESSION_STOP_EVENT = exports.SESSION_START_EVENT = exports.sessionListener = exports.HubInternal = exports.WordArray = exports.cryptoSecureRandomInt = exports.getCrypto = exports.base64Encoder = exports.base64Decoder = exports.AMPLIFY_SYMBOL = exports.fetchAuthSession = void 0;
8
8
  /*
9
9
  This file maps top-level exports from `@aws-amplify/core/internals/utils`. These are intended to be internal
10
10
  utils for use throughout the library.
@@ -24,9 +24,6 @@ Object.defineProperty(exports, "urlSafeEncode", { enumerable: true, get: functio
24
24
  Object.defineProperty(exports, "deDupeAsyncFunction", { enumerable: true, get: function () { return utils_1.deDupeAsyncFunction; } });
25
25
  var parseAWSExports_1 = require("./parseAWSExports");
26
26
  Object.defineProperty(exports, "parseAWSExports", { enumerable: true, get: function () { return parseAWSExports_1.parseAWSExports; } });
27
- var parseAmplifyOutputs_1 = require("./parseAmplifyOutputs");
28
- Object.defineProperty(exports, "isAmplifyOutputs", { enumerable: true, get: function () { return parseAmplifyOutputs_1.isAmplifyOutputs; } });
29
- Object.defineProperty(exports, "parseAmplifyOutputs", { enumerable: true, get: function () { return parseAmplifyOutputs_1.parseAmplifyOutputs; } });
30
27
  var constants_1 = require("./singleton/constants");
31
28
  Object.defineProperty(exports, "ADD_OAUTH_LISTENER", { enumerable: true, get: function () { return constants_1.ADD_OAUTH_LISTENER; } });
32
29
  var amplifyUuid_1 = require("./utils/amplifyUuid");
@@ -34,8 +31,6 @@ Object.defineProperty(exports, "amplifyUuid", { enumerable: true, get: function
34
31
  var amplifyUrl_1 = require("./utils/amplifyUrl");
35
32
  Object.defineProperty(exports, "AmplifyUrl", { enumerable: true, get: function () { return amplifyUrl_1.AmplifyUrl; } });
36
33
  Object.defineProperty(exports, "AmplifyUrlSearchParams", { enumerable: true, get: function () { return amplifyUrl_1.AmplifyUrlSearchParams; } });
37
- var parseAmplifyConfig_1 = require("./utils/parseAmplifyConfig");
38
- Object.defineProperty(exports, "parseAmplifyConfig", { enumerable: true, get: function () { return parseAmplifyConfig_1.parseAmplifyConfig; } });
39
34
  var utils_2 = require("./utils");
40
35
  Object.defineProperty(exports, "getClientInfo", { enumerable: true, get: function () { return utils_2.getClientInfo; } });
41
36
  // Auth utilities
@@ -1 +1 @@
1
- {"version":3,"file":"libraryUtils.js","sources":["../../src/libraryUtils.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.BackgroundProcessManager = exports.AmplifyErrorCode = exports.ApiError = exports.createAssertionFunction = exports.PlatformNotSupportedError = exports.AmplifyError = exports.setCustomUserAgent = exports.StorageAction = exports.PushNotificationAction = exports.PubSubAction = exports.PredictionsAction = exports.InAppMessagingAction = exports.InteractionsAction = exports.GeoAction = exports.Framework = exports.DataStoreAction = exports.Category = exports.AnalyticsAction = exports.AuthAction = exports.ApiAction = exports.getAmplifyUserAgent = exports.getAmplifyUserAgentObject = exports.Platform = exports.haveCredentialsChanged = exports.Signer = exports.isTokenExpired = exports.assertOAuthConfig = exports.assertIdentityPoolIdConfig = exports.assertTokenProviderConfig = exports.decodeJWT = exports.getClientInfo = exports.parseAmplifyConfig = exports.AmplifyUrlSearchParams = exports.AmplifyUrl = exports.amplifyUuid = exports.ADD_OAUTH_LISTENER = exports.parseAmplifyOutputs = exports.isAmplifyOutputs = exports.parseAWSExports = exports.deDupeAsyncFunction = exports.urlSafeEncode = exports.urlSafeDecode = exports.retry = exports.NonRetryableError = exports.jitteredExponentialRetry = exports.jitteredBackoff = exports.isWebWorker = exports.isNonRetryableError = exports.isBrowser = exports.generateRandomString = void 0;\nexports.SESSION_STOP_EVENT = exports.SESSION_START_EVENT = exports.sessionListener = exports.HubInternal = exports.WordArray = exports.cryptoSecureRandomInt = exports.getCrypto = exports.base64Encoder = exports.base64Decoder = exports.AMPLIFY_SYMBOL = exports.fetchAuthSession = exports.USER_AGENT_HEADER = exports.Reachability = exports.Mutex = void 0;\n/*\nThis file maps top-level exports from `@aws-amplify/core/internals/utils`. These are intended to be internal\nutils for use throughout the library.\n*/\n// Core utilities\nvar utils_1 = require(\"./utils\");\nObject.defineProperty(exports, \"generateRandomString\", { enumerable: true, get: function () { return utils_1.generateRandomString; } });\nObject.defineProperty(exports, \"isBrowser\", { enumerable: true, get: function () { return utils_1.isBrowser; } });\nObject.defineProperty(exports, \"isNonRetryableError\", { enumerable: true, get: function () { return utils_1.isNonRetryableError; } });\nObject.defineProperty(exports, \"isWebWorker\", { enumerable: true, get: function () { return utils_1.isWebWorker; } });\nObject.defineProperty(exports, \"jitteredBackoff\", { enumerable: true, get: function () { return utils_1.jitteredBackoff; } });\nObject.defineProperty(exports, \"jitteredExponentialRetry\", { enumerable: true, get: function () { return utils_1.jitteredExponentialRetry; } });\nObject.defineProperty(exports, \"NonRetryableError\", { enumerable: true, get: function () { return utils_1.NonRetryableError; } });\nObject.defineProperty(exports, \"retry\", { enumerable: true, get: function () { return utils_1.retry; } });\nObject.defineProperty(exports, \"urlSafeDecode\", { enumerable: true, get: function () { return utils_1.urlSafeDecode; } });\nObject.defineProperty(exports, \"urlSafeEncode\", { enumerable: true, get: function () { return utils_1.urlSafeEncode; } });\nObject.defineProperty(exports, \"deDupeAsyncFunction\", { enumerable: true, get: function () { return utils_1.deDupeAsyncFunction; } });\nvar parseAWSExports_1 = require(\"./parseAWSExports\");\nObject.defineProperty(exports, \"parseAWSExports\", { enumerable: true, get: function () { return parseAWSExports_1.parseAWSExports; } });\nvar parseAmplifyOutputs_1 = require(\"./parseAmplifyOutputs\");\nObject.defineProperty(exports, \"isAmplifyOutputs\", { enumerable: true, get: function () { return parseAmplifyOutputs_1.isAmplifyOutputs; } });\nObject.defineProperty(exports, \"parseAmplifyOutputs\", { enumerable: true, get: function () { return parseAmplifyOutputs_1.parseAmplifyOutputs; } });\nvar constants_1 = require(\"./singleton/constants\");\nObject.defineProperty(exports, \"ADD_OAUTH_LISTENER\", { enumerable: true, get: function () { return constants_1.ADD_OAUTH_LISTENER; } });\nvar amplifyUuid_1 = require(\"./utils/amplifyUuid\");\nObject.defineProperty(exports, \"amplifyUuid\", { enumerable: true, get: function () { return amplifyUuid_1.amplifyUuid; } });\nvar amplifyUrl_1 = require(\"./utils/amplifyUrl\");\nObject.defineProperty(exports, \"AmplifyUrl\", { enumerable: true, get: function () { return amplifyUrl_1.AmplifyUrl; } });\nObject.defineProperty(exports, \"AmplifyUrlSearchParams\", { enumerable: true, get: function () { return amplifyUrl_1.AmplifyUrlSearchParams; } });\nvar parseAmplifyConfig_1 = require(\"./utils/parseAmplifyConfig\");\nObject.defineProperty(exports, \"parseAmplifyConfig\", { enumerable: true, get: function () { return parseAmplifyConfig_1.parseAmplifyConfig; } });\nvar utils_2 = require(\"./utils\");\nObject.defineProperty(exports, \"getClientInfo\", { enumerable: true, get: function () { return utils_2.getClientInfo; } });\n// Auth utilities\nvar utils_3 = require(\"./singleton/Auth/utils\");\nObject.defineProperty(exports, \"decodeJWT\", { enumerable: true, get: function () { return utils_3.decodeJWT; } });\nObject.defineProperty(exports, \"assertTokenProviderConfig\", { enumerable: true, get: function () { return utils_3.assertTokenProviderConfig; } });\nObject.defineProperty(exports, \"assertIdentityPoolIdConfig\", { enumerable: true, get: function () { return utils_3.assertIdentityPoolIdConfig; } });\nObject.defineProperty(exports, \"assertOAuthConfig\", { enumerable: true, get: function () { return utils_3.assertOAuthConfig; } });\nvar Auth_1 = require(\"./singleton/Auth\");\nObject.defineProperty(exports, \"isTokenExpired\", { enumerable: true, get: function () { return Auth_1.isTokenExpired; } });\nvar Signer_1 = require(\"./Signer\");\nObject.defineProperty(exports, \"Signer\", { enumerable: true, get: function () { return Signer_1.Signer; } });\nvar haveCredentialsChanged_1 = require(\"./utils/haveCredentialsChanged\");\nObject.defineProperty(exports, \"haveCredentialsChanged\", { enumerable: true, get: function () { return haveCredentialsChanged_1.haveCredentialsChanged; } });\n// Platform & user-agent utilities\nvar Platform_1 = require(\"./Platform\");\nObject.defineProperty(exports, \"Platform\", { enumerable: true, get: function () { return Platform_1.Platform; } });\nObject.defineProperty(exports, \"getAmplifyUserAgentObject\", { enumerable: true, get: function () { return Platform_1.getAmplifyUserAgentObject; } });\nObject.defineProperty(exports, \"getAmplifyUserAgent\", { enumerable: true, get: function () { return Platform_1.getAmplifyUserAgent; } });\nvar types_1 = require(\"./Platform/types\");\nObject.defineProperty(exports, \"ApiAction\", { enumerable: true, get: function () { return types_1.ApiAction; } });\nObject.defineProperty(exports, \"AuthAction\", { enumerable: true, get: function () { return types_1.AuthAction; } });\nObject.defineProperty(exports, \"AnalyticsAction\", { enumerable: true, get: function () { return types_1.AnalyticsAction; } });\nObject.defineProperty(exports, \"Category\", { enumerable: true, get: function () { return types_1.Category; } });\nObject.defineProperty(exports, \"DataStoreAction\", { enumerable: true, get: function () { return types_1.DataStoreAction; } });\nObject.defineProperty(exports, \"Framework\", { enumerable: true, get: function () { return types_1.Framework; } });\nObject.defineProperty(exports, \"GeoAction\", { enumerable: true, get: function () { return types_1.GeoAction; } });\nObject.defineProperty(exports, \"InteractionsAction\", { enumerable: true, get: function () { return types_1.InteractionsAction; } });\nObject.defineProperty(exports, \"InAppMessagingAction\", { enumerable: true, get: function () { return types_1.InAppMessagingAction; } });\nObject.defineProperty(exports, \"PredictionsAction\", { enumerable: true, get: function () { return types_1.PredictionsAction; } });\nObject.defineProperty(exports, \"PubSubAction\", { enumerable: true, get: function () { return types_1.PubSubAction; } });\nObject.defineProperty(exports, \"PushNotificationAction\", { enumerable: true, get: function () { return types_1.PushNotificationAction; } });\nObject.defineProperty(exports, \"StorageAction\", { enumerable: true, get: function () { return types_1.StorageAction; } });\nvar customUserAgent_1 = require(\"./Platform/customUserAgent\");\nObject.defineProperty(exports, \"setCustomUserAgent\", { enumerable: true, get: function () { return customUserAgent_1.setCustomUserAgent; } });\n// Error handling\nvar errors_1 = require(\"./errors\");\nObject.defineProperty(exports, \"AmplifyError\", { enumerable: true, get: function () { return errors_1.AmplifyError; } });\nObject.defineProperty(exports, \"PlatformNotSupportedError\", { enumerable: true, get: function () { return errors_1.PlatformNotSupportedError; } });\nObject.defineProperty(exports, \"createAssertionFunction\", { enumerable: true, get: function () { return errors_1.createAssertionFunction; } });\nObject.defineProperty(exports, \"ApiError\", { enumerable: true, get: function () { return errors_1.ApiError; } });\nvar types_2 = require(\"./types\");\nObject.defineProperty(exports, \"AmplifyErrorCode\", { enumerable: true, get: function () { return types_2.AmplifyErrorCode; } });\n// Other utilities & constants\nvar BackgroundProcessManager_1 = require(\"./BackgroundProcessManager\");\nObject.defineProperty(exports, \"BackgroundProcessManager\", { enumerable: true, get: function () { return BackgroundProcessManager_1.BackgroundProcessManager; } });\nvar Mutex_1 = require(\"./Mutex\");\nObject.defineProperty(exports, \"Mutex\", { enumerable: true, get: function () { return Mutex_1.Mutex; } });\nvar Reachability_1 = require(\"./Reachability\");\nObject.defineProperty(exports, \"Reachability\", { enumerable: true, get: function () { return Reachability_1.Reachability; } });\nvar constants_2 = require(\"./constants\");\nObject.defineProperty(exports, \"USER_AGENT_HEADER\", { enumerable: true, get: function () { return constants_2.USER_AGENT_HEADER; } });\nvar fetchAuthSession_1 = require(\"./singleton/apis/internal/fetchAuthSession\");\nObject.defineProperty(exports, \"fetchAuthSession\", { enumerable: true, get: function () { return fetchAuthSession_1.fetchAuthSession; } });\nvar Hub_1 = require(\"./Hub\");\nObject.defineProperty(exports, \"AMPLIFY_SYMBOL\", { enumerable: true, get: function () { return Hub_1.AMPLIFY_SYMBOL; } });\nvar convert_1 = require(\"./utils/convert\");\nObject.defineProperty(exports, \"base64Decoder\", { enumerable: true, get: function () { return convert_1.base64Decoder; } });\nObject.defineProperty(exports, \"base64Encoder\", { enumerable: true, get: function () { return convert_1.base64Encoder; } });\nvar globalHelpers_1 = require(\"./utils/globalHelpers\");\nObject.defineProperty(exports, \"getCrypto\", { enumerable: true, get: function () { return globalHelpers_1.getCrypto; } });\nvar cryptoSecureRandomInt_1 = require(\"./utils/cryptoSecureRandomInt\");\nObject.defineProperty(exports, \"cryptoSecureRandomInt\", { enumerable: true, get: function () { return cryptoSecureRandomInt_1.cryptoSecureRandomInt; } });\nvar WordArray_1 = require(\"./utils/WordArray\");\nObject.defineProperty(exports, \"WordArray\", { enumerable: true, get: function () { return WordArray_1.WordArray; } });\n// Hub\nvar Hub_2 = require(\"./Hub\");\nObject.defineProperty(exports, \"HubInternal\", { enumerable: true, get: function () { return Hub_2.HubInternal; } });\n// Session listener\nvar sessionListener_1 = require(\"./utils/sessionListener\");\nObject.defineProperty(exports, \"sessionListener\", { enumerable: true, get: function () { return sessionListener_1.sessionListener; } });\nvar sessionListener_2 = require(\"./utils/sessionListener\");\nObject.defineProperty(exports, \"SESSION_START_EVENT\", { enumerable: true, get: function () { return sessionListener_2.SESSION_START_EVENT; } });\nObject.defineProperty(exports, \"SESSION_STOP_EVENT\", { enumerable: true, get: function () { return sessionListener_2.SESSION_STOP_EVENT; } });\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,wBAAwB,GAAG,OAAO,CAAC,gBAAgB,GAAG,OAAO,CAAC,QAAQ,GAAG,OAAO,CAAC,uBAAuB,GAAG,OAAO,CAAC,yBAAyB,GAAG,OAAO,CAAC,YAAY,GAAG,OAAO,CAAC,kBAAkB,GAAG,OAAO,CAAC,aAAa,GAAG,OAAO,CAAC,sBAAsB,GAAG,OAAO,CAAC,YAAY,GAAG,OAAO,CAAC,iBAAiB,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,kBAAkB,GAAG,OAAO,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,GAAG,OAAO,CAAC,eAAe,GAAG,OAAO,CAAC,QAAQ,GAAG,OAAO,CAAC,eAAe,GAAG,OAAO,CAAC,UAAU,GAAG,OAAO,CAAC,SAAS,GAAG,OAAO,CAAC,mBAAmB,GAAG,OAAO,CAAC,yBAAyB,GAAG,OAAO,CAAC,QAAQ,GAAG,OAAO,CAAC,sBAAsB,GAAG,OAAO,CAAC,MAAM,GAAG,OAAO,CAAC,cAAc,GAAG,OAAO,CAAC,iBAAiB,GAAG,OAAO,CAAC,0BAA0B,GAAG,OAAO,CAAC,yBAAyB,GAAG,OAAO,CAAC,SAAS,GAAG,OAAO,CAAC,aAAa,GAAG,OAAO,CAAC,kBAAkB,GAAG,OAAO,CAAC,sBAAsB,GAAG,OAAO,CAAC,UAAU,GAAG,OAAO,CAAC,WAAW,GAAG,OAAO,CAAC,kBAAkB,GAAG,OAAO,CAAC,mBAAmB,GAAG,OAAO,CAAC,gBAAgB,GAAG,OAAO,CAAC,eAAe,GAAG,OAAO,C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E,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,KAAK,CAAC,WAAW,CAAC,EAAE,EAAE,CAAC,CAAC;AACpH;AACA,IAAI,iBAAiB,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAAC;AAC3D,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,iBAAiB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,iBAAiB,CAAC,eAAe,CAAC,EAAE,EAAE,CAAC,CAAC;AACxI,IAAI,iBAAiB,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAAC;AAC3D,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,qBAAqB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,iBAAiB,CAAC,mBAAmB,CAAC,EAAE,EAAE,CAAC,CAAC;AAChJ,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,oBAAoB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,iBAAiB,CAAC,kBAAkB,CAAC,EAAE,EAAE,CAAC;;"}
1
+ {"version":3,"file":"libraryUtils.js","sources":["../../src/libraryUtils.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.USER_AGENT_HEADER = exports.Reachability = exports.Mutex = exports.BackgroundProcessManager = exports.AmplifyErrorCode = exports.ApiError = exports.createAssertionFunction = exports.PlatformNotSupportedError = exports.AmplifyError = exports.setCustomUserAgent = exports.StorageAction = exports.PushNotificationAction = exports.PubSubAction = exports.PredictionsAction = exports.InAppMessagingAction = exports.InteractionsAction = exports.GeoAction = exports.Framework = exports.DataStoreAction = exports.Category = exports.AnalyticsAction = exports.AuthAction = exports.ApiAction = exports.getAmplifyUserAgent = exports.getAmplifyUserAgentObject = exports.Platform = exports.haveCredentialsChanged = exports.Signer = exports.isTokenExpired = exports.assertOAuthConfig = exports.assertIdentityPoolIdConfig = exports.assertTokenProviderConfig = exports.decodeJWT = exports.getClientInfo = exports.AmplifyUrlSearchParams = exports.AmplifyUrl = exports.amplifyUuid = exports.ADD_OAUTH_LISTENER = exports.parseAWSExports = exports.deDupeAsyncFunction = exports.urlSafeEncode = exports.urlSafeDecode = exports.retry = exports.NonRetryableError = exports.jitteredExponentialRetry = exports.jitteredBackoff = exports.isWebWorker = exports.isNonRetryableError = exports.isBrowser = exports.generateRandomString = void 0;\nexports.SESSION_STOP_EVENT = exports.SESSION_START_EVENT = exports.sessionListener = exports.HubInternal = exports.WordArray = exports.cryptoSecureRandomInt = exports.getCrypto = exports.base64Encoder = exports.base64Decoder = exports.AMPLIFY_SYMBOL = exports.fetchAuthSession = void 0;\n/*\nThis file maps top-level exports from `@aws-amplify/core/internals/utils`. These are intended to be internal\nutils for use throughout the library.\n*/\n// Core utilities\nvar utils_1 = require(\"./utils\");\nObject.defineProperty(exports, \"generateRandomString\", { enumerable: true, get: function () { return utils_1.generateRandomString; } });\nObject.defineProperty(exports, \"isBrowser\", { enumerable: true, get: function () { return utils_1.isBrowser; } });\nObject.defineProperty(exports, \"isNonRetryableError\", { enumerable: true, get: function () { return utils_1.isNonRetryableError; } });\nObject.defineProperty(exports, \"isWebWorker\", { enumerable: true, get: function () { return utils_1.isWebWorker; } });\nObject.defineProperty(exports, \"jitteredBackoff\", { enumerable: true, get: function () { return utils_1.jitteredBackoff; } });\nObject.defineProperty(exports, \"jitteredExponentialRetry\", { enumerable: true, get: function () { return utils_1.jitteredExponentialRetry; } });\nObject.defineProperty(exports, \"NonRetryableError\", { enumerable: true, get: function () { return utils_1.NonRetryableError; } });\nObject.defineProperty(exports, \"retry\", { enumerable: true, get: function () { return utils_1.retry; } });\nObject.defineProperty(exports, \"urlSafeDecode\", { enumerable: true, get: function () { return utils_1.urlSafeDecode; } });\nObject.defineProperty(exports, \"urlSafeEncode\", { enumerable: true, get: function () { return utils_1.urlSafeEncode; } });\nObject.defineProperty(exports, \"deDupeAsyncFunction\", { enumerable: true, get: function () { return utils_1.deDupeAsyncFunction; } });\nvar parseAWSExports_1 = require(\"./parseAWSExports\");\nObject.defineProperty(exports, \"parseAWSExports\", { enumerable: true, get: function () { return parseAWSExports_1.parseAWSExports; } });\nvar constants_1 = require(\"./singleton/constants\");\nObject.defineProperty(exports, \"ADD_OAUTH_LISTENER\", { enumerable: true, get: function () { return constants_1.ADD_OAUTH_LISTENER; } });\nvar amplifyUuid_1 = require(\"./utils/amplifyUuid\");\nObject.defineProperty(exports, \"amplifyUuid\", { enumerable: true, get: function () { return amplifyUuid_1.amplifyUuid; } });\nvar amplifyUrl_1 = require(\"./utils/amplifyUrl\");\nObject.defineProperty(exports, \"AmplifyUrl\", { enumerable: true, get: function () { return amplifyUrl_1.AmplifyUrl; } });\nObject.defineProperty(exports, \"AmplifyUrlSearchParams\", { enumerable: true, get: function () { return amplifyUrl_1.AmplifyUrlSearchParams; } });\nvar utils_2 = require(\"./utils\");\nObject.defineProperty(exports, \"getClientInfo\", { enumerable: true, get: function () { return utils_2.getClientInfo; } });\n// Auth utilities\nvar utils_3 = require(\"./singleton/Auth/utils\");\nObject.defineProperty(exports, \"decodeJWT\", { enumerable: true, get: function () { return utils_3.decodeJWT; } });\nObject.defineProperty(exports, \"assertTokenProviderConfig\", { enumerable: true, get: function () { return utils_3.assertTokenProviderConfig; } });\nObject.defineProperty(exports, \"assertIdentityPoolIdConfig\", { enumerable: true, get: function () { return utils_3.assertIdentityPoolIdConfig; } });\nObject.defineProperty(exports, \"assertOAuthConfig\", { enumerable: true, get: function () { return utils_3.assertOAuthConfig; } });\nvar Auth_1 = require(\"./singleton/Auth\");\nObject.defineProperty(exports, \"isTokenExpired\", { enumerable: true, get: function () { return Auth_1.isTokenExpired; } });\nvar Signer_1 = require(\"./Signer\");\nObject.defineProperty(exports, \"Signer\", { enumerable: true, get: function () { return Signer_1.Signer; } });\nvar haveCredentialsChanged_1 = require(\"./utils/haveCredentialsChanged\");\nObject.defineProperty(exports, \"haveCredentialsChanged\", { enumerable: true, get: function () { return haveCredentialsChanged_1.haveCredentialsChanged; } });\n// Platform & user-agent utilities\nvar Platform_1 = require(\"./Platform\");\nObject.defineProperty(exports, \"Platform\", { enumerable: true, get: function () { return Platform_1.Platform; } });\nObject.defineProperty(exports, \"getAmplifyUserAgentObject\", { enumerable: true, get: function () { return Platform_1.getAmplifyUserAgentObject; } });\nObject.defineProperty(exports, \"getAmplifyUserAgent\", { enumerable: true, get: function () { return Platform_1.getAmplifyUserAgent; } });\nvar types_1 = require(\"./Platform/types\");\nObject.defineProperty(exports, \"ApiAction\", { enumerable: true, get: function () { return types_1.ApiAction; } });\nObject.defineProperty(exports, \"AuthAction\", { enumerable: true, get: function () { return types_1.AuthAction; } });\nObject.defineProperty(exports, \"AnalyticsAction\", { enumerable: true, get: function () { return types_1.AnalyticsAction; } });\nObject.defineProperty(exports, \"Category\", { enumerable: true, get: function () { return types_1.Category; } });\nObject.defineProperty(exports, \"DataStoreAction\", { enumerable: true, get: function () { return types_1.DataStoreAction; } });\nObject.defineProperty(exports, \"Framework\", { enumerable: true, get: function () { return types_1.Framework; } });\nObject.defineProperty(exports, \"GeoAction\", { enumerable: true, get: function () { return types_1.GeoAction; } });\nObject.defineProperty(exports, \"InteractionsAction\", { enumerable: true, get: function () { return types_1.InteractionsAction; } });\nObject.defineProperty(exports, \"InAppMessagingAction\", { enumerable: true, get: function () { return types_1.InAppMessagingAction; } });\nObject.defineProperty(exports, \"PredictionsAction\", { enumerable: true, get: function () { return types_1.PredictionsAction; } });\nObject.defineProperty(exports, \"PubSubAction\", { enumerable: true, get: function () { return types_1.PubSubAction; } });\nObject.defineProperty(exports, \"PushNotificationAction\", { enumerable: true, get: function () { return types_1.PushNotificationAction; } });\nObject.defineProperty(exports, \"StorageAction\", { enumerable: true, get: function () { return types_1.StorageAction; } });\nvar customUserAgent_1 = require(\"./Platform/customUserAgent\");\nObject.defineProperty(exports, \"setCustomUserAgent\", { enumerable: true, get: function () { return customUserAgent_1.setCustomUserAgent; } });\n// Error handling\nvar errors_1 = require(\"./errors\");\nObject.defineProperty(exports, \"AmplifyError\", { enumerable: true, get: function () { return errors_1.AmplifyError; } });\nObject.defineProperty(exports, \"PlatformNotSupportedError\", { enumerable: true, get: function () { return errors_1.PlatformNotSupportedError; } });\nObject.defineProperty(exports, \"createAssertionFunction\", { enumerable: true, get: function () { return errors_1.createAssertionFunction; } });\nObject.defineProperty(exports, \"ApiError\", { enumerable: true, get: function () { return errors_1.ApiError; } });\nvar types_2 = require(\"./types\");\nObject.defineProperty(exports, \"AmplifyErrorCode\", { enumerable: true, get: function () { return types_2.AmplifyErrorCode; } });\n// Other utilities & constants\nvar BackgroundProcessManager_1 = require(\"./BackgroundProcessManager\");\nObject.defineProperty(exports, \"BackgroundProcessManager\", { enumerable: true, get: function () { return BackgroundProcessManager_1.BackgroundProcessManager; } });\nvar Mutex_1 = require(\"./Mutex\");\nObject.defineProperty(exports, \"Mutex\", { enumerable: true, get: function () { return Mutex_1.Mutex; } });\nvar Reachability_1 = require(\"./Reachability\");\nObject.defineProperty(exports, \"Reachability\", { enumerable: true, get: function () { return Reachability_1.Reachability; } });\nvar constants_2 = require(\"./constants\");\nObject.defineProperty(exports, \"USER_AGENT_HEADER\", { enumerable: true, get: function () { return constants_2.USER_AGENT_HEADER; } });\nvar fetchAuthSession_1 = require(\"./singleton/apis/internal/fetchAuthSession\");\nObject.defineProperty(exports, \"fetchAuthSession\", { enumerable: true, get: function () { return fetchAuthSession_1.fetchAuthSession; } });\nvar Hub_1 = require(\"./Hub\");\nObject.defineProperty(exports, \"AMPLIFY_SYMBOL\", { enumerable: true, get: function () { return Hub_1.AMPLIFY_SYMBOL; } });\nvar convert_1 = require(\"./utils/convert\");\nObject.defineProperty(exports, \"base64Decoder\", { enumerable: true, get: function () { return convert_1.base64Decoder; } });\nObject.defineProperty(exports, \"base64Encoder\", { enumerable: true, get: function () { return convert_1.base64Encoder; } });\nvar globalHelpers_1 = require(\"./utils/globalHelpers\");\nObject.defineProperty(exports, \"getCrypto\", { enumerable: true, get: function () { return globalHelpers_1.getCrypto; } });\nvar cryptoSecureRandomInt_1 = require(\"./utils/cryptoSecureRandomInt\");\nObject.defineProperty(exports, \"cryptoSecureRandomInt\", { enumerable: true, get: function () { return cryptoSecureRandomInt_1.cryptoSecureRandomInt; } });\nvar WordArray_1 = require(\"./utils/WordArray\");\nObject.defineProperty(exports, \"WordArray\", { enumerable: true, get: function () { return WordArray_1.WordArray; } });\n// Hub\nvar Hub_2 = require(\"./Hub\");\nObject.defineProperty(exports, \"HubInternal\", { enumerable: true, get: function () { return Hub_2.HubInternal; } });\n// Session listener\nvar sessionListener_1 = require(\"./utils/sessionListener\");\nObject.defineProperty(exports, \"sessionListener\", { enumerable: true, get: function () { return sessionListener_1.sessionListener; } });\nvar sessionListener_2 = require(\"./utils/sessionListener\");\nObject.defineProperty(exports, \"SESSION_START_EVENT\", { enumerable: true, get: function () { return sessionListener_2.SESSION_START_EVENT; } });\nObject.defineProperty(exports, \"SESSION_STOP_EVENT\", { enumerable: true, get: function () { return sessionListener_2.SESSION_STOP_EVENT; } });\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,iBAAiB,GAAG,OAAO,CAAC,YAAY,GAAG,OAAO,CAAC,KAAK,GAAG,OAAO,CAAC,wBAAwB,GAAG,OAAO,CAAC,gBAAgB,GAAG,OAAO,CAAC,QAAQ,GAAG,OAAO,CAAC,uBAAuB,GAAG,OAAO,CAAC,yBAAyB,GAAG,OAAO,CAAC,YAAY,GAAG,OAAO,CAAC,kBAAkB,GAAG,OAAO,CAAC,aAAa,GAAG,OAAO,CAAC,sBAAsB,GAAG,OAA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I,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,KAAK,CAAC,WAAW,CAAC,EAAE,EAAE,CAAC,CAAC;AACpH;AACA,IAAI,iBAAiB,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAAC;AAC3D,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,iBAAiB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,iBAAiB,CAAC,eAAe,CAAC,EAAE,EAAE,CAAC,CAAC;AACxI,IAAI,iBAAiB,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAAC;AAC3D,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,qBAAqB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,iBAAiB,CAAC,mBAAmB,CAAC,EAAE,EAAE,CAAC,CAAC;AAChJ,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,oBAAoB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,iBAAiB,CAAC,kBAAkB,CAAC,EAAE,EAAE,CAAC;;"}
@@ -5,8 +5,8 @@ exports.Amplify = exports.AmplifyClass = void 0;
5
5
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
6
6
  // SPDX-License-Identifier: Apache-2.0
7
7
  const Hub_1 = require("../Hub");
8
+ const parseAWSExports_1 = require("../parseAWSExports");
8
9
  const utils_1 = require("../utils");
9
- const libraryUtils_1 = require("../libraryUtils");
10
10
  const Auth_1 = require("./Auth");
11
11
  const constants_1 = require("./constants");
12
12
  class AmplifyClass {
@@ -30,7 +30,13 @@ class AmplifyClass {
30
30
  * @param libraryOptions - Additional options for customizing the behavior of the library.
31
31
  */
32
32
  configure(resourcesConfig, libraryOptions) {
33
- const resolvedResourceConfig = (0, libraryUtils_1.parseAmplifyConfig)(resourcesConfig);
33
+ let resolvedResourceConfig;
34
+ if (Object.keys(resourcesConfig).some(key => key.startsWith('aws_'))) {
35
+ resolvedResourceConfig = (0, parseAWSExports_1.parseAWSExports)(resourcesConfig);
36
+ }
37
+ else {
38
+ resolvedResourceConfig = resourcesConfig;
39
+ }
34
40
  this.resourcesConfig = resolvedResourceConfig;
35
41
  if (libraryOptions) {
36
42
  this.libraryOptions = libraryOptions;
@@ -1 +1 @@
1
- {"version":3,"file":"Amplify.js","sources":["../../../src/singleton/Amplify.ts"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Amplify = exports.AmplifyClass = void 0;\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nconst Hub_1 = require(\"../Hub\");\nconst utils_1 = require(\"../utils\");\nconst libraryUtils_1 = require(\"../libraryUtils\");\nconst Auth_1 = require(\"./Auth\");\nconst constants_1 = require(\"./constants\");\nclass AmplifyClass {\n constructor() {\n this.oAuthListener = undefined;\n this.resourcesConfig = {};\n this.libraryOptions = {};\n this.Auth = new Auth_1.AuthClass();\n }\n /**\n * Configures Amplify for use with your back-end resources.\n *\n * @remarks\n * This API does not perform any merging of either `resourcesConfig` or `libraryOptions`. The most recently\n * provided values will be used after configuration.\n *\n * @remarks\n * `configure` can be used to specify additional library options where available for supported categories.\n *\n * @param resourceConfig - Back-end resource configuration. Typically provided via the `aws-exports.js` file.\n * @param libraryOptions - Additional options for customizing the behavior of the library.\n */\n configure(resourcesConfig, libraryOptions) {\n const resolvedResourceConfig = (0, libraryUtils_1.parseAmplifyConfig)(resourcesConfig);\n this.resourcesConfig = resolvedResourceConfig;\n if (libraryOptions) {\n this.libraryOptions = libraryOptions;\n }\n // Make resource config immutable\n this.resourcesConfig = (0, utils_1.deepFreeze)(this.resourcesConfig);\n this.Auth.configure(this.resourcesConfig.Auth, this.libraryOptions.Auth);\n Hub_1.Hub.dispatch('core', {\n event: 'configure',\n data: this.resourcesConfig,\n }, 'Configure', Hub_1.AMPLIFY_SYMBOL);\n this.notifyOAuthListener();\n }\n /**\n * Provides access to the current back-end resource configuration for the Library.\n *\n * @returns Returns the immutable back-end resource configuration.\n */\n getConfig() {\n return this.resourcesConfig;\n }\n /** @internal */\n [constants_1.ADD_OAUTH_LISTENER](listener) {\n if (this.resourcesConfig.Auth?.Cognito.loginWith?.oauth) {\n // when Amplify has been configured with a valid OAuth config while adding the listener, run it directly\n listener(this.resourcesConfig.Auth?.Cognito);\n }\n else {\n // otherwise register the listener and run it later when Amplify gets configured with a valid oauth config\n this.oAuthListener = listener;\n }\n }\n notifyOAuthListener() {\n if (!this.resourcesConfig.Auth?.Cognito.loginWith?.oauth ||\n !this.oAuthListener) {\n return;\n }\n this.oAuthListener(this.resourcesConfig.Auth?.Cognito);\n // the listener should only be notified once with a valid oauth config\n this.oAuthListener = undefined;\n }\n}\nexports.AmplifyClass = AmplifyClass;\n/**\n * The `Amplify` utility is used to configure the library.\n *\n * @remarks\n * `Amplify` is responsible for orchestrating cross-category communication within the library.\n */\nexports.Amplify = new AmplifyClass();\n"],"names":[],"mappings":";;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,OAAO,GAAG,OAAO,CAAC,YAAY,GAAG,KAAK,CAAC,CAAC;AAChD;AACA;AACA,MAAM,KAAK,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;AAChC,MAAM,OAAO,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AACpC,MAAM,cAAc,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;AAClD,MAAM,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;AACjC,MAAM,WAAW,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;AAC3C,MAAM,YAAY,CAAC;AACnB,IAAI,WAAW,GAAG;AAClB,QAAQ,IAAI,CAAC,aAAa,GAAG,SAAS,CAAC;AACvC,QAAQ,IAAI,CAAC,e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E,KAAK,EAAE;AACjE;AACA,YAAY,QAAQ,CAAC,IAAI,CAAC,eAAe,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AACzD,SAAS;AACT,aAAa;AACb;AACA,YAAY,IAAI,CAAC,aAAa,GAAG,QAAQ,CAAC;AAC1C,SAAS;AACT,KAAK;AACL,IAAI,mBAAmB,GAAG;AAC1B,QAAQ,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,IAAI,EAAE,OAAO,CAAC,SAAS,EAAE,KAAK;AAChE,YAAY,CAAC,IAAI,CAAC,aAAa,EAAE;AACjC,YAAY,OAAO;AACnB,SAAS;AACT,QAAQ,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,eAAe,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AAC/D;AACA,QAAQ,IAAI,CAAC,aAAa,GAAG,SAAS,CAAC;AACvC,KAAK;AACL,CAAC;AACD,OAAO,CAAC,YAAY,GAAG,YAAY,CAAC;AACpC;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,CAAC,OAAO,GAAG,IAAI,YAAY,EAAE;;"}
1
+ {"version":3,"file":"Amplify.js","sources":["../../../src/singleton/Amplify.ts"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Amplify = exports.AmplifyClass = void 0;\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nconst Hub_1 = require(\"../Hub\");\nconst parseAWSExports_1 = require(\"../parseAWSExports\");\nconst utils_1 = require(\"../utils\");\nconst Auth_1 = require(\"./Auth\");\nconst constants_1 = require(\"./constants\");\nclass AmplifyClass {\n constructor() {\n this.oAuthListener = undefined;\n this.resourcesConfig = {};\n this.libraryOptions = {};\n this.Auth = new Auth_1.AuthClass();\n }\n /**\n * Configures Amplify for use with your back-end resources.\n *\n * @remarks\n * This API does not perform any merging of either `resourcesConfig` or `libraryOptions`. The most recently\n * provided values will be used after configuration.\n *\n * @remarks\n * `configure` can be used to specify additional library options where available for supported categories.\n *\n * @param resourceConfig - Back-end resource configuration. Typically provided via the `aws-exports.js` file.\n * @param libraryOptions - Additional options for customizing the behavior of the library.\n */\n configure(resourcesConfig, libraryOptions) {\n let resolvedResourceConfig;\n if (Object.keys(resourcesConfig).some(key => key.startsWith('aws_'))) {\n resolvedResourceConfig = (0, parseAWSExports_1.parseAWSExports)(resourcesConfig);\n }\n else {\n resolvedResourceConfig = resourcesConfig;\n }\n this.resourcesConfig = resolvedResourceConfig;\n if (libraryOptions) {\n this.libraryOptions = libraryOptions;\n }\n // Make resource config immutable\n this.resourcesConfig = (0, utils_1.deepFreeze)(this.resourcesConfig);\n this.Auth.configure(this.resourcesConfig.Auth, this.libraryOptions.Auth);\n Hub_1.Hub.dispatch('core', {\n event: 'configure',\n data: this.resourcesConfig,\n }, 'Configure', Hub_1.AMPLIFY_SYMBOL);\n this.notifyOAuthListener();\n }\n /**\n * Provides access to the current back-end resource configuration for the Library.\n *\n * @returns Returns the immutable back-end resource configuration.\n */\n getConfig() {\n return this.resourcesConfig;\n }\n /** @internal */\n [constants_1.ADD_OAUTH_LISTENER](listener) {\n if (this.resourcesConfig.Auth?.Cognito.loginWith?.oauth) {\n // when Amplify has been configured with a valid OAuth config while adding the listener, run it directly\n listener(this.resourcesConfig.Auth?.Cognito);\n }\n else {\n // otherwise register the listener and run it later when Amplify gets configured with a valid oauth config\n this.oAuthListener = listener;\n }\n }\n notifyOAuthListener() {\n if (!this.resourcesConfig.Auth?.Cognito.loginWith?.oauth ||\n !this.oAuthListener) {\n return;\n }\n this.oAuthListener(this.resourcesConfig.Auth?.Cognito);\n // the listener should only be notified once with a valid oauth config\n this.oAuthListener = undefined;\n }\n}\nexports.AmplifyClass = AmplifyClass;\n/**\n * The `Amplify` utility is used to configure the library.\n *\n * @remarks\n * `Amplify` is responsible for orchestrating cross-category communication within the library.\n */\nexports.Amplify = new AmplifyClass();\n"],"names":[],"mappings":";;AACA,MAAM,CAAC,cAAc,C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CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AAC/D;AACA,QAAQ,IAAI,CAAC,aAAa,GAAG,SAAS,CAAC;AACvC,KAAK;AACL,CAAC;AACD,OAAO,CAAC,YAAY,GAAG,YAAY,CAAC;AACpC;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,CAAC,OAAO,GAAG,IAAI,YAAY,EAAE;;"}
@@ -1 +1 @@
1
- export declare const version = "6.0.30-gen2-storage.3cca682.0+3cca682";
1
+ export declare const version = "6.0.31-unstable.6d4366e.0+6d4366e";
@@ -1,5 +1,5 @@
1
1
  // generated by genversion
2
- const version = '6.0.30-gen2-storage.3cca682.0+3cca682';
2
+ const version = '6.0.31-unstable.6d4366e.0+6d4366e';
3
3
 
4
4
  export { version };
5
5
  //# sourceMappingURL=version.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.mjs","sources":["../../../src/Platform/version.ts"],"sourcesContent":["// generated by genversion\nexport const version = '6.0.30-gen2-storage.3cca682.0+3cca682';\n"],"names":[],"mappings":"AAAA;AACY,MAAC,OAAO,GAAG;;;;"}
1
+ {"version":3,"file":"version.mjs","sources":["../../../src/Platform/version.ts"],"sourcesContent":["// generated by genversion\nexport const version = '6.0.31-unstable.6d4366e.0+6d4366e';\n"],"names":[],"mappings":"AAAA;AACY,MAAC,OAAO,GAAG;;;;"}
@@ -1,12 +1,9 @@
1
1
  export { generateRandomString, isBrowser, isNonRetryableError, isWebWorker, jitteredBackoff, jitteredExponentialRetry, NonRetryableError, retry, urlSafeDecode, urlSafeEncode, deDupeAsyncFunction, } from './utils';
2
2
  export { parseAWSExports } from './parseAWSExports';
3
- export { isAmplifyOutputs, parseAmplifyOutputs } from './parseAmplifyOutputs';
4
3
  export { LegacyConfig } from './singleton/types';
5
- export { AmplifyOutputs } from './singleton/AmplifyOutputs/types';
6
4
  export { ADD_OAUTH_LISTENER } from './singleton/constants';
7
5
  export { amplifyUuid } from './utils/amplifyUuid';
8
6
  export { AmplifyUrl, AmplifyUrlSearchParams } from './utils/amplifyUrl';
9
- export { parseAmplifyConfig } from './utils/parseAmplifyConfig';
10
7
  export { getClientInfo } from './utils';
11
8
  export { decodeJWT, assertTokenProviderConfig, assertIdentityPoolIdConfig, assertOAuthConfig, } from './singleton/Auth/utils';
12
9
  export { isTokenExpired } from './singleton/Auth';
@@ -11,11 +11,9 @@ export { urlSafeDecode } from './utils/urlSafeDecode.mjs';
11
11
  export { urlSafeEncode } from './utils/urlSafeEncode.mjs';
12
12
  export { deDupeAsyncFunction } from './utils/deDupeAsyncFunction.mjs';
13
13
  export { parseAWSExports } from './parseAWSExports.mjs';
14
- export { isAmplifyOutputs, parseAmplifyOutputs } from './parseAmplifyOutputs.mjs';
15
14
  export { ADD_OAUTH_LISTENER } from './singleton/constants.mjs';
16
15
  export { amplifyUuid } from './utils/amplifyUuid/index.mjs';
17
16
  export { AmplifyUrl, AmplifyUrlSearchParams } from './utils/amplifyUrl/index.mjs';
18
- export { parseAmplifyConfig } from './utils/parseAmplifyConfig.mjs';
19
17
  export { assertIdentityPoolIdConfig, assertOAuthConfig, assertTokenProviderConfig, decodeJWT } from './singleton/Auth/utils/index.mjs';
20
18
  export { isTokenExpired } from './singleton/Auth/index.mjs';
21
19
  export { Signer } from './Signer/Signer.mjs';
@@ -1 +1 @@
1
- {"version":3,"file":"libraryUtils.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"libraryUtils.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -14,7 +14,7 @@ export interface LibraryAPIOptions {
14
14
  }): Promise<Headers>;
15
15
  };
16
16
  }
17
- export interface APIGraphQLConfig {
17
+ interface APIGraphQLConfig {
18
18
  /**
19
19
  * Required GraphQL endpoint, must be a valid URL string.
20
20
  */
@@ -42,7 +42,7 @@ export interface APIGraphQLConfig {
42
42
  defaultAuthMode: GraphQLAuthMode;
43
43
  modelIntrospection?: ModelIntrospectionSchema;
44
44
  }
45
- export interface APIRestConfig {
45
+ interface APIRestConfig {
46
46
  /**
47
47
  * Required REST endpoint, must be a valid URL string.
48
48
  */
@@ -193,3 +193,4 @@ export interface PrimaryKeyInfo {
193
193
  primaryKeyFieldName: string;
194
194
  sortKeyFieldNames: string[];
195
195
  }
196
+ export {};
@@ -1,4 +1,4 @@
1
- import { AmplifyOutputs, AuthConfig, LegacyConfig, LibraryOptions, ResourcesConfig } from './types';
1
+ import { AuthConfig, LegacyConfig, LibraryOptions, ResourcesConfig } from './types';
2
2
  import { AuthClass } from './Auth';
3
3
  import { ADD_OAUTH_LISTENER } from './constants';
4
4
  export declare class AmplifyClass {
@@ -25,7 +25,7 @@ export declare class AmplifyClass {
25
25
  * @param resourceConfig - Back-end resource configuration. Typically provided via the `aws-exports.js` file.
26
26
  * @param libraryOptions - Additional options for customizing the behavior of the library.
27
27
  */
28
- configure(resourcesConfig: ResourcesConfig | LegacyConfig | AmplifyOutputs, libraryOptions?: LibraryOptions): void;
28
+ configure(resourcesConfig: ResourcesConfig | LegacyConfig, libraryOptions?: LibraryOptions): void;
29
29
  /**
30
30
  * Provides access to the current back-end resource configuration for the Library.
31
31
  *
@@ -1,22 +1,10 @@
1
1
  import { Hub, AMPLIFY_SYMBOL } from '../Hub/index.mjs';
2
+ import { parseAWSExports } from '../parseAWSExports.mjs';
2
3
  import '../utils/getClientInfo/getClientInfo.mjs';
3
4
  import '../utils/retry/retry.mjs';
4
5
  import { deepFreeze } from '../utils/deepFreeze.mjs';
5
- import '../parseAWSExports.mjs';
6
- import { ADD_OAUTH_LISTENER } from './constants.mjs';
7
- import 'uuid';
8
- import { parseAmplifyConfig } from '../utils/parseAmplifyConfig.mjs';
9
- import '../types/errors.mjs';
10
- import '../errors/errorHelpers.mjs';
11
- import './Auth/utils/errorHelpers.mjs';
12
6
  import { AuthClass } from './Auth/index.mjs';
13
- import '@aws-crypto/sha256-js';
14
- import '@smithy/util-hex-encoding';
15
- import '../Platform/types.mjs';
16
- import '../Platform/detection/index.mjs';
17
- import '../BackgroundProcessManager/types.mjs';
18
- import '../Reachability/Reachability.mjs';
19
- import '../utils/sessionListener/index.mjs';
7
+ import { ADD_OAUTH_LISTENER } from './constants.mjs';
20
8
 
21
9
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
10
  // SPDX-License-Identifier: Apache-2.0
@@ -41,7 +29,13 @@ class AmplifyClass {
41
29
  * @param libraryOptions - Additional options for customizing the behavior of the library.
42
30
  */
43
31
  configure(resourcesConfig, libraryOptions) {
44
- const resolvedResourceConfig = parseAmplifyConfig(resourcesConfig);
32
+ let resolvedResourceConfig;
33
+ if (Object.keys(resourcesConfig).some(key => key.startsWith('aws_'))) {
34
+ resolvedResourceConfig = parseAWSExports(resourcesConfig);
35
+ }
36
+ else {
37
+ resolvedResourceConfig = resourcesConfig;
38
+ }
45
39
  this.resourcesConfig = resolvedResourceConfig;
46
40
  if (libraryOptions) {
47
41
  this.libraryOptions = libraryOptions;
@@ -1 +1 @@
1
- {"version":3,"file":"Amplify.mjs","sources":["../../../src/singleton/Amplify.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { AMPLIFY_SYMBOL, Hub } from '../Hub';\nimport { deepFreeze } from '../utils';\nimport { parseAmplifyConfig } from '../libraryUtils';\nimport { AuthClass } from './Auth';\nimport { ADD_OAUTH_LISTENER } from './constants';\nexport class AmplifyClass {\n constructor() {\n this.oAuthListener = undefined;\n this.resourcesConfig = {};\n this.libraryOptions = {};\n this.Auth = new AuthClass();\n }\n /**\n * Configures Amplify for use with your back-end resources.\n *\n * @remarks\n * This API does not perform any merging of either `resourcesConfig` or `libraryOptions`. The most recently\n * provided values will be used after configuration.\n *\n * @remarks\n * `configure` can be used to specify additional library options where available for supported categories.\n *\n * @param resourceConfig - Back-end resource configuration. Typically provided via the `aws-exports.js` file.\n * @param libraryOptions - Additional options for customizing the behavior of the library.\n */\n configure(resourcesConfig, libraryOptions) {\n const resolvedResourceConfig = parseAmplifyConfig(resourcesConfig);\n this.resourcesConfig = resolvedResourceConfig;\n if (libraryOptions) {\n this.libraryOptions = libraryOptions;\n }\n // Make resource config immutable\n this.resourcesConfig = deepFreeze(this.resourcesConfig);\n this.Auth.configure(this.resourcesConfig.Auth, this.libraryOptions.Auth);\n Hub.dispatch('core', {\n event: 'configure',\n data: this.resourcesConfig,\n }, 'Configure', AMPLIFY_SYMBOL);\n this.notifyOAuthListener();\n }\n /**\n * Provides access to the current back-end resource configuration for the Library.\n *\n * @returns Returns the immutable back-end resource configuration.\n */\n getConfig() {\n return this.resourcesConfig;\n }\n /** @internal */\n [ADD_OAUTH_LISTENER](listener) {\n if (this.resourcesConfig.Auth?.Cognito.loginWith?.oauth) {\n // when Amplify has been configured with a valid OAuth config while adding the listener, run it directly\n listener(this.resourcesConfig.Auth?.Cognito);\n }\n else {\n // otherwise register the listener and run it later when Amplify gets configured with a valid oauth config\n this.oAuthListener = listener;\n }\n }\n notifyOAuthListener() {\n if (!this.resourcesConfig.Auth?.Cognito.loginWith?.oauth ||\n !this.oAuthListener) {\n return;\n }\n this.oAuthListener(this.resourcesConfig.Auth?.Cognito);\n // the listener should only be notified once with a valid oauth config\n this.oAuthListener = undefined;\n }\n}\n/**\n * The `Amplify` utility is used to configure the library.\n *\n * @remarks\n * `Amplify` is responsible for orchestrating cross-category communication within the library.\n */\nexport const Amplify = new AmplifyClass();\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AACA;AAMO,MAAM,YAAY,CAAC;AAC1B,IAAI,WAAW,GAAG;AAClB,QAAQ,IAAI,CAAC,aAAa,GAAG,SAAS,CAAC;AACvC,QAAQ,IAAI,CAAC,eAAe,GAAG,EAAE,CAAC;AAClC,QAAQ,IAAI,CAAC,cAAc,GAAG,EAAE,CAAC;AACjC,QAAQ,IAA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C1C,SAAS;AACT,KAAK;AACL,IAAI,mBAAmB,GAAG;AAC1B,QAAQ,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,IAAI,EAAE,OAAO,CAAC,SAAS,EAAE,KAAK;AAChE,YAAY,CAAC,IAAI,CAAC,aAAa,EAAE;AACjC,YAAY,OAAO;AACnB,SAAS;AACT,QAAQ,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,eAAe,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AAC/D;AACA,QAAQ,IAAI,CAAC,aAAa,GAAG,SAAS,CAAC;AACvC,KAAK;AACL,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACY,MAAC,OAAO,GAAG,IAAI,YAAY;;;;"}
1
+ {"version":3,"file":"Amplify.mjs","sources":["../../../src/singleton/Amplify.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { AMPLIFY_SYMBOL, Hub } from '../Hub';\nimport { parseAWSExports } from '../parseAWSExports';\nimport { deepFreeze } from '../utils';\nimport { AuthClass } from './Auth';\nimport { ADD_OAUTH_LISTENER } from './constants';\nexport class AmplifyClass {\n constructor() {\n this.oAuthListener = undefined;\n this.resourcesConfig = {};\n this.libraryOptions = {};\n this.Auth = new AuthClass();\n }\n /**\n * Configures Amplify for use with your back-end resources.\n *\n * @remarks\n * This API does not perform any merging of either `resourcesConfig` or `libraryOptions`. The most recently\n * provided values will be used after configuration.\n *\n * @remarks\n * `configure` can be used to specify additional library options where available for supported categories.\n *\n * @param resourceConfig - Back-end resource configuration. Typically provided via the `aws-exports.js` file.\n * @param libraryOptions - Additional options for customizing the behavior of the library.\n */\n configure(resourcesConfig, libraryOptions) {\n let resolvedResourceConfig;\n if (Object.keys(resourcesConfig).some(key => key.startsWith('aws_'))) {\n resolvedResourceConfig = parseAWSExports(resourcesConfig);\n }\n else {\n resolvedResourceConfig = resourcesConfig;\n }\n this.resourcesConfig = resolvedResourceConfig;\n if (libraryOptions) {\n this.libraryOptions = libraryOptions;\n }\n // Make resource config immutable\n this.resourcesConfig = deepFreeze(this.resourcesConfig);\n this.Auth.configure(this.resourcesConfig.Auth, this.libraryOptions.Auth);\n Hub.dispatch('core', {\n event: 'configure',\n data: this.resourcesConfig,\n }, 'Configure', AMPLIFY_SYMBOL);\n this.notifyOAuthListener();\n }\n /**\n * Provides access to the current back-end resource configuration for the Library.\n *\n * @returns Returns the immutable back-end resource configuration.\n */\n getConfig() {\n return this.resourcesConfig;\n }\n /** @internal */\n [ADD_OAUTH_LISTENER](listener) {\n if (this.resourcesConfig.Auth?.Cognito.loginWith?.oauth) {\n // when Amplify has been configured with a valid OAuth config while adding the listener, run it directly\n listener(this.resourcesConfig.Auth?.Cognito);\n }\n else {\n // otherwise register the listener and run it later when Amplify gets configured with a valid oauth config\n this.oAuthListener = listener;\n }\n }\n notifyOAuthListener() {\n if (!this.resourcesConfig.Auth?.Cognito.loginWith?.oauth ||\n !this.oAuthListener) {\n return;\n }\n this.oAuthListener(this.resourcesConfig.Auth?.Cognito);\n // the listener should only be notified once with a valid oauth config\n this.oAuthListener = undefined;\n }\n}\n/**\n * The `Amplify` utility is used to configure the library.\n *\n * @remarks\n * `Amplify` is responsible for orchestrating cross-category communication within the library.\n */\nexport const Amplify = new AmplifyClass();\n"],"names":[],"mappings":";;;;;;;;AAAA;AACA;AAMO,MAAM,YAAY,CAAC;AAC1B,IAAI,WAAW,GAAG;AAClB,QAAQ,IAAI,CAAC,aAAa,GAAG,SAAS,CAAC;AACvC,QAAQ,IAAI,CAAC,eAAe,GAAG,EAAE,CAAC;AAClC,QAAQ,IAAI,CAAC,cAAc,GAAG,EAAE,CAAC;AACjC,QAAQ,IAAI,CAAC,IAAI,GAAG,IAAI,SAAS,EAAE,CAAC;AACpC,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,SAAS,CAAC,eAAe,EAAE,cAAc,EA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AACT,aAAa;AACb;AACA,YAAY,IAAI,CAAC,aAAa,GAAG,QAAQ,CAAC;AAC1C,SAAS;AACT,KAAK;AACL,IAAI,mBAAmB,GAAG;AAC1B,QAAQ,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,IAAI,EAAE,OAAO,CAAC,SAAS,EAAE,KAAK;AAChE,YAAY,CAAC,IAAI,CAAC,aAAa,EAAE;AACjC,YAAY,OAAO;AACnB,SAAS;AACT,QAAQ,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,eAAe,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AAC/D;AACA,QAAQ,IAAI,CAAC,aAAa,GAAG,SAAS,CAAC;AACvC,KAAK;AACL,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACY,MAAC,OAAO,GAAG,IAAI,YAAY;;;;"}
@@ -88,7 +88,6 @@ export interface AuthUserPoolConfig {
88
88
  allowGuestAccess?: never;
89
89
  };
90
90
  }
91
- export type CognitoUserPoolConfigMfaStatus = 'on' | 'off' | 'optional';
92
91
  export interface CognitoUserPoolConfig {
93
92
  userPoolClientId: string;
94
93
  userPoolId: string;
@@ -102,7 +101,7 @@ export interface CognitoUserPoolConfig {
102
101
  };
103
102
  userAttributes?: AuthConfigUserAttributes;
104
103
  mfa?: {
105
- status?: CognitoUserPoolConfigMfaStatus;
104
+ status?: 'on' | 'off' | 'optional';
106
105
  totpEnabled?: boolean;
107
106
  smsEnabled?: boolean;
108
107
  };
@@ -1,5 +1,4 @@
1
1
  import { AtLeastOne } from '../types';
2
- /** @deprecated This may be removed in the next major version. */
3
2
  export type StorageAccessLevel = 'guest' | 'protected' | 'private';
4
3
  export interface S3ProviderConfig {
5
4
  S3: {
@@ -14,22 +13,13 @@ export interface S3ProviderConfig {
14
13
  };
15
14
  }
16
15
  export type StorageConfig = AtLeastOne<S3ProviderConfig>;
17
- /** @deprecated This may be removed in the next major version. */
18
16
  type StoragePrefixResolver = (params: {
19
17
  accessLevel: StorageAccessLevel;
20
18
  targetIdentityId?: string;
21
19
  }) => Promise<string>;
22
20
  export interface LibraryStorageOptions {
23
21
  S3: {
24
- /**
25
- * @deprecated This may be removed in the next major version.
26
- * This is currently used for Storage API signature using key as input parameter.
27
- * */
28
22
  prefixResolver?: StoragePrefixResolver;
29
- /**
30
- * @deprecated This may be removed in the next major version.
31
- * This is currently used for Storage API signature using key as input parameter.
32
- * */
33
23
  defaultAccessLevel?: StorageAccessLevel;
34
24
  isObjectLockEnabled?: boolean;
35
25
  };
@@ -6,7 +6,6 @@ import { PredictionsConfig } from './Predictions/types';
6
6
  import { LibraryStorageOptions, StorageAccessLevel, StorageConfig } from './Storage/types';
7
7
  import { NotificationsConfig } from './Notifications/types';
8
8
  import { InteractionsConfig } from './Interactions/types';
9
- export { AmplifyOutputs } from './AmplifyOutputs/types';
10
9
  /**
11
10
  * Compatibility type representing the Amplify Gen 1 configuration file schema. This type should not be used directly.
12
11
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/core",
3
- "version": "6.0.29-gen2-storage.3cca682.0+3cca682",
3
+ "version": "6.0.29-unstable.6d4366e.0+6d4366e",
4
4
  "description": "Core category of aws-amplify",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.mjs",
@@ -60,7 +60,7 @@
60
60
  "uuid": "^9.0.0"
61
61
  },
62
62
  "devDependencies": {
63
- "@aws-amplify/react-native": "1.0.29-gen2-storage.3cca682.0+3cca682",
63
+ "@aws-amplify/react-native": "1.0.29-unstable.6d4366e.0+6d4366e",
64
64
  "@types/js-cookie": "3.0.2",
65
65
  "genversion": "^2.2.0",
66
66
  "typescript": "5.0.2"
@@ -192,5 +192,5 @@
192
192
  ]
193
193
  }
194
194
  },
195
- "gitHead": "3cca6822ad4b76ab8966654923363635d92587f0"
195
+ "gitHead": "6d4366e5ecb079e731229fbcee6d5a60d091cbfa"
196
196
  }
@@ -1,2 +1,2 @@
1
1
  // generated by genversion
2
- export const version = '6.0.30-gen2-storage.3cca682.0+3cca682';
2
+ export const version = '6.0.31-unstable.6d4366e.0+6d4366e';
@@ -21,15 +21,11 @@ export {
21
21
  deDupeAsyncFunction,
22
22
  } from './utils';
23
23
  export { parseAWSExports } from './parseAWSExports';
24
- export { isAmplifyOutputs, parseAmplifyOutputs } from './parseAmplifyOutputs';
25
24
  export { LegacyConfig } from './singleton/types';
26
- export { AmplifyOutputs } from './singleton/AmplifyOutputs/types';
27
25
  export { ADD_OAUTH_LISTENER } from './singleton/constants';
28
26
  export { amplifyUuid } from './utils/amplifyUuid';
29
27
  export { AmplifyUrl, AmplifyUrlSearchParams } from './utils/amplifyUrl';
30
- export { parseAmplifyConfig } from './utils/parseAmplifyConfig';
31
28
  export { getClientInfo } from './utils';
32
-
33
29
  // Auth utilities
34
30
  export {
35
31
  decodeJWT,
@@ -18,7 +18,7 @@ export interface LibraryAPIOptions {
18
18
  };
19
19
  }
20
20
 
21
- export interface APIGraphQLConfig {
21
+ interface APIGraphQLConfig {
22
22
  /**
23
23
  * Required GraphQL endpoint, must be a valid URL string.
24
24
  */
@@ -47,7 +47,7 @@ export interface APIGraphQLConfig {
47
47
  modelIntrospection?: ModelIntrospectionSchema;
48
48
  }
49
49
 
50
- export interface APIRestConfig {
50
+ interface APIRestConfig {
51
51
  /**
52
52
  * Required REST endpoint, must be a valid URL string.
53
53
  */
@@ -1,11 +1,10 @@
1
1
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  import { AMPLIFY_SYMBOL, Hub } from '../Hub';
4
+ import { parseAWSExports } from '../parseAWSExports';
4
5
  import { deepFreeze } from '../utils';
5
- import { parseAmplifyConfig } from '../libraryUtils';
6
6
 
7
7
  import {
8
- AmplifyOutputs,
9
8
  AuthConfig,
10
9
  LegacyConfig,
11
10
  LibraryOptions,
@@ -49,10 +48,16 @@ export class AmplifyClass {
49
48
  * @param libraryOptions - Additional options for customizing the behavior of the library.
50
49
  */
51
50
  configure(
52
- resourcesConfig: ResourcesConfig | LegacyConfig | AmplifyOutputs,
51
+ resourcesConfig: ResourcesConfig | LegacyConfig,
53
52
  libraryOptions?: LibraryOptions,
54
53
  ): void {
55
- const resolvedResourceConfig = parseAmplifyConfig(resourcesConfig);
54
+ let resolvedResourceConfig: ResourcesConfig;
55
+
56
+ if (Object.keys(resourcesConfig).some(key => key.startsWith('aws_'))) {
57
+ resolvedResourceConfig = parseAWSExports(resourcesConfig);
58
+ } else {
59
+ resolvedResourceConfig = resourcesConfig as ResourcesConfig;
60
+ }
56
61
 
57
62
  this.resourcesConfig = resolvedResourceConfig;
58
63
 
@@ -145,8 +145,6 @@ export interface AuthUserPoolConfig {
145
145
  };
146
146
  }
147
147
 
148
- export type CognitoUserPoolConfigMfaStatus = 'on' | 'off' | 'optional';
149
-
150
148
  export interface CognitoUserPoolConfig {
151
149
  userPoolClientId: string;
152
150
  userPoolId: string;
@@ -160,7 +158,7 @@ export interface CognitoUserPoolConfig {
160
158
  };
161
159
  userAttributes?: AuthConfigUserAttributes;
162
160
  mfa?: {
163
- status?: CognitoUserPoolConfigMfaStatus;
161
+ status?: 'on' | 'off' | 'optional';
164
162
  totpEnabled?: boolean;
165
163
  smsEnabled?: boolean;
166
164
  };
@@ -3,7 +3,6 @@
3
3
 
4
4
  import { AtLeastOne } from '../types';
5
5
 
6
- /** @deprecated This may be removed in the next major version. */
7
6
  export type StorageAccessLevel = 'guest' | 'protected' | 'private';
8
7
 
9
8
  export interface S3ProviderConfig {
@@ -21,7 +20,6 @@ export interface S3ProviderConfig {
21
20
 
22
21
  export type StorageConfig = AtLeastOne<S3ProviderConfig>;
23
22
 
24
- /** @deprecated This may be removed in the next major version. */
25
23
  type StoragePrefixResolver = (params: {
26
24
  accessLevel: StorageAccessLevel;
27
25
  targetIdentityId?: string;
@@ -29,15 +27,7 @@ type StoragePrefixResolver = (params: {
29
27
 
30
28
  export interface LibraryStorageOptions {
31
29
  S3: {
32
- /**
33
- * @deprecated This may be removed in the next major version.
34
- * This is currently used for Storage API signature using key as input parameter.
35
- * */
36
30
  prefixResolver?: StoragePrefixResolver;
37
- /**
38
- * @deprecated This may be removed in the next major version.
39
- * This is currently used for Storage API signature using key as input parameter.
40
- * */
41
31
  defaultAccessLevel?: StorageAccessLevel;
42
32
  isObjectLockEnabled?: boolean;
43
33
  };
@@ -26,8 +26,6 @@ import {
26
26
  import { NotificationsConfig } from './Notifications/types';
27
27
  import { InteractionsConfig } from './Interactions/types';
28
28
 
29
- export { AmplifyOutputs } from './AmplifyOutputs/types';
30
-
31
29
  /**
32
30
  * Compatibility type representing the Amplify Gen 1 configuration file schema. This type should not be used directly.
33
31
  */