aws-amplify 6.13.6-unstable.4080377.0 → 6.13.6-unstable.90e2118.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 (40) hide show
  1. package/dist/cjs/adapter-core/authProvidersFactories/cognito/createAWSCredentialsAndIdentityIdProvider.js.map +1 -1
  2. package/dist/cjs/adapter-core/authProvidersFactories/cognito/createUserPoolsTokenProvider.js.map +1 -1
  3. package/dist/cjs/adapter-core/authProvidersFactories/cognito/index.js.map +1 -1
  4. package/dist/cjs/adapter-core/constants.js.map +1 -1
  5. package/dist/cjs/adapter-core/index.js.map +1 -1
  6. package/dist/cjs/adapter-core/internals.js.map +1 -1
  7. package/dist/cjs/adapter-core/runWithAmplifyServerContext.js.map +1 -1
  8. package/dist/cjs/adapter-core/storageFactories/createKeyValueStorageFromCookieStorageAdapter.js.map +1 -1
  9. package/dist/cjs/adapter-core/storageFactories/index.js.map +1 -1
  10. package/dist/cjs/analytics/index.js.map +1 -1
  11. package/dist/cjs/analytics/kinesis/index.js.map +1 -1
  12. package/dist/cjs/analytics/kinesis-firehose/index.js.map +1 -1
  13. package/dist/cjs/analytics/personalize/index.js.map +1 -1
  14. package/dist/cjs/analytics/pinpoint/index.js.map +1 -1
  15. package/dist/cjs/api/index.js.map +1 -1
  16. package/dist/cjs/api/internals.js.map +1 -1
  17. package/dist/cjs/api/server.js.map +1 -1
  18. package/dist/cjs/auth/cognito/index.js.map +1 -1
  19. package/dist/cjs/auth/cognito/server/index.js.map +1 -1
  20. package/dist/cjs/auth/enableOAuthListener.js.map +1 -1
  21. package/dist/cjs/auth/index.js.map +1 -1
  22. package/dist/cjs/auth/server.js.map +1 -1
  23. package/dist/cjs/datastore/index.js.map +1 -1
  24. package/dist/cjs/in-app-messaging/index.js.map +1 -1
  25. package/dist/cjs/in-app-messaging/pinpoint/index.js.map +1 -1
  26. package/dist/cjs/index.js.map +1 -1
  27. package/dist/cjs/initSingleton.js.map +1 -1
  28. package/dist/cjs/push-notifications/index.js.map +1 -1
  29. package/dist/cjs/push-notifications/pinpoint/index.js.map +1 -1
  30. package/dist/cjs/storage/index.js.map +1 -1
  31. package/dist/cjs/storage/s3/index.js.map +1 -1
  32. package/dist/cjs/storage/s3/server.js.map +1 -1
  33. package/dist/cjs/storage/server.js.map +1 -1
  34. package/dist/cjs/utils/index.js.map +1 -1
  35. package/dist/esm/adapter-core/authProvidersFactories/cognito/createAWSCredentialsAndIdentityIdProvider.mjs.map +1 -1
  36. package/dist/esm/adapter-core/authProvidersFactories/cognito/createUserPoolsTokenProvider.mjs.map +1 -1
  37. package/dist/esm/adapter-core/runWithAmplifyServerContext.mjs.map +1 -1
  38. package/dist/esm/adapter-core/storageFactories/createKeyValueStorageFromCookieStorageAdapter.mjs.map +1 -1
  39. package/dist/esm/initSingleton.mjs.map +1 -1
  40. package/package.json +9 -9
@@ -1 +1 @@
1
- {"version":3,"file":"createAWSCredentialsAndIdentityIdProvider.js","sources":["../../../../../src/adapter-core/authProvidersFactories/cognito/createAWSCredentialsAndIdentityIdProvider.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.createAWSCredentialsAndIdentityIdProvider = void 0;\nconst cognito_1 = require(\"@aws-amplify/auth/cognito\");\n/**\n * Creates a instance of {@link CognitoAWSCredentialsAndIdentityIdProvider} using\n * the provided `keyValueStorage`.\n * @param authConfig The Auth config that the credentials provider needs to function.\n * @param keyValueStorage An object that implements the {@link KeyValueStorageInterface}.\n * @returns An instance of {@link CognitoAWSCredentialsAndIdentityIdProvider}.\n */\nconst createAWSCredentialsAndIdentityIdProvider = (authConfig, keyValueStorage) => {\n const credentialsProvider = new cognito_1.CognitoAWSCredentialsAndIdentityIdProvider(new cognito_1.DefaultIdentityIdStore(keyValueStorage));\n return credentialsProvider;\n};\nexports.createAWSCredentialsAndIdentityIdProvider = createAWSCredentialsAndIdentityIdProvider;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,yCAAyC,GAAG,KAAK,CAAC,CAAC;AAC3D,MAAM,SAAS,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAAC;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,yCAAyC,GAAG,CAAC,UAAU,EAAE,eAAe,KAAK;AACnF,IAAI,MAAM,mBAAmB,GAAG,IAAI,SAAS,CAAC,0CAA0C,CAAC,IAAI,SAAS,CAAC,sBAAsB,CAAC,eAAe,CAAC,CAAC,CAAC;AAChJ,IAAI,OAAO,mBAAmB,CAAC;AAC/B,CAAC,CAAC;AACF,OAAO,CAAC,yCAAyC,GAAG,yCAAyC;;"}
1
+ {"version":3,"file":"createAWSCredentialsAndIdentityIdProvider.js","sources":["../../../../../src/adapter-core/authProvidersFactories/cognito/createAWSCredentialsAndIdentityIdProvider.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.createAWSCredentialsAndIdentityIdProvider = void 0;\nconst cognito_1 = require(\"@aws-amplify/auth/cognito\");\n/**\n * Creates a instance of {@link CognitoAWSCredentialsAndIdentityIdProvider} using\n * the provided `keyValueStorage`.\n * @param authConfig The Auth config that the credentials provider needs to function.\n * @param keyValueStorage An object that implements the {@link KeyValueStorageInterface}.\n * @returns An instance of {@link CognitoAWSCredentialsAndIdentityIdProvider}.\n */\nconst createAWSCredentialsAndIdentityIdProvider = (authConfig, keyValueStorage) => {\n const credentialsProvider = new cognito_1.CognitoAWSCredentialsAndIdentityIdProvider(new cognito_1.DefaultIdentityIdStore(keyValueStorage));\n return credentialsProvider;\n};\nexports.createAWSCredentialsAndIdentityIdProvider = createAWSCredentialsAndIdentityIdProvider;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,yCAAyC,GAAG,MAAM;AAC1D,MAAM,SAAS,GAAG,OAAO,CAAC,2BAA2B,CAAC;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,yCAAyC,GAAG,CAAC,UAAU,EAAE,eAAe,KAAK;AACnF,IAAI,MAAM,mBAAmB,GAAG,IAAI,SAAS,CAAC,0CAA0C,CAAC,IAAI,SAAS,CAAC,sBAAsB,CAAC,eAAe,CAAC,CAAC;AAC/I,IAAI,OAAO,mBAAmB;AAC9B,CAAC;AACD,OAAO,CAAC,yCAAyC,GAAG,yCAAyC;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"createUserPoolsTokenProvider.js","sources":["../../../../../src/adapter-core/authProvidersFactories/cognito/createUserPoolsTokenProvider.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.createUserPoolsTokenProvider = void 0;\nconst cognito_1 = require(\"@aws-amplify/auth/cognito\");\n/**\n * Creates an object that implements {@link TokenProvider}.\n * @param authConfig The Auth config that the credentials provider needs to function.\n * @param keyValueStorage An object that implements the {@link KeyValueStorageInterface}.\n * @returns An object that implements {@link TokenProvider}.\n */\nconst createUserPoolsTokenProvider = (authConfig, keyValueStorage) => {\n const authTokenStore = new cognito_1.DefaultTokenStore();\n authTokenStore.setAuthConfig(authConfig);\n authTokenStore.setKeyValueStorage(keyValueStorage);\n const tokenOrchestrator = new cognito_1.TokenOrchestrator();\n tokenOrchestrator.setAuthConfig(authConfig);\n tokenOrchestrator.setAuthTokenStore(authTokenStore);\n tokenOrchestrator.setTokenRefresher(cognito_1.refreshAuthTokensWithoutDedupe);\n return {\n getTokens: ({ forceRefresh } = { forceRefresh: false }) => tokenOrchestrator.getTokens({ forceRefresh }),\n };\n};\nexports.createUserPoolsTokenProvider = createUserPoolsTokenProvider;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,4BAA4B,GAAG,KAAK,CAAC,CAAC;AAC9C,MAAM,SAAS,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAAC;AACvD;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,4BAA4B,GAAG,CAAC,UAAU,EAAE,eAAe,KAAK;AACtE,IAAI,MAAM,cAAc,GAAG,IAAI,SAAS,CAAC,iBAAiB,EAAE,CAAC;AAC7D,IAAI,cAAc,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;AAC7C,IAAI,cAAc,CAAC,kBAAkB,CAAC,eAAe,CAAC,CAAC;AACvD,IAAI,MAAM,iBAAiB,GAAG,IAAI,SAAS,CAAC,iBAAiB,EAAE,CAAC;AAChE,IAAI,iBAAiB,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;AAChD,IAAI,iBAAiB,CAAC,iBAAiB,CAAC,cAAc,CAAC,CAAC;AACxD,IAAI,iBAAiB,CAAC,iBAAiB,CAAC,SAAS,CAAC,8BAA8B,CAAC,CAAC;AAClF,IAAI,OAAO;AACX,QAAQ,SAAS,EAAE,CAAC,EAAE,YAAY,EAAE,GAAG,EAAE,YAAY,EAAE,KAAK,EAAE,KAAK,iBAAiB,CAAC,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;AAChH,KAAK,CAAC;AACN,CAAC,CAAC;AACF,OAAO,CAAC,4BAA4B,GAAG,4BAA4B;;"}
1
+ {"version":3,"file":"createUserPoolsTokenProvider.js","sources":["../../../../../src/adapter-core/authProvidersFactories/cognito/createUserPoolsTokenProvider.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.createUserPoolsTokenProvider = void 0;\nconst cognito_1 = require(\"@aws-amplify/auth/cognito\");\n/**\n * Creates an object that implements {@link TokenProvider}.\n * @param authConfig The Auth config that the credentials provider needs to function.\n * @param keyValueStorage An object that implements the {@link KeyValueStorageInterface}.\n * @returns An object that implements {@link TokenProvider}.\n */\nconst createUserPoolsTokenProvider = (authConfig, keyValueStorage) => {\n const authTokenStore = new cognito_1.DefaultTokenStore();\n authTokenStore.setAuthConfig(authConfig);\n authTokenStore.setKeyValueStorage(keyValueStorage);\n const tokenOrchestrator = new cognito_1.TokenOrchestrator();\n tokenOrchestrator.setAuthConfig(authConfig);\n tokenOrchestrator.setAuthTokenStore(authTokenStore);\n tokenOrchestrator.setTokenRefresher(cognito_1.refreshAuthTokensWithoutDedupe);\n return {\n getTokens: ({ forceRefresh } = { forceRefresh: false }) => tokenOrchestrator.getTokens({ forceRefresh }),\n };\n};\nexports.createUserPoolsTokenProvider = createUserPoolsTokenProvider;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,4BAA4B,GAAG,MAAM;AAC7C,MAAM,SAAS,GAAG,OAAO,CAAC,2BAA2B,CAAC;AACtD;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,4BAA4B,GAAG,CAAC,UAAU,EAAE,eAAe,KAAK;AACtE,IAAI,MAAM,cAAc,GAAG,IAAI,SAAS,CAAC,iBAAiB,EAAE;AAC5D,IAAI,cAAc,CAAC,aAAa,CAAC,UAAU,CAAC;AAC5C,IAAI,cAAc,CAAC,kBAAkB,CAAC,eAAe,CAAC;AACtD,IAAI,MAAM,iBAAiB,GAAG,IAAI,SAAS,CAAC,iBAAiB,EAAE;AAC/D,IAAI,iBAAiB,CAAC,aAAa,CAAC,UAAU,CAAC;AAC/C,IAAI,iBAAiB,CAAC,iBAAiB,CAAC,cAAc,CAAC;AACvD,IAAI,iBAAiB,CAAC,iBAAiB,CAAC,SAAS,CAAC,8BAA8B,CAAC;AACjF,IAAI,OAAO;AACX,QAAQ,SAAS,EAAE,CAAC,EAAE,YAAY,EAAE,GAAG,EAAE,YAAY,EAAE,KAAK,EAAE,KAAK,iBAAiB,CAAC,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;AAChH,KAAK;AACL,CAAC;AACD,OAAO,CAAC,4BAA4B,GAAG,4BAA4B;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../src/adapter-core/authProvidersFactories/cognito/index.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.createAWSCredentialsAndIdentityIdProvider = exports.createUserPoolsTokenProvider = void 0;\nvar createUserPoolsTokenProvider_1 = require(\"./createUserPoolsTokenProvider\");\nObject.defineProperty(exports, \"createUserPoolsTokenProvider\", { enumerable: true, get: function () { return createUserPoolsTokenProvider_1.createUserPoolsTokenProvider; } });\nvar createAWSCredentialsAndIdentityIdProvider_1 = require(\"./createAWSCredentialsAndIdentityIdProvider\");\nObject.defineProperty(exports, \"createAWSCredentialsAndIdentityIdProvider\", { enumerable: true, get: function () { return createAWSCredentialsAndIdentityIdProvider_1.createAWSCredentialsAndIdentityIdProvider; } });\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,yCAAyC,GAAG,OAAO,CAAC,4BAA4B,GAAG,KAAK,CAAC,CAAC;AAClG,IAAI,8BAA8B,GAAG,OAAO,CAAC,gCAAgC,CAAC,CAAC;AAC/E,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,8BAA8B,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,8BAA8B,CAAC,4BAA4B,CAAC,EAAE,EAAE,CAAC,CAAC;AAC/K,IAAI,2CAA2C,GAAG,OAAO,CAAC,6CAA6C,CAAC,CAAC;AACzG,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,2CAA2C,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,2CAA2C,CAAC,yCAAyC,CAAC,EAAE,EAAE,CAAC;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../../src/adapter-core/authProvidersFactories/cognito/index.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.createAWSCredentialsAndIdentityIdProvider = exports.createUserPoolsTokenProvider = void 0;\nvar createUserPoolsTokenProvider_1 = require(\"./createUserPoolsTokenProvider\");\nObject.defineProperty(exports, \"createUserPoolsTokenProvider\", { enumerable: true, get: function () { return createUserPoolsTokenProvider_1.createUserPoolsTokenProvider; } });\nvar createAWSCredentialsAndIdentityIdProvider_1 = require(\"./createAWSCredentialsAndIdentityIdProvider\");\nObject.defineProperty(exports, \"createAWSCredentialsAndIdentityIdProvider\", { enumerable: true, get: function () { return createAWSCredentialsAndIdentityIdProvider_1.createAWSCredentialsAndIdentityIdProvider; } });\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,yCAAyC,GAAG,OAAO,CAAC,4BAA4B,GAAG,MAAM;AACjG,IAAI,8BAA8B,GAAG,OAAO,CAAC,gCAAgC,CAAC;AAC9E,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,8BAA8B,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,8BAA8B,CAAC,4BAA4B,CAAC,EAAE,EAAE,CAAC;AAC9K,IAAI,2CAA2C,GAAG,OAAO,CAAC,6CAA6C,CAAC;AACxG,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,2CAA2C,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,2CAA2C,CAAC,yCAAyC,CAAC,EAAE,EAAE,CAAC;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sources":["../../../src/adapter-core/constants.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.DEFAULT_AUTH_TOKEN_COOKIES_MAX_AGE = void 0;\nexports.DEFAULT_AUTH_TOKEN_COOKIES_MAX_AGE = 365 * 24 * 60 * 60; // 1 year in seconds\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,kCAAkC,GAAG,KAAK,CAAC,CAAC;AACpD,OAAO,CAAC,kCAAkC,GAAG,GAAG,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;;"}
1
+ {"version":3,"file":"constants.js","sources":["../../../src/adapter-core/constants.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.DEFAULT_AUTH_TOKEN_COOKIES_MAX_AGE = void 0;\nexports.DEFAULT_AUTH_TOKEN_COOKIES_MAX_AGE = 365 * 24 * 60 * 60; // 1 year in seconds\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,kCAAkC,GAAG,MAAM;AACnD,OAAO,CAAC,kCAAkC,GAAG,GAAG,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/adapter-core/index.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.DEFAULT_AUTH_TOKEN_COOKIES_MAX_AGE = exports.AUTH_KEY_PREFIX = exports.createKeysForAuthStorage = exports.validateState = exports.generateCodeVerifier = exports.getRedirectUrl = exports.generateState = exports.createUserPoolsTokenProvider = exports.createAWSCredentialsAndIdentityIdProvider = exports.createKeyValueStorageFromCookieStorageAdapter = exports.runWithAmplifyServerContext = void 0;\nvar runWithAmplifyServerContext_1 = require(\"./runWithAmplifyServerContext\");\nObject.defineProperty(exports, \"runWithAmplifyServerContext\", { enumerable: true, get: function () { return runWithAmplifyServerContext_1.runWithAmplifyServerContext; } });\nvar storageFactories_1 = require(\"./storageFactories\");\nObject.defineProperty(exports, \"createKeyValueStorageFromCookieStorageAdapter\", { enumerable: true, get: function () { return storageFactories_1.createKeyValueStorageFromCookieStorageAdapter; } });\nvar cognito_1 = require(\"./authProvidersFactories/cognito\");\nObject.defineProperty(exports, \"createAWSCredentialsAndIdentityIdProvider\", { enumerable: true, get: function () { return cognito_1.createAWSCredentialsAndIdentityIdProvider; } });\nObject.defineProperty(exports, \"createUserPoolsTokenProvider\", { enumerable: true, get: function () { return cognito_1.createUserPoolsTokenProvider; } });\nvar cognito_2 = require(\"@aws-amplify/auth/cognito\");\nObject.defineProperty(exports, \"generateState\", { enumerable: true, get: function () { return cognito_2.generateState; } });\nObject.defineProperty(exports, \"getRedirectUrl\", { enumerable: true, get: function () { return cognito_2.getRedirectUrl; } });\nObject.defineProperty(exports, \"generateCodeVerifier\", { enumerable: true, get: function () { return cognito_2.generateCodeVerifier; } });\nObject.defineProperty(exports, \"validateState\", { enumerable: true, get: function () { return cognito_2.validateState; } });\nObject.defineProperty(exports, \"createKeysForAuthStorage\", { enumerable: true, get: function () { return cognito_2.createKeysForAuthStorage; } });\nObject.defineProperty(exports, \"AUTH_KEY_PREFIX\", { enumerable: true, get: function () { return cognito_2.AUTH_KEY_PREFIX; } });\nvar constants_1 = require(\"./constants\");\nObject.defineProperty(exports, \"DEFAULT_AUTH_TOKEN_COOKIES_MAX_AGE\", { enumerable: true, get: function () { return constants_1.DEFAULT_AUTH_TOKEN_COOKIES_MAX_AGE; } });\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,kCAAkC,GAAG,OAAO,CAAC,eAAe,GAAG,OAAO,CAAC,wBAAwB,GAAG,OAAO,CAAC,aAAa,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,cAAc,GAAG,OAAO,CAAC,aAAa,GAAG,OAAO,CAAC,4BAA4B,GAAG,OAAO,CAAC,yCAAyC,GAAG,OAAO,CAAC,6CAA6C,GAAG,OAAO,CAAC,2BAA2B,GAAG,KAAK,CAAC,CAAC;AAClZ,IAAI,6BAA6B,GAAG,OAAO,CAAC,+BAA+B,CAAC,CAAC;AAC7E,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,6BAA6B,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,6BAA6B,CAAC,2BAA2B,CAAC,EAAE,EAAE,CAAC,CAAC;AAC5K,IAAI,kBAAkB,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;A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AAS,CAAC,aAAa,CAAC,EAAE,EAAE,CAAC,CAAC;AAC5H,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,0BAA0B,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,SAAS,CAAC,wBAAwB,CAAC,EAAE,EAAE,CAAC,CAAC;AAClJ,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,iBAAiB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,SAAS,CAAC,eAAe,CAAC,EAAE,EAAE,CAAC,CAAC;AAChI,IAAI,WAAW,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;AACzC,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,oCAAoC,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,WAAW,CAAC,kCAAkC,CAAC,EAAE,EAAE,CAAC;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/adapter-core/index.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.DEFAULT_AUTH_TOKEN_COOKIES_MAX_AGE = exports.AUTH_KEY_PREFIX = exports.createKeysForAuthStorage = exports.validateState = exports.generateCodeVerifier = exports.getRedirectUrl = exports.generateState = exports.createUserPoolsTokenProvider = exports.createAWSCredentialsAndIdentityIdProvider = exports.createKeyValueStorageFromCookieStorageAdapter = exports.runWithAmplifyServerContext = void 0;\nvar runWithAmplifyServerContext_1 = require(\"./runWithAmplifyServerContext\");\nObject.defineProperty(exports, \"runWithAmplifyServerContext\", { enumerable: true, get: function () { return runWithAmplifyServerContext_1.runWithAmplifyServerContext; } });\nvar storageFactories_1 = require(\"./storageFactories\");\nObject.defineProperty(exports, \"createKeyValueStorageFromCookieStorageAdapter\", { enumerable: true, get: function () { return storageFactories_1.createKeyValueStorageFromCookieStorageAdapter; } });\nvar cognito_1 = require(\"./authProvidersFactories/cognito\");\nObject.defineProperty(exports, \"createAWSCredentialsAndIdentityIdProvider\", { enumerable: true, get: function () { return cognito_1.createAWSCredentialsAndIdentityIdProvider; } });\nObject.defineProperty(exports, \"createUserPoolsTokenProvider\", { enumerable: true, get: function () { return cognito_1.createUserPoolsTokenProvider; } });\nvar cognito_2 = require(\"@aws-amplify/auth/cognito\");\nObject.defineProperty(exports, \"generateState\", { enumerable: true, get: function () { return cognito_2.generateState; } });\nObject.defineProperty(exports, \"getRedirectUrl\", { enumerable: true, get: function () { return cognito_2.getRedirectUrl; } });\nObject.defineProperty(exports, \"generateCodeVerifier\", { enumerable: true, get: function () { return cognito_2.generateCodeVerifier; } });\nObject.defineProperty(exports, \"validateState\", { enumerable: true, get: function () { return cognito_2.validateState; } });\nObject.defineProperty(exports, \"createKeysForAuthStorage\", { enumerable: true, get: function () { return cognito_2.createKeysForAuthStorage; } });\nObject.defineProperty(exports, \"AUTH_KEY_PREFIX\", { enumerable: true, get: function () { return cognito_2.AUTH_KEY_PREFIX; } });\nvar constants_1 = require(\"./constants\");\nObject.defineProperty(exports, \"DEFAULT_AUTH_TOKEN_COOKIES_MAX_AGE\", { enumerable: true, get: function () { return constants_1.DEFAULT_AUTH_TOKEN_COOKIES_MAX_AGE; } });\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,kCAAkC,GAAG,OAAO,CAAC,eAAe,GAAG,OAAO,CAAC,wBAAwB,GAAG,OAAO,CAAC,aAAa,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,cAAc,GAAG,OAAO,CAAC,aAAa,GAAG,OAAO,CAAC,4BAA4B,GAAG,OAAO,CAAC,yCAAyC,GAAG,OAAO,CAAC,6CAA6C,GAAG,OAAO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CAAC,OAAO,EAAE,sBAAsB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,SAAS,CAAC,oBAAoB,CAAC,EAAE,EAAE,CAAC;AACzI,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,eAAe,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,SAAS,CAAC,aAAa,CAAC,EAAE,EAAE,CAAC;AAC3H,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,0BAA0B,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,SAAS,CAAC,wBAAwB,CAAC,EAAE,EAAE,CAAC;AACjJ,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,iBAAiB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,SAAS,CAAC,eAAe,CAAC,EAAE,EAAE,CAAC;AAC/H,IAAI,WAAW,GAAG,OAAO,CAAC,aAAa,CAAC;AACxC,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,oCAAoC,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,WAAW,CAAC,kCAAkC,CAAC,EAAE,EAAE,CAAC;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"internals.js","sources":["../../../src/adapter-core/internals.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.decodeJWT = exports.urlSafeEncode = exports.assertTokenProviderConfig = exports.assertOAuthConfig = exports.getAmplifyServerContext = exports.AmplifyServerContextError = void 0;\nvar adapter_core_1 = require(\"@aws-amplify/core/internals/adapter-core\");\nObject.defineProperty(exports, \"AmplifyServerContextError\", { enumerable: true, get: function () { return adapter_core_1.AmplifyServerContextError; } });\nObject.defineProperty(exports, \"getAmplifyServerContext\", { enumerable: true, get: function () { return adapter_core_1.getAmplifyServerContext; } });\nvar utils_1 = require(\"@aws-amplify/core/internals/utils\");\nObject.defineProperty(exports, \"assertOAuthConfig\", { enumerable: true, get: function () { return utils_1.assertOAuthConfig; } });\nObject.defineProperty(exports, \"assertTokenProviderConfig\", { enumerable: true, get: function () { return utils_1.assertTokenProviderConfig; } });\nObject.defineProperty(exports, \"urlSafeEncode\", { enumerable: true, get: function () { return utils_1.urlSafeEncode; } });\nObject.defineProperty(exports, \"decodeJWT\", { enumerable: true, get: function () { return utils_1.decodeJWT; } });\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,SAAS,GAAG,OAAO,CAAC,aAAa,GAAG,OAAO,CAAC,yBAAyB,GAAG,OAAO,CAAC,iBAAiB,GAAG,OAAO,CAAC,uBAAuB,GAAG,OAAO,CAAC,yBAAyB,GAAG,KAAK,CAAC,CAAC;AACzL,IAAI,cAAc,GAAG,OAAO,CAAC,0CAA0C,CAAC,CAAC;AACzE,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,2BAA2B,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,cAAc,CAAC,yBAAyB,CAAC,EAAE,EAAE,CAAC,CAAC;AACzJ,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,yBAAyB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,cAAc,CAAC,uBAAuB,CAAC,EAAE,EAAE,CAAC,CAAC;AACrJ,IAAI,OAAO,GAAG,OAAO,CAAC,mCAAmC,CAAC,CAAC;AAC3D,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,mBAAmB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,OAAO,CAAC,iBAAiB,CAAC,EAAE,EAAE,CAAC,CAAC;AAClI,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,2BAA2B,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,OAAO,CAAC,yBAAyB,CAAC,EAAE,EAAE,CAAC,CAAC;AAClJ,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,eAAe,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,OAAO,CAAC,aAAa,CAAC,EAAE,EAAE,CAAC,CAAC;AAC1H,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,WAAW,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,OAAO,CAAC,SAAS,CAAC,EAAE,EAAE,CAAC;;"}
1
+ {"version":3,"file":"internals.js","sources":["../../../src/adapter-core/internals.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.decodeJWT = exports.urlSafeEncode = exports.assertTokenProviderConfig = exports.assertOAuthConfig = exports.getAmplifyServerContext = exports.AmplifyServerContextError = void 0;\nvar adapter_core_1 = require(\"@aws-amplify/core/internals/adapter-core\");\nObject.defineProperty(exports, \"AmplifyServerContextError\", { enumerable: true, get: function () { return adapter_core_1.AmplifyServerContextError; } });\nObject.defineProperty(exports, \"getAmplifyServerContext\", { enumerable: true, get: function () { return adapter_core_1.getAmplifyServerContext; } });\nvar utils_1 = require(\"@aws-amplify/core/internals/utils\");\nObject.defineProperty(exports, \"assertOAuthConfig\", { enumerable: true, get: function () { return utils_1.assertOAuthConfig; } });\nObject.defineProperty(exports, \"assertTokenProviderConfig\", { enumerable: true, get: function () { return utils_1.assertTokenProviderConfig; } });\nObject.defineProperty(exports, \"urlSafeEncode\", { enumerable: true, get: function () { return utils_1.urlSafeEncode; } });\nObject.defineProperty(exports, \"decodeJWT\", { enumerable: true, get: function () { return utils_1.decodeJWT; } });\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,SAAS,GAAG,OAAO,CAAC,aAAa,GAAG,OAAO,CAAC,yBAAyB,GAAG,OAAO,CAAC,iBAAiB,GAAG,OAAO,CAAC,uBAAuB,GAAG,OAAO,CAAC,yBAAyB,GAAG,MAAM;AACxL,IAAI,cAAc,GAAG,OAAO,CAAC,0CAA0C,CAAC;AACxE,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,2BAA2B,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,cAAc,CAAC,yBAAyB,CAAC,EAAE,EAAE,CAAC;AACxJ,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,yBAAyB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,cAAc,CAAC,uBAAuB,CAAC,EAAE,EAAE,CAAC;AACpJ,IAAI,OAAO,GAAG,OAAO,CAAC,mCAAmC,CAAC;AAC1D,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,mBAAmB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,OAAO,CAAC,iBAAiB,CAAC,EAAE,EAAE,CAAC;AACjI,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,2BAA2B,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,OAAO,CAAC,yBAAyB,CAAC,EAAE,EAAE,CAAC;AACjJ,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,eAAe,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,OAAO,CAAC,aAAa,CAAC,EAAE,EAAE,CAAC;AACzH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,WAAW,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,OAAO,CAAC,SAAS,CAAC,EAAE,EAAE,CAAC;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"runWithAmplifyServerContext.js","sources":["../../../src/adapter-core/runWithAmplifyServerContext.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.runWithAmplifyServerContext = void 0;\nconst adapter_core_1 = require(\"@aws-amplify/core/internals/adapter-core\");\n/**\n * The low level function that supports framework specific helpers.\n * It creates an Amplify server context based on the input and runs the operation\n * with injecting the context, and finally returns the result of the operation.\n *\n * @param amplifyConfig The Amplify resource config.\n * @param libraryOptions The Amplify library options.\n * @param operation The operation to run with the server context created from\n * `amplifyConfig` and `libraryOptions`.\n * @returns The result returned by the `operation`.\n */\nconst runWithAmplifyServerContext = async (amplifyConfig, libraryOptions, operation) => {\n const contextSpec = (0, adapter_core_1.createAmplifyServerContext)(amplifyConfig, libraryOptions);\n // run the operation with injecting the context\n try {\n const result = await operation(contextSpec);\n return result;\n }\n finally {\n // ensures destroy the context regardless whether the operation succeeded or failed\n (0, adapter_core_1.destroyAmplifyServerContext)(contextSpec);\n }\n};\nexports.runWithAmplifyServerContext = runWithAmplifyServerContext;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,2BAA2B,GAAG,KAAK,CAAC,CAAC;AAC7C,MAAM,cAAc,GAAG,OAAO,CAAC,0CAA0C,CAAC,CAAC;AAC3E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,2BAA2B,GAAG,OAAO,aAAa,EAAE,cAAc,EAAE,SAAS,KAAK;AACxF,IAAI,MAAM,WAAW,GAAG,IAAI,cAAc,CAAC,0BAA0B,EAAE,aAAa,EAAE,cAAc,CAAC,CAAC;AACtG;AACA,IAAI,IAAI;AACR,QAAQ,MAAM,MAAM,GAAG,MAAM,SAAS,CAAC,WAAW,CAAC,CAAC;AACpD,QAAQ,OAAO,MAAM,CAAC;AACtB,KAAK;AACL,YAAY;AACZ;AACA,QAAQ,IAAI,cAAc,CAAC,2BAA2B,EAAE,WAAW,CAAC,CAAC;AACrE,KAAK;AACL,CAAC,CAAC;AACF,OAAO,CAAC,2BAA2B,GAAG,2BAA2B;;"}
1
+ {"version":3,"file":"runWithAmplifyServerContext.js","sources":["../../../src/adapter-core/runWithAmplifyServerContext.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.runWithAmplifyServerContext = void 0;\nconst adapter_core_1 = require(\"@aws-amplify/core/internals/adapter-core\");\n/**\n * The low level function that supports framework specific helpers.\n * It creates an Amplify server context based on the input and runs the operation\n * with injecting the context, and finally returns the result of the operation.\n *\n * @param amplifyConfig The Amplify resource config.\n * @param libraryOptions The Amplify library options.\n * @param operation The operation to run with the server context created from\n * `amplifyConfig` and `libraryOptions`.\n * @returns The result returned by the `operation`.\n */\nconst runWithAmplifyServerContext = async (amplifyConfig, libraryOptions, operation) => {\n const contextSpec = (0, adapter_core_1.createAmplifyServerContext)(amplifyConfig, libraryOptions);\n // run the operation with injecting the context\n try {\n const result = await operation(contextSpec);\n return result;\n }\n finally {\n // ensures destroy the context regardless whether the operation succeeded or failed\n (0, adapter_core_1.destroyAmplifyServerContext)(contextSpec);\n }\n};\nexports.runWithAmplifyServerContext = runWithAmplifyServerContext;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,2BAA2B,GAAG,MAAM;AAC5C,MAAM,cAAc,GAAG,OAAO,CAAC,0CAA0C,CAAC;AAC1E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,2BAA2B,GAAG,OAAO,aAAa,EAAE,cAAc,EAAE,SAAS,KAAK;AACxF,IAAI,MAAM,WAAW,GAAG,IAAI,cAAc,CAAC,0BAA0B,EAAE,aAAa,EAAE,cAAc,CAAC;AACrG;AACA,IAAI,IAAI;AACR,QAAQ,MAAM,MAAM,GAAG,MAAM,SAAS,CAAC,WAAW,CAAC;AACnD,QAAQ,OAAO,MAAM;AACrB;AACA,YAAY;AACZ;AACA,QAAQ,IAAI,cAAc,CAAC,2BAA2B,EAAE,WAAW,CAAC;AACpE;AACA,CAAC;AACD,OAAO,CAAC,2BAA2B,GAAG,2BAA2B;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"createKeyValueStorageFromCookieStorageAdapter.js","sources":["../../../../src/adapter-core/storageFactories/createKeyValueStorageFromCookieStorageAdapter.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.createKeyValueStorageFromCookieStorageAdapter = exports.defaultSetCookieOptions = void 0;\nconst constants_1 = require(\"../constants\");\nexports.defaultSetCookieOptions = {\n // TODO: allow configure with a public interface\n sameSite: 'lax',\n secure: true,\n path: '/',\n};\n/**\n * Creates a Key Value storage interface using the `cookieStorageAdapter` as the\n * underlying storage.\n * @param cookieStorageAdapter An implementation of the `Adapter` in {@link CookieStorage}.\n * @returns An object that implements {@link KeyValueStorageInterface}.\n */\nconst createKeyValueStorageFromCookieStorageAdapter = (cookieStorageAdapter, validator, setCookieOptions = {}) => {\n return {\n setItem(key, value) {\n // Delete the cookie item first then set it. This results:\n // SetCookie: key=;expires=1970-01-01;(path='current-path') <- remove path'ed cookies\n // SetCookie: key=value;expires=Date.now() + 365 days;path=/;secure=true\n cookieStorageAdapter.delete(key);\n const mergedCookieOptions = {\n ...exports.defaultSetCookieOptions,\n ...setCookieOptions,\n };\n // when expires and maxAge both are not specified, we set a default maxAge\n if (!mergedCookieOptions.expires && !mergedCookieOptions.maxAge) {\n mergedCookieOptions.maxAge = constants_1.DEFAULT_AUTH_TOKEN_COOKIES_MAX_AGE;\n }\n cookieStorageAdapter.set(key, value, mergedCookieOptions);\n return Promise.resolve();\n },\n async getItem(key) {\n const cookie = cookieStorageAdapter.get(key);\n const value = cookie?.value ?? null;\n if (value && validator?.getItem) {\n const isValid = await validator.getItem(key, value);\n if (!isValid)\n return null;\n }\n return value;\n },\n removeItem(key) {\n cookieStorageAdapter.delete(key);\n return Promise.resolve();\n },\n clear() {\n // TODO(HuiSF): follow up the implementation.\n throw new Error('This method has not implemented.');\n },\n };\n};\nexports.createKeyValueStorageFromCookieStorageAdapter = createKeyValueStorageFromCookieStorageAdapter;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,6CAA6C,GAAG,OAAO,CAAC,uBAAuB,GAAG,KAAK,CAAC,CAAC;AACjG,MAAM,WAAW,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;AAC5C,OAAO,CAAC,uBAAuB,GAAG;AAClC;AACA,IAAI,QAAQ,EAAE,KAAK;AACnB,IAAI,MAAM,EAAE,IAAI;AAChB,IAAI,IAAI,EAAE,GAAG;AACb,CAAC,CAAC;AACF;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,6CAA6C,GAAG,CAAC,oBAAoB,EAAE,SAAS,EAAE,gBAAg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AAY,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;AAChE,SAAS;AACT,KAAK,CAAC;AACN,CAAC,CAAC;AACF,OAAO,CAAC,6CAA6C,GAAG,6CAA6C;;"}
1
+ {"version":3,"file":"createKeyValueStorageFromCookieStorageAdapter.js","sources":["../../../../src/adapter-core/storageFactories/createKeyValueStorageFromCookieStorageAdapter.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.createKeyValueStorageFromCookieStorageAdapter = exports.defaultSetCookieOptions = void 0;\nconst constants_1 = require(\"../constants\");\nexports.defaultSetCookieOptions = {\n // TODO: allow configure with a public interface\n sameSite: 'lax',\n secure: true,\n path: '/',\n};\n/**\n * Creates a Key Value storage interface using the `cookieStorageAdapter` as the\n * underlying storage.\n * @param cookieStorageAdapter An implementation of the `Adapter` in {@link CookieStorage}.\n * @returns An object that implements {@link KeyValueStorageInterface}.\n */\nconst createKeyValueStorageFromCookieStorageAdapter = (cookieStorageAdapter, validator, setCookieOptions = {}) => {\n return {\n setItem(key, value) {\n // Delete the cookie item first then set it. This results:\n // SetCookie: key=;expires=1970-01-01;(path='current-path') <- remove path'ed cookies\n // SetCookie: key=value;expires=Date.now() + 365 days;path=/;secure=true\n cookieStorageAdapter.delete(key);\n const mergedCookieOptions = {\n ...exports.defaultSetCookieOptions,\n ...setCookieOptions,\n };\n // when expires and maxAge both are not specified, we set a default maxAge\n if (!mergedCookieOptions.expires && !mergedCookieOptions.maxAge) {\n mergedCookieOptions.maxAge = constants_1.DEFAULT_AUTH_TOKEN_COOKIES_MAX_AGE;\n }\n cookieStorageAdapter.set(key, value, mergedCookieOptions);\n return Promise.resolve();\n },\n async getItem(key) {\n const cookie = cookieStorageAdapter.get(key);\n const value = cookie?.value ?? null;\n if (value && validator?.getItem) {\n const isValid = await validator.getItem(key, value);\n if (!isValid)\n return null;\n }\n return value;\n },\n removeItem(key) {\n cookieStorageAdapter.delete(key);\n return Promise.resolve();\n },\n clear() {\n // TODO(HuiSF): follow up the implementation.\n throw new Error('This method has not implemented.');\n },\n };\n};\nexports.createKeyValueStorageFromCookieStorageAdapter = createKeyValueStorageFromCookieStorageAdapter;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,6CAA6C,GAAG,OAAO,CAAC,uBAAuB,GAAG,MAAM;AAChG,MAAM,WAAW,GAAG,OAAO,CAAC,cAAc,CAAC;AAC3C,OAAO,CAAC,uBAAuB,GAAG;AAClC;AACA,IAAI,QAAQ,EAAE,KAAK;AACnB,IAAI,MAAM,EAAE,IAAI;AAChB,IAAI,IAAI,EAAE,GAAG;AACb,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,6CAA6C,GAAG,CAAC,oBAAoB,EAAE,SAAS,EAAE,gBAAgB,GAAG,EAAE,KAAK;AAClH,IAAI,OAAO;AACX,QAAQ,OAAO,CAAC,GAAG,EAAE,KAAK,EAAE;AAC5B;AACA;AACA;AACA,YAAY,oBAAoB,CAAC,MAAM,CAAC,GAAG,CAAC;AAC5C,YAAY,MAAM,mBAAmB,GAAG;AACxC,gBAAgB,GAAG,OAAO,CAAC,uBAAuB;AAClD,gBAAgB,GAAG,gBAAgB;AACnC,aAAa;AACb;AACA,YAAY,IAAI,CAAC,mBAAmB,CAAC,OAAO,IAAI,CAAC,mBAAmB,CAAC,MAAM,EAAE;AAC7E,gBAAgB,mBAAmB,CAAC,MAAM,GAAG,WAAW,CAAC,kCAAkC;AAC3F;AACA,YAAY,oBAAoB,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,EAAE,mBAAmB,CAAC;AACrE,YAAY,OAAO,OAAO,CAAC,OAAO,EAAE;AACpC,SAAS;AACT,QAAQ,MAAM,OAAO,CAAC,GAAG,EAAE;AAC3B,YAAY,MAAM,MAAM,GAAG,oBAAoB,CAAC,GAAG,CAAC,GAAG,CAAC;AACxD,YAAY,MAAM,KAAK,GAAG,MAAM,EAAE,KAAK,IAAI,IAAI;AAC/C,YAAY,IAAI,KAAK,IAAI,SAAS,EAAE,OAAO,EAAE;AAC7C,gBAAgB,MAAM,OAAO,GAAG,MAAM,SAAS,CAAC,OAAO,CAAC,GAAG,EAAE,KAAK,CAAC;AACnE,gBAAgB,IAAI,CAAC,OAAO;AAC5B,oBAAoB,OAAO,IAAI;AAC/B;AACA,YAAY,OAAO,KAAK;AACxB,SAAS;AACT,QAAQ,UAAU,CAAC,GAAG,EAAE;AACxB,YAAY,oBAAoB,CAAC,MAAM,CAAC,GAAG,CAAC;AAC5C,YAAY,OAAO,OAAO,CAAC,OAAO,EAAE;AACpC,SAAS;AACT,QAAQ,KAAK,GAAG;AAChB;AACA,YAAY,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC;AAC/D,SAAS;AACT,KAAK;AACL,CAAC;AACD,OAAO,CAAC,6CAA6C,GAAG,6CAA6C;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../src/adapter-core/storageFactories/index.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.createKeyValueStorageFromCookieStorageAdapter = void 0;\nvar createKeyValueStorageFromCookieStorageAdapter_1 = require(\"./createKeyValueStorageFromCookieStorageAdapter\");\nObject.defineProperty(exports, \"createKeyValueStorageFromCookieStorageAdapter\", { enumerable: true, get: function () { return createKeyValueStorageFromCookieStorageAdapter_1.createKeyValueStorageFromCookieStorageAdapter; } });\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,6CAA6C,GAAG,KAAK,CAAC,CAAC;AAC/D,IAAI,+CAA+C,GAAG,OAAO,CAAC,iDAAiD,CAAC,CAAC;AACjH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,+CAA+C,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,+CAA+C,CAAC,6CAA6C,CAAC,EAAE,EAAE,CAAC;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../src/adapter-core/storageFactories/index.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.createKeyValueStorageFromCookieStorageAdapter = void 0;\nvar createKeyValueStorageFromCookieStorageAdapter_1 = require(\"./createKeyValueStorageFromCookieStorageAdapter\");\nObject.defineProperty(exports, \"createKeyValueStorageFromCookieStorageAdapter\", { enumerable: true, get: function () { return createKeyValueStorageFromCookieStorageAdapter_1.createKeyValueStorageFromCookieStorageAdapter; } });\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,6CAA6C,GAAG,MAAM;AAC9D,IAAI,+CAA+C,GAAG,OAAO,CAAC,iDAAiD,CAAC;AAChH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,+CAA+C,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,+CAA+C,CAAC,6CAA6C,CAAC,EAAE,EAAE,CAAC;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/analytics/index.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 });\nconst tslib_1 = require(\"tslib\");\n/*\nThis file maps exports from `aws-amplify/analytics`. It provides access to the default Analytics provider and category\nutils.\n*/\ntslib_1.__exportStar(require(\"@aws-amplify/analytics\"), exports);\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;AACjC;AACA;AACA;AACA;AACA,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,wBAAwB,CAAC,EAAE,OAAO,CAAC;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/analytics/index.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 });\nconst tslib_1 = require(\"tslib\");\n/*\nThis file maps exports from `aws-amplify/analytics`. It provides access to the default Analytics provider and category\nutils.\n*/\ntslib_1.__exportStar(require(\"@aws-amplify/analytics\"), exports);\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;AAChC;AACA;AACA;AACA;AACA,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,wBAAwB,CAAC,EAAE,OAAO,CAAC;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../src/analytics/kinesis/index.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 });\nconst tslib_1 = require(\"tslib\");\ntslib_1.__exportStar(require(\"@aws-amplify/analytics/kinesis\"), exports);\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;AACjC,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,gCAAgC,CAAC,EAAE,OAAO,CAAC;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../src/analytics/kinesis/index.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 });\nconst tslib_1 = require(\"tslib\");\ntslib_1.__exportStar(require(\"@aws-amplify/analytics/kinesis\"), exports);\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;AAChC,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,gCAAgC,CAAC,EAAE,OAAO,CAAC;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../src/analytics/kinesis-firehose/index.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 });\nconst tslib_1 = require(\"tslib\");\ntslib_1.__exportStar(require(\"@aws-amplify/analytics/kinesis-firehose\"), exports);\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;AACjC,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,yCAAyC,CAAC,EAAE,OAAO,CAAC;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../src/analytics/kinesis-firehose/index.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 });\nconst tslib_1 = require(\"tslib\");\ntslib_1.__exportStar(require(\"@aws-amplify/analytics/kinesis-firehose\"), exports);\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;AAChC,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,yCAAyC,CAAC,EAAE,OAAO,CAAC;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../src/analytics/personalize/index.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 });\nconst tslib_1 = require(\"tslib\");\ntslib_1.__exportStar(require(\"@aws-amplify/analytics/personalize\"), exports);\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;AACjC,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,oCAAoC,CAAC,EAAE,OAAO,CAAC;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../src/analytics/personalize/index.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 });\nconst tslib_1 = require(\"tslib\");\ntslib_1.__exportStar(require(\"@aws-amplify/analytics/personalize\"), exports);\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;AAChC,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,oCAAoC,CAAC,EAAE,OAAO,CAAC;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../src/analytics/pinpoint/index.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 });\nconst tslib_1 = require(\"tslib\");\n/*\nThis file maps exports from `aws-amplify/analytics/pinpoint`. It provides access to Pinpoint APIs.\n*/\ntslib_1.__exportStar(require(\"@aws-amplify/analytics/pinpoint\"), exports);\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;AACjC;AACA;AACA;AACA,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,iCAAiC,CAAC,EAAE,OAAO,CAAC;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../src/analytics/pinpoint/index.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 });\nconst tslib_1 = require(\"tslib\");\n/*\nThis file maps exports from `aws-amplify/analytics/pinpoint`. It provides access to Pinpoint APIs.\n*/\ntslib_1.__exportStar(require(\"@aws-amplify/analytics/pinpoint\"), exports);\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;AAChC;AACA;AACA;AACA,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,iCAAiC,CAAC,EAAE,OAAO,CAAC;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/api/index.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 });\nconst tslib_1 = require(\"tslib\");\n/*\nThis file maps exports from `aws-amplify/api`. It provides access to the default API provider and category utils.\n*/\ntslib_1.__exportStar(require(\"@aws-amplify/api\"), exports);\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;AACjC;AACA;AACA;AACA,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,kBAAkB,CAAC,EAAE,OAAO,CAAC;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/api/index.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 });\nconst tslib_1 = require(\"tslib\");\n/*\nThis file maps exports from `aws-amplify/api`. It provides access to the default API provider and category utils.\n*/\ntslib_1.__exportStar(require(\"@aws-amplify/api\"), exports);\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;AAChC;AACA;AACA;AACA,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,kBAAkB,CAAC,EAAE,OAAO,CAAC;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"internals.js","sources":["../../../src/api/internals.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.generateClientWithAmplifyInstance = void 0;\nvar internals_1 = require(\"@aws-amplify/api/internals\");\nObject.defineProperty(exports, \"generateClientWithAmplifyInstance\", { enumerable: true, get: function () { return internals_1.generateClientWithAmplifyInstance; } });\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,iCAAiC,GAAG,KAAK,CAAC,CAAC;AACnD,IAAI,WAAW,GAAG,OAAO,CAAC,4BAA4B,CAAC,CAAC;AACxD,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,mCAAmC,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,WAAW,CAAC,iCAAiC,CAAC,EAAE,EAAE,CAAC;;"}
1
+ {"version":3,"file":"internals.js","sources":["../../../src/api/internals.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.generateClientWithAmplifyInstance = void 0;\nvar internals_1 = require(\"@aws-amplify/api/internals\");\nObject.defineProperty(exports, \"generateClientWithAmplifyInstance\", { enumerable: true, get: function () { return internals_1.generateClientWithAmplifyInstance; } });\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,iCAAiC,GAAG,MAAM;AAClD,IAAI,WAAW,GAAG,OAAO,CAAC,4BAA4B,CAAC;AACvD,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,mCAAmC,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,WAAW,CAAC,iCAAiC,CAAC,EAAE,EAAE,CAAC;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"server.js","sources":["../../../src/api/server.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 });\nconst tslib_1 = require(\"tslib\");\ntslib_1.__exportStar(require(\"@aws-amplify/api/server\"), exports);\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;AACjC,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,yBAAyB,CAAC,EAAE,OAAO,CAAC;;"}
1
+ {"version":3,"file":"server.js","sources":["../../../src/api/server.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 });\nconst tslib_1 = require(\"tslib\");\ntslib_1.__exportStar(require(\"@aws-amplify/api/server\"), exports);\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;AAChC,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,yBAAyB,CAAC,EAAE,OAAO,CAAC;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../src/auth/cognito/index.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 });\nconst tslib_1 = require(\"tslib\");\n/*\nThis file maps exports from `aws-amplify/auth/cognito`. It provides access to Cognito APIs.\n*/\ntslib_1.__exportStar(require(\"@aws-amplify/auth/cognito\"), exports);\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;AACjC;AACA;AACA;AACA,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,2BAA2B,CAAC,EAAE,OAAO,CAAC;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../src/auth/cognito/index.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 });\nconst tslib_1 = require(\"tslib\");\n/*\nThis file maps exports from `aws-amplify/auth/cognito`. It provides access to Cognito APIs.\n*/\ntslib_1.__exportStar(require(\"@aws-amplify/auth/cognito\"), exports);\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;AAChC;AACA;AACA;AACA,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,2BAA2B,CAAC,EAAE,OAAO,CAAC;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../src/auth/cognito/server/index.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 });\nconst tslib_1 = require(\"tslib\");\n/*\nThis file maps exports from `aws-amplify/auth/cognito/server`. It provides access to server-enabled Cognito APIs.\n*/\ntslib_1.__exportStar(require(\"@aws-amplify/auth/cognito/server\"), exports);\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;AACjC;AACA;AACA;AACA,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,kCAAkC,CAAC,EAAE,OAAO,CAAC;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../../src/auth/cognito/server/index.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 });\nconst tslib_1 = require(\"tslib\");\n/*\nThis file maps exports from `aws-amplify/auth/cognito/server`. It provides access to server-enabled Cognito APIs.\n*/\ntslib_1.__exportStar(require(\"@aws-amplify/auth/cognito/server\"), exports);\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;AAChC;AACA;AACA;AACA,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,kCAAkC,CAAC,EAAE,OAAO,CAAC;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"enableOAuthListener.js","sources":["../../../src/auth/enableOAuthListener.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 });\nrequire(\"@aws-amplify/auth/enable-oauth-listener\");\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,yCAAyC,CAAC;;"}
1
+ {"version":3,"file":"enableOAuthListener.js","sources":["../../../src/auth/enableOAuthListener.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 });\nrequire(\"@aws-amplify/auth/enable-oauth-listener\");\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,yCAAyC,CAAC;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/auth/index.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 });\nconst tslib_1 = require(\"tslib\");\n/*\nThis file maps exports from `aws-amplify/auth`. It provides access to the default Auth provider and category utils.\n*/\ntslib_1.__exportStar(require(\"@aws-amplify/auth\"), exports);\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;AACjC;AACA;AACA;AACA,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,mBAAmB,CAAC,EAAE,OAAO,CAAC;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/auth/index.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 });\nconst tslib_1 = require(\"tslib\");\n/*\nThis file maps exports from `aws-amplify/auth`. It provides access to the default Auth provider and category utils.\n*/\ntslib_1.__exportStar(require(\"@aws-amplify/auth\"), exports);\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;AAChC;AACA;AACA;AACA,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,mBAAmB,CAAC,EAAE,OAAO,CAAC;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"server.js","sources":["../../../src/auth/server.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 });\nconst tslib_1 = require(\"tslib\");\ntslib_1.__exportStar(require(\"@aws-amplify/auth/server\"), exports);\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;AACjC,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,0BAA0B,CAAC,EAAE,OAAO,CAAC;;"}
1
+ {"version":3,"file":"server.js","sources":["../../../src/auth/server.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 });\nconst tslib_1 = require(\"tslib\");\ntslib_1.__exportStar(require(\"@aws-amplify/auth/server\"), exports);\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;AAChC,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,0BAA0B,CAAC,EAAE,OAAO,CAAC;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/datastore/index.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 });\nconst tslib_1 = require(\"tslib\");\n/*\nThis file maps exports from `aws-amplify/datastore`. It provides access to DataStore APIs and category utils.\n*/\ntslib_1.__exportStar(require(\"@aws-amplify/datastore\"), exports);\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;AACjC;AACA;AACA;AACA,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,wBAAwB,CAAC,EAAE,OAAO,CAAC;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/datastore/index.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 });\nconst tslib_1 = require(\"tslib\");\n/*\nThis file maps exports from `aws-amplify/datastore`. It provides access to DataStore APIs and category utils.\n*/\ntslib_1.__exportStar(require(\"@aws-amplify/datastore\"), exports);\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;AAChC;AACA;AACA;AACA,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,wBAAwB,CAAC,EAAE,OAAO,CAAC;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/in-app-messaging/index.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 });\nconst tslib_1 = require(\"tslib\");\n/*\nThis file maps exports from `aws-amplify/in-app-messaging`. It provides access to the InAppMessaging sub-category.\n*/\ntslib_1.__exportStar(require(\"@aws-amplify/notifications/in-app-messaging\"), exports);\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;AACjC;AACA;AACA;AACA,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,6CAA6C,CAAC,EAAE,OAAO,CAAC;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/in-app-messaging/index.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 });\nconst tslib_1 = require(\"tslib\");\n/*\nThis file maps exports from `aws-amplify/in-app-messaging`. It provides access to the InAppMessaging sub-category.\n*/\ntslib_1.__exportStar(require(\"@aws-amplify/notifications/in-app-messaging\"), exports);\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;AAChC;AACA;AACA;AACA,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,6CAA6C,CAAC,EAAE,OAAO,CAAC;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../src/in-app-messaging/pinpoint/index.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 });\nconst tslib_1 = require(\"tslib\");\n/*\nThis file maps exports from `aws-amplify/in-app-messaging/pinpoint`.\nIt provides access to the Pinpoint provider of the InAppMessaging sub-category.\n*/\ntslib_1.__exportStar(require(\"@aws-amplify/notifications/in-app-messaging/pinpoint\"), exports);\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;AACjC;AACA;AACA;AACA;AACA,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,sDAAsD,CAAC,EAAE,OAAO,CAAC;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../src/in-app-messaging/pinpoint/index.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 });\nconst tslib_1 = require(\"tslib\");\n/*\nThis file maps exports from `aws-amplify/in-app-messaging/pinpoint`.\nIt provides access to the Pinpoint provider of the InAppMessaging sub-category.\n*/\ntslib_1.__exportStar(require(\"@aws-amplify/notifications/in-app-messaging/pinpoint\"), exports);\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;AAChC;AACA;AACA;AACA;AACA,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,sDAAsD,CAAC,EAAE,OAAO,CAAC;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../src/index.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.Amplify = void 0;\n/*\nThis file maps top-level exports from `aws-amplify`.\n*/\nvar initSingleton_1 = require(\"./initSingleton\");\nObject.defineProperty(exports, \"Amplify\", { enumerable: true, get: function () { return initSingleton_1.DefaultAmplify; } });\n"],"names":[],"mappings":";;AACA;AACA;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;AACA;AACA,IAAI,eAAe,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;AACjD,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,SAAS,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,eAAe,CAAC,cAAc,CAAC,EAAE,EAAE,CAAC;;"}
1
+ {"version":3,"file":"index.js","sources":["../../src/index.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.Amplify = void 0;\n/*\nThis file maps top-level exports from `aws-amplify`.\n*/\nvar initSingleton_1 = require(\"./initSingleton\");\nObject.defineProperty(exports, \"Amplify\", { enumerable: true, get: function () { return initSingleton_1.DefaultAmplify; } });\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,OAAO,GAAG,MAAM;AACxB;AACA;AACA;AACA,IAAI,eAAe,GAAG,OAAO,CAAC,iBAAiB,CAAC;AAChD,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,SAAS,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,eAAe,CAAC,cAAc,CAAC,EAAE,EAAE,CAAC;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"initSingleton.js","sources":["../../src/initSingleton.ts"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.DefaultAmplify = void 0;\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nconst core_1 = require(\"@aws-amplify/core\");\nconst utils_1 = require(\"@aws-amplify/core/internals/utils\");\nconst cognito_1 = require(\"./auth/cognito\");\nexports.DefaultAmplify = {\n /**\n * Configures Amplify with the {@link resourceConfig} and {@link libraryOptions}.\n *\n * @param resourceConfig The {@link ResourcesConfig} object that is typically imported from the\n * `amplifyconfiguration.json` file. It can also be an object literal created inline when calling `Amplify.configure`.\n * @param libraryOptions The {@link LibraryOptions} additional options for the library.\n *\n * @example\n * import config from './amplifyconfiguration.json';\n *\n * Amplify.configure(config);\n */\n configure(resourceConfig, libraryOptions) {\n const resolvedResourceConfig = (0, utils_1.parseAmplifyConfig)(resourceConfig);\n // If no Auth config is provided, no special handling will be required, configure as is.\n // Otherwise, we can assume an Auth config is provided from here on.\n if (!resolvedResourceConfig.Auth) {\n core_1.Amplify.configure(resolvedResourceConfig, libraryOptions);\n return;\n }\n // If Auth options are provided, always just configure as is.\n // Otherwise, we can assume no Auth libraryOptions were provided from here on.\n if (libraryOptions?.Auth) {\n core_1.Amplify.configure(resolvedResourceConfig, libraryOptions);\n return;\n }\n // If no Auth libraryOptions were previously configured, then always add default providers.\n if (!core_1.Amplify.libraryOptions.Auth) {\n cognito_1.cognitoUserPoolsTokenProvider.setAuthConfig(resolvedResourceConfig.Auth);\n cognito_1.cognitoUserPoolsTokenProvider.setKeyValueStorage(\n // TODO: allow configure with a public interface\n libraryOptions?.ssr\n ? new core_1.CookieStorage({ sameSite: 'lax' })\n : core_1.defaultStorage);\n core_1.Amplify.configure(resolvedResourceConfig, {\n ...libraryOptions,\n Auth: {\n tokenProvider: cognito_1.cognitoUserPoolsTokenProvider,\n credentialsProvider: cognito_1.cognitoCredentialsProvider,\n },\n });\n return;\n }\n // At this point, Auth libraryOptions would have been previously configured and no overriding\n // Auth options were given, so we should preserve the currently configured Auth libraryOptions.\n if (libraryOptions) {\n // If ssr is provided through libraryOptions, we should respect the intentional reconfiguration.\n if (libraryOptions.ssr !== undefined) {\n cognito_1.cognitoUserPoolsTokenProvider.setKeyValueStorage(\n // TODO: allow configure with a public interface\n libraryOptions.ssr\n ? new core_1.CookieStorage({ sameSite: 'lax' })\n : core_1.defaultStorage);\n }\n core_1.Amplify.configure(resolvedResourceConfig, {\n Auth: core_1.Amplify.libraryOptions.Auth,\n ...libraryOptions,\n });\n return;\n }\n // Finally, if there were no libraryOptions given at all, we should simply not touch the currently\n // configured libraryOptions.\n core_1.Amplify.configure(resolvedResourceConfig);\n },\n /**\n * Returns the {@link ResourcesConfig} object passed in as the `resourceConfig` parameter when calling\n * `Amplify.configure`.\n *\n * @returns An {@link ResourcesConfig} object.\n */\n getConfig() {\n return core_1.Amplify.getConfig();\n },\n};\n"],"names":[],"mappings":";;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,cAAc,GAAG,KAAK,CAAC,CAAC;AAChC;AACA;AACA,MAAM,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;AAC5C,MAAM,OAAO,GAAG,OAAO,CAAC,mCAAmC,CAAC,CAAC;AAC7D,MAAM,SAAS,GAAG,OAAO,CAAC,gBAAg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T;AACA;AACA,QAAQ,IAAI,cAAc,EAAE;AAC5B;AACA,YAAY,IAAI,cAAc,CAAC,GAAG,KAAK,SAAS,EAAE;AAClD,gBAAgB,SAAS,CAAC,6BAA6B,CAAC,kBAAkB;AAC1E;AACA,gBAAgB,cAAc,CAAC,GAAG;AAClC,sBAAsB,IAAI,MAAM,CAAC,aAAa,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;AACnE,sBAAsB,MAAM,CAAC,cAAc,CAAC,CAAC;AAC7C,aAAa;AACb,YAAY,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,sBAAsB,EAAE;AAC7D,gBAAgB,IAAI,EAAE,MAAM,CAAC,OAAO,CAAC,cAAc,CAAC,IAAI;AACxD,gBAAgB,GAAG,cAAc;AACjC,aAAa,CAAC,CAAC;AACf,YAAY,OAAO;AACnB,SAAS;AACT;AACA;AACA,QAAQ,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,sBAAsB,CAAC,CAAC;AACzD,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,SAAS,GAAG;AAChB,QAAQ,OAAO,MAAM,CAAC,OAAO,CAAC,SAAS,EAAE,CAAC;AAC1C,KAAK;AACL,CAAC;;"}
1
+ {"version":3,"file":"initSingleton.js","sources":["../../src/initSingleton.ts"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.DefaultAmplify = void 0;\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nconst core_1 = require(\"@aws-amplify/core\");\nconst utils_1 = require(\"@aws-amplify/core/internals/utils\");\nconst cognito_1 = require(\"./auth/cognito\");\nexports.DefaultAmplify = {\n /**\n * Configures Amplify with the {@link resourceConfig} and {@link libraryOptions}.\n *\n * @param resourceConfig The {@link ResourcesConfig} object that is typically imported from the\n * `amplifyconfiguration.json` file. It can also be an object literal created inline when calling `Amplify.configure`.\n * @param libraryOptions The {@link LibraryOptions} additional options for the library.\n *\n * @example\n * import config from './amplifyconfiguration.json';\n *\n * Amplify.configure(config);\n */\n configure(resourceConfig, libraryOptions) {\n const resolvedResourceConfig = (0, utils_1.parseAmplifyConfig)(resourceConfig);\n // If no Auth config is provided, no special handling will be required, configure as is.\n // Otherwise, we can assume an Auth config is provided from here on.\n if (!resolvedResourceConfig.Auth) {\n core_1.Amplify.configure(resolvedResourceConfig, libraryOptions);\n return;\n }\n // If Auth options are provided, always just configure as is.\n // Otherwise, we can assume no Auth libraryOptions were provided from here on.\n if (libraryOptions?.Auth) {\n core_1.Amplify.configure(resolvedResourceConfig, libraryOptions);\n return;\n }\n // If no Auth libraryOptions were previously configured, then always add default providers.\n if (!core_1.Amplify.libraryOptions.Auth) {\n cognito_1.cognitoUserPoolsTokenProvider.setAuthConfig(resolvedResourceConfig.Auth);\n cognito_1.cognitoUserPoolsTokenProvider.setKeyValueStorage(\n // TODO: allow configure with a public interface\n libraryOptions?.ssr\n ? new core_1.CookieStorage({ sameSite: 'lax' })\n : core_1.defaultStorage);\n core_1.Amplify.configure(resolvedResourceConfig, {\n ...libraryOptions,\n Auth: {\n tokenProvider: cognito_1.cognitoUserPoolsTokenProvider,\n credentialsProvider: cognito_1.cognitoCredentialsProvider,\n },\n });\n return;\n }\n // At this point, Auth libraryOptions would have been previously configured and no overriding\n // Auth options were given, so we should preserve the currently configured Auth libraryOptions.\n if (libraryOptions) {\n // If ssr is provided through libraryOptions, we should respect the intentional reconfiguration.\n if (libraryOptions.ssr !== undefined) {\n cognito_1.cognitoUserPoolsTokenProvider.setKeyValueStorage(\n // TODO: allow configure with a public interface\n libraryOptions.ssr\n ? new core_1.CookieStorage({ sameSite: 'lax' })\n : core_1.defaultStorage);\n }\n core_1.Amplify.configure(resolvedResourceConfig, {\n Auth: core_1.Amplify.libraryOptions.Auth,\n ...libraryOptions,\n });\n return;\n }\n // Finally, if there were no libraryOptions given at all, we should simply not touch the currently\n // configured libraryOptions.\n core_1.Amplify.configure(resolvedResourceConfig);\n },\n /**\n * Returns the {@link ResourcesConfig} object passed in as the `resourceConfig` parameter when calling\n * `Amplify.configure`.\n *\n * @returns An {@link ResourcesConfig} object.\n */\n getConfig() {\n return core_1.Amplify.getConfig();\n },\n};\n"],"names":[],"mappings":";;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,cAAc,GAAG,MAAM;AAC/B;AACA;AACA,MAAM,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC;AAC3C,MAAM,OAAO,GAAG,OAAO,CAAC,mCAAmC,CAAC;AAC5D,MAAM,SAAS,GAAG,OAAO,CAAC,gBAAgB,CAAC;AAC3C,OAAO,CAAC,cAAc,GAAG;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,SAAS,CAAC,cAAc,EAAE,cAAc,EAAE;AAC9C,QAAQ,MAAM,sBAAsB,GAAG,IAAI,OAAO,CAAC,kBAAkB,EAAE,cAAc,CAAC;AACtF;AACA;AACA,QAAQ,IAAI,CAAC,sBAAsB,CAAC,IAAI,EAAE;AAC1C,YAAY,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,sBAAsB,EAAE,cAAc,CAAC;AAC5E,YAAY;AACZ;AACA;AACA;AACA,QAAQ,IAAI,cAAc,EAAE,IAAI,EAAE;AAClC,YAAY,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,sBAAsB,EAAE,cAAc,CAAC;AAC5E,YAAY;AACZ;AACA;AACA,QAAQ,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,cAAc,CAAC,IAAI,EAAE;AACjD,YAAY,SAAS,CAAC,6BAA6B,CAAC,aAAa,CAAC,sBAAsB,CAAC,IAAI,CAAC;AAC9F,YAAY,SAAS,CAAC,6BAA6B,CAAC,kBAAkB;AACtE;AACA,YAAY,cAAc,EAAE;AAC5B,kBAAkB,IAAI,MAAM,CAAC,aAAa,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE;AAC9D,kBAAkB,MAAM,CAAC,cAAc,CAAC;AACxC,YAAY,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,sBAAsB,EAAE;AAC7D,gBAAgB,GAAG,cAAc;AACjC,gBAAgB,IAAI,EAAE;AACtB,oBAAoB,aAAa,EAAE,SAAS,CAAC,6BAA6B;AAC1E,oBAAoB,mBAAmB,EAAE,SAAS,CAAC,0BAA0B;AAC7E,iBAAiB;AACjB,aAAa,CAAC;AACd,YAAY;AACZ;AACA;AACA;AACA,QAAQ,IAAI,cAAc,EAAE;AAC5B;AACA,YAAY,IAAI,cAAc,CAAC,GAAG,KAAK,SAAS,EAAE;AAClD,gBAAgB,SAAS,CAAC,6BAA6B,CAAC,kBAAkB;AAC1E;AACA,gBAAgB,cAAc,CAAC;AAC/B,sBAAsB,IAAI,MAAM,CAAC,aAAa,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE;AAClE,sBAAsB,MAAM,CAAC,cAAc,CAAC;AAC5C;AACA,YAAY,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,sBAAsB,EAAE;AAC7D,gBAAgB,IAAI,EAAE,MAAM,CAAC,OAAO,CAAC,cAAc,CAAC,IAAI;AACxD,gBAAgB,GAAG,cAAc;AACjC,aAAa,CAAC;AACd,YAAY;AACZ;AACA;AACA;AACA,QAAQ,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,sBAAsB,CAAC;AACxD,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,SAAS,GAAG;AAChB,QAAQ,OAAO,MAAM,CAAC,OAAO,CAAC,SAAS,EAAE;AACzC,KAAK;AACL,CAAC;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/push-notifications/index.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 });\nconst tslib_1 = require(\"tslib\");\n/*\nThis file maps exports from `aws-amplify/push-notifications`. It provides access to the Push Notifications sub-category.\n*/\ntslib_1.__exportStar(require(\"@aws-amplify/notifications/push-notifications\"), exports);\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;AACjC;AACA;AACA;AACA,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,+CAA+C,CAAC,EAAE,OAAO,CAAC;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/push-notifications/index.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 });\nconst tslib_1 = require(\"tslib\");\n/*\nThis file maps exports from `aws-amplify/push-notifications`. It provides access to the Push Notifications sub-category.\n*/\ntslib_1.__exportStar(require(\"@aws-amplify/notifications/push-notifications\"), exports);\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;AAChC;AACA;AACA;AACA,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,+CAA+C,CAAC,EAAE,OAAO,CAAC;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../src/push-notifications/pinpoint/index.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 });\nconst tslib_1 = require(\"tslib\");\n/*\nThis file maps exports from `aws-amplify/push-notifications/pinpoint`.\nIt provides access to the Pinpoint provider of the PushNotification sub-category.\n*/\ntslib_1.__exportStar(require(\"@aws-amplify/notifications/push-notifications/pinpoint\"), exports);\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;AACjC;AACA;AACA;AACA;AACA,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,wDAAwD,CAAC,EAAE,OAAO,CAAC;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../src/push-notifications/pinpoint/index.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 });\nconst tslib_1 = require(\"tslib\");\n/*\nThis file maps exports from `aws-amplify/push-notifications/pinpoint`.\nIt provides access to the Pinpoint provider of the PushNotification sub-category.\n*/\ntslib_1.__exportStar(require(\"@aws-amplify/notifications/push-notifications/pinpoint\"), exports);\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;AAChC;AACA;AACA;AACA;AACA,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,wDAAwD,CAAC,EAAE,OAAO,CAAC;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/storage/index.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 });\nconst tslib_1 = require(\"tslib\");\n/*\nThis file maps exports from `aws-amplify/storage`.\nIt provides access to the default Storage provider and category utils.\n*/\ntslib_1.__exportStar(require(\"@aws-amplify/storage\"), exports);\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;AACjC;AACA;AACA;AACA;AACA,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,sBAAsB,CAAC,EAAE,OAAO,CAAC;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/storage/index.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 });\nconst tslib_1 = require(\"tslib\");\n/*\nThis file maps exports from `aws-amplify/storage`.\nIt provides access to the default Storage provider and category utils.\n*/\ntslib_1.__exportStar(require(\"@aws-amplify/storage\"), exports);\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;AAChC;AACA;AACA;AACA;AACA,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,sBAAsB,CAAC,EAAE,OAAO,CAAC;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../src/storage/s3/index.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 });\nconst tslib_1 = require(\"tslib\");\n/*\nThis file maps exports from `aws-amplify/storage/s3`. It provides access to S3 APIs.\n*/\ntslib_1.__exportStar(require(\"@aws-amplify/storage/s3\"), exports);\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;AACjC;AACA;AACA;AACA,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,yBAAyB,CAAC,EAAE,OAAO,CAAC;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../src/storage/s3/index.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 });\nconst tslib_1 = require(\"tslib\");\n/*\nThis file maps exports from `aws-amplify/storage/s3`. It provides access to S3 APIs.\n*/\ntslib_1.__exportStar(require(\"@aws-amplify/storage/s3\"), exports);\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;AAChC;AACA;AACA;AACA,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,yBAAyB,CAAC,EAAE,OAAO,CAAC;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"server.js","sources":["../../../../src/storage/s3/server.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 });\nconst tslib_1 = require(\"tslib\");\n/*\nThis file maps exports from `aws-amplify/storage/s3/server`. It provides access to server context enabled S3 APIs.\n*/\ntslib_1.__exportStar(require(\"@aws-amplify/storage/s3/server\"), exports);\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;AACjC;AACA;AACA;AACA,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,gCAAgC,CAAC,EAAE,OAAO,CAAC;;"}
1
+ {"version":3,"file":"server.js","sources":["../../../../src/storage/s3/server.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 });\nconst tslib_1 = require(\"tslib\");\n/*\nThis file maps exports from `aws-amplify/storage/s3/server`. It provides access to server context enabled S3 APIs.\n*/\ntslib_1.__exportStar(require(\"@aws-amplify/storage/s3/server\"), exports);\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;AAChC;AACA;AACA;AACA,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,gCAAgC,CAAC,EAAE,OAAO,CAAC;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"server.js","sources":["../../../src/storage/server.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 });\nconst tslib_1 = require(\"tslib\");\n/*\nThis file maps exports from `aws-amplify/storage/server`.\nIt provides access to the default server context enabled Storage provider and category utils.\n*/\ntslib_1.__exportStar(require(\"@aws-amplify/storage/server\"), exports);\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;AACjC;AACA;AACA;AACA;AACA,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,6BAA6B,CAAC,EAAE,OAAO,CAAC;;"}
1
+ {"version":3,"file":"server.js","sources":["../../../src/storage/server.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 });\nconst tslib_1 = require(\"tslib\");\n/*\nThis file maps exports from `aws-amplify/storage/server`.\nIt provides access to the default server context enabled Storage provider and category utils.\n*/\ntslib_1.__exportStar(require(\"@aws-amplify/storage/server\"), exports);\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;AAChC;AACA;AACA;AACA;AACA,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,6BAA6B,CAAC,EAAE,OAAO,CAAC;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/utils/index.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.parseAmplifyConfig = exports.sharedInMemoryStorage = exports.sessionStorage = exports.defaultStorage = exports.CookieStorage = exports.ServiceWorker = exports.ConsoleLogger = exports.Cache = exports.I18n = exports.Hub = void 0;\n/*\nThis file maps exports from `aws-amplify/utils`.\n*/\nvar core_1 = require(\"@aws-amplify/core\");\nObject.defineProperty(exports, \"Hub\", { enumerable: true, get: function () { return core_1.Hub; } });\nObject.defineProperty(exports, \"I18n\", { enumerable: true, get: function () { return core_1.I18n; } });\nObject.defineProperty(exports, \"Cache\", { enumerable: true, get: function () { return core_1.Cache; } });\nObject.defineProperty(exports, \"ConsoleLogger\", { enumerable: true, get: function () { return core_1.ConsoleLogger; } });\nObject.defineProperty(exports, \"ServiceWorker\", { enumerable: true, get: function () { return core_1.ServiceWorker; } });\nObject.defineProperty(exports, \"CookieStorage\", { enumerable: true, get: function () { return core_1.CookieStorage; } });\nObject.defineProperty(exports, \"defaultStorage\", { enumerable: true, get: function () { return core_1.defaultStorage; } });\nObject.defineProperty(exports, \"sessionStorage\", { enumerable: true, get: function () { return core_1.sessionStorage; } });\nObject.defineProperty(exports, \"sharedInMemoryStorage\", { enumerable: true, get: function () { return core_1.sharedInMemoryStorage; } });\nvar utils_1 = require(\"@aws-amplify/core/internals/utils\");\nObject.defineProperty(exports, \"parseAmplifyConfig\", { enumerable: true, get: function () { return utils_1.parseAmplifyConfig; } });\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,kBAAkB,GAAG,OAAO,CAAC,qBAAqB,GAAG,OAAO,CAAC,cAAc,GAAG,OAAO,CAAC,cAAc,GAAG,OAAO,CAAC,aAAa,GAAG,OAAO,CAAC,aAAa,GAAG,OAAO,CAAC,aAAa,GAAG,OAAO,CAAC,KAAK,GAAG,OAAO,CAAC,IAAI,GAAG,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC;AAC3O;AACA;AACA;AACA,IAAI,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;AAC1C,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,MAAM,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC;AACrG,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,MAAM,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC;AACvG,MAAM,CAA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,oBAAoB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,OAAO,CAAC,kBAAkB,CAAC,EAAE,EAAE,CAAC;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/utils/index.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.parseAmplifyConfig = exports.sharedInMemoryStorage = exports.sessionStorage = exports.defaultStorage = exports.CookieStorage = exports.ServiceWorker = exports.ConsoleLogger = exports.Cache = exports.I18n = exports.Hub = void 0;\n/*\nThis file maps exports from `aws-amplify/utils`.\n*/\nvar core_1 = require(\"@aws-amplify/core\");\nObject.defineProperty(exports, \"Hub\", { enumerable: true, get: function () { return core_1.Hub; } });\nObject.defineProperty(exports, \"I18n\", { enumerable: true, get: function () { return core_1.I18n; } });\nObject.defineProperty(exports, \"Cache\", { enumerable: true, get: function () { return core_1.Cache; } });\nObject.defineProperty(exports, \"ConsoleLogger\", { enumerable: true, get: function () { return core_1.ConsoleLogger; } });\nObject.defineProperty(exports, \"ServiceWorker\", { enumerable: true, get: function () { return core_1.ServiceWorker; } });\nObject.defineProperty(exports, \"CookieStorage\", { enumerable: true, get: function () { return core_1.CookieStorage; } });\nObject.defineProperty(exports, \"defaultStorage\", { enumerable: true, get: function () { return core_1.defaultStorage; } });\nObject.defineProperty(exports, \"sessionStorage\", { enumerable: true, get: function () { return core_1.sessionStorage; } });\nObject.defineProperty(exports, \"sharedInMemoryStorage\", { enumerable: true, get: function () { return core_1.sharedInMemoryStorage; } });\nvar utils_1 = require(\"@aws-amplify/core/internals/utils\");\nObject.defineProperty(exports, \"parseAmplifyConfig\", { enumerable: true, get: function () { return utils_1.parseAmplifyConfig; } });\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,K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YAAY,EAAE,OAAO,MAAM,CAAC,aAAa,CAAC,EAAE,EAAE,CAAC;AACxH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,gBAAgB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,MAAM,CAAC,cAAc,CAAC,EAAE,EAAE,CAAC;AAC1H,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,gBAAgB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,MAAM,CAAC,cAAc,CAAC,EAAE,EAAE,CAAC;AAC1H,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,uBAAuB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,MAAM,CAAC,qBAAqB,CAAC,EAAE,EAAE,CAAC;AACxI,IAAI,OAAO,GAAG,OAAO,CAAC,mCAAmC,CAAC;AAC1D,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,oBAAoB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,OAAO,CAAC,kBAAkB,CAAC,EAAE,EAAE,CAAC;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"createAWSCredentialsAndIdentityIdProvider.mjs","sources":["../../../../../src/adapter-core/authProvidersFactories/cognito/createAWSCredentialsAndIdentityIdProvider.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { CognitoAWSCredentialsAndIdentityIdProvider, DefaultIdentityIdStore, } from '@aws-amplify/auth/cognito';\n/**\n * Creates a instance of {@link CognitoAWSCredentialsAndIdentityIdProvider} using\n * the provided `keyValueStorage`.\n * @param authConfig The Auth config that the credentials provider needs to function.\n * @param keyValueStorage An object that implements the {@link KeyValueStorageInterface}.\n * @returns An instance of {@link CognitoAWSCredentialsAndIdentityIdProvider}.\n */\nexport const createAWSCredentialsAndIdentityIdProvider = (authConfig, keyValueStorage) => {\n const credentialsProvider = new CognitoAWSCredentialsAndIdentityIdProvider(new DefaultIdentityIdStore(keyValueStorage));\n return credentialsProvider;\n};\n"],"names":[],"mappings":";;AAAA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACY,MAAC,yCAAyC,GAAG,CAAC,UAAU,EAAE,eAAe,KAAK;AAC1F,IAAI,MAAM,mBAAmB,GAAG,IAAI,0CAA0C,CAAC,IAAI,sBAAsB,CAAC,eAAe,CAAC,CAAC,CAAC;AAC5H,IAAI,OAAO,mBAAmB,CAAC;AAC/B;;;;"}
1
+ {"version":3,"file":"createAWSCredentialsAndIdentityIdProvider.mjs","sources":["../../../../../src/adapter-core/authProvidersFactories/cognito/createAWSCredentialsAndIdentityIdProvider.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { CognitoAWSCredentialsAndIdentityIdProvider, DefaultIdentityIdStore, } from '@aws-amplify/auth/cognito';\n/**\n * Creates a instance of {@link CognitoAWSCredentialsAndIdentityIdProvider} using\n * the provided `keyValueStorage`.\n * @param authConfig The Auth config that the credentials provider needs to function.\n * @param keyValueStorage An object that implements the {@link KeyValueStorageInterface}.\n * @returns An instance of {@link CognitoAWSCredentialsAndIdentityIdProvider}.\n */\nexport const createAWSCredentialsAndIdentityIdProvider = (authConfig, keyValueStorage) => {\n const credentialsProvider = new CognitoAWSCredentialsAndIdentityIdProvider(new DefaultIdentityIdStore(keyValueStorage));\n return credentialsProvider;\n};\n"],"names":[],"mappings":";;AAAA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACY,MAAC,yCAAyC,GAAG,CAAC,UAAU,EAAE,eAAe,KAAK;AAC1F,IAAI,MAAM,mBAAmB,GAAG,IAAI,0CAA0C,CAAC,IAAI,sBAAsB,CAAC,eAAe,CAAC,CAAC;AAC3H,IAAI,OAAO,mBAAmB;AAC9B;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"createUserPoolsTokenProvider.mjs","sources":["../../../../../src/adapter-core/authProvidersFactories/cognito/createUserPoolsTokenProvider.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { DefaultTokenStore, TokenOrchestrator, refreshAuthTokensWithoutDedupe, } from '@aws-amplify/auth/cognito';\n/**\n * Creates an object that implements {@link TokenProvider}.\n * @param authConfig The Auth config that the credentials provider needs to function.\n * @param keyValueStorage An object that implements the {@link KeyValueStorageInterface}.\n * @returns An object that implements {@link TokenProvider}.\n */\nexport const createUserPoolsTokenProvider = (authConfig, keyValueStorage) => {\n const authTokenStore = new DefaultTokenStore();\n authTokenStore.setAuthConfig(authConfig);\n authTokenStore.setKeyValueStorage(keyValueStorage);\n const tokenOrchestrator = new TokenOrchestrator();\n tokenOrchestrator.setAuthConfig(authConfig);\n tokenOrchestrator.setAuthTokenStore(authTokenStore);\n tokenOrchestrator.setTokenRefresher(refreshAuthTokensWithoutDedupe);\n return {\n getTokens: ({ forceRefresh } = { forceRefresh: false }) => tokenOrchestrator.getTokens({ forceRefresh }),\n };\n};\n"],"names":[],"mappings":";;AAAA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACY,MAAC,4BAA4B,GAAG,CAAC,UAAU,EAAE,eAAe,KAAK;AAC7E,IAAI,MAAM,cAAc,GAAG,IAAI,iBAAiB,EAAE,CAAC;AACnD,IAAI,cAAc,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;AAC7C,IAAI,cAAc,CAAC,kBAAkB,CAAC,eAAe,CAAC,CAAC;AACvD,IAAI,MAAM,iBAAiB,GAAG,IAAI,iBAAiB,EAAE,CAAC;AACtD,IAAI,iBAAiB,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;AAChD,IAAI,iBAAiB,CAAC,iBAAiB,CAAC,cAAc,CAAC,CAAC;AACxD,IAAI,iBAAiB,CAAC,iBAAiB,CAAC,8BAA8B,CAAC,CAAC;AACxE,IAAI,OAAO;AACX,QAAQ,SAAS,EAAE,CAAC,EAAE,YAAY,EAAE,GAAG,EAAE,YAAY,EAAE,KAAK,EAAE,KAAK,iBAAiB,CAAC,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;AAChH,KAAK,CAAC;AACN;;;;"}
1
+ {"version":3,"file":"createUserPoolsTokenProvider.mjs","sources":["../../../../../src/adapter-core/authProvidersFactories/cognito/createUserPoolsTokenProvider.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { DefaultTokenStore, TokenOrchestrator, refreshAuthTokensWithoutDedupe, } from '@aws-amplify/auth/cognito';\n/**\n * Creates an object that implements {@link TokenProvider}.\n * @param authConfig The Auth config that the credentials provider needs to function.\n * @param keyValueStorage An object that implements the {@link KeyValueStorageInterface}.\n * @returns An object that implements {@link TokenProvider}.\n */\nexport const createUserPoolsTokenProvider = (authConfig, keyValueStorage) => {\n const authTokenStore = new DefaultTokenStore();\n authTokenStore.setAuthConfig(authConfig);\n authTokenStore.setKeyValueStorage(keyValueStorage);\n const tokenOrchestrator = new TokenOrchestrator();\n tokenOrchestrator.setAuthConfig(authConfig);\n tokenOrchestrator.setAuthTokenStore(authTokenStore);\n tokenOrchestrator.setTokenRefresher(refreshAuthTokensWithoutDedupe);\n return {\n getTokens: ({ forceRefresh } = { forceRefresh: false }) => tokenOrchestrator.getTokens({ forceRefresh }),\n };\n};\n"],"names":[],"mappings":";;AAAA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACY,MAAC,4BAA4B,GAAG,CAAC,UAAU,EAAE,eAAe,KAAK;AAC7E,IAAI,MAAM,cAAc,GAAG,IAAI,iBAAiB,EAAE;AAClD,IAAI,cAAc,CAAC,aAAa,CAAC,UAAU,CAAC;AAC5C,IAAI,cAAc,CAAC,kBAAkB,CAAC,eAAe,CAAC;AACtD,IAAI,MAAM,iBAAiB,GAAG,IAAI,iBAAiB,EAAE;AACrD,IAAI,iBAAiB,CAAC,aAAa,CAAC,UAAU,CAAC;AAC/C,IAAI,iBAAiB,CAAC,iBAAiB,CAAC,cAAc,CAAC;AACvD,IAAI,iBAAiB,CAAC,iBAAiB,CAAC,8BAA8B,CAAC;AACvE,IAAI,OAAO;AACX,QAAQ,SAAS,EAAE,CAAC,EAAE,YAAY,EAAE,GAAG,EAAE,YAAY,EAAE,KAAK,EAAE,KAAK,iBAAiB,CAAC,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;AAChH,KAAK;AACL;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"runWithAmplifyServerContext.mjs","sources":["../../../src/adapter-core/runWithAmplifyServerContext.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { createAmplifyServerContext, destroyAmplifyServerContext, } from '@aws-amplify/core/internals/adapter-core';\n/**\n * The low level function that supports framework specific helpers.\n * It creates an Amplify server context based on the input and runs the operation\n * with injecting the context, and finally returns the result of the operation.\n *\n * @param amplifyConfig The Amplify resource config.\n * @param libraryOptions The Amplify library options.\n * @param operation The operation to run with the server context created from\n * `amplifyConfig` and `libraryOptions`.\n * @returns The result returned by the `operation`.\n */\nexport const runWithAmplifyServerContext = async (amplifyConfig, libraryOptions, operation) => {\n const contextSpec = createAmplifyServerContext(amplifyConfig, libraryOptions);\n // run the operation with injecting the context\n try {\n const result = await operation(contextSpec);\n return result;\n }\n finally {\n // ensures destroy the context regardless whether the operation succeeded or failed\n destroyAmplifyServerContext(contextSpec);\n }\n};\n"],"names":[],"mappings":";;AAAA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACY,MAAC,2BAA2B,GAAG,OAAO,aAAa,EAAE,cAAc,EAAE,SAAS,KAAK;AAC/F,IAAI,MAAM,WAAW,GAAG,0BAA0B,CAAC,aAAa,EAAE,cAAc,CAAC,CAAC;AAClF;AACA,IAAI,IAAI;AACR,QAAQ,MAAM,MAAM,GAAG,MAAM,SAAS,CAAC,WAAW,CAAC,CAAC;AACpD,QAAQ,OAAO,MAAM,CAAC;AACtB,KAAK;AACL,YAAY;AACZ;AACA,QAAQ,2BAA2B,CAAC,WAAW,CAAC,CAAC;AACjD,KAAK;AACL;;;;"}
1
+ {"version":3,"file":"runWithAmplifyServerContext.mjs","sources":["../../../src/adapter-core/runWithAmplifyServerContext.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { createAmplifyServerContext, destroyAmplifyServerContext, } from '@aws-amplify/core/internals/adapter-core';\n/**\n * The low level function that supports framework specific helpers.\n * It creates an Amplify server context based on the input and runs the operation\n * with injecting the context, and finally returns the result of the operation.\n *\n * @param amplifyConfig The Amplify resource config.\n * @param libraryOptions The Amplify library options.\n * @param operation The operation to run with the server context created from\n * `amplifyConfig` and `libraryOptions`.\n * @returns The result returned by the `operation`.\n */\nexport const runWithAmplifyServerContext = async (amplifyConfig, libraryOptions, operation) => {\n const contextSpec = createAmplifyServerContext(amplifyConfig, libraryOptions);\n // run the operation with injecting the context\n try {\n const result = await operation(contextSpec);\n return result;\n }\n finally {\n // ensures destroy the context regardless whether the operation succeeded or failed\n destroyAmplifyServerContext(contextSpec);\n }\n};\n"],"names":[],"mappings":";;AAAA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACY,MAAC,2BAA2B,GAAG,OAAO,aAAa,EAAE,cAAc,EAAE,SAAS,KAAK;AAC/F,IAAI,MAAM,WAAW,GAAG,0BAA0B,CAAC,aAAa,EAAE,cAAc,CAAC;AACjF;AACA,IAAI,IAAI;AACR,QAAQ,MAAM,MAAM,GAAG,MAAM,SAAS,CAAC,WAAW,CAAC;AACnD,QAAQ,OAAO,MAAM;AACrB;AACA,YAAY;AACZ;AACA,QAAQ,2BAA2B,CAAC,WAAW,CAAC;AAChD;AACA;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"createKeyValueStorageFromCookieStorageAdapter.mjs","sources":["../../../../src/adapter-core/storageFactories/createKeyValueStorageFromCookieStorageAdapter.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { DEFAULT_AUTH_TOKEN_COOKIES_MAX_AGE } from '../constants';\nexport const defaultSetCookieOptions = {\n // TODO: allow configure with a public interface\n sameSite: 'lax',\n secure: true,\n path: '/',\n};\n/**\n * Creates a Key Value storage interface using the `cookieStorageAdapter` as the\n * underlying storage.\n * @param cookieStorageAdapter An implementation of the `Adapter` in {@link CookieStorage}.\n * @returns An object that implements {@link KeyValueStorageInterface}.\n */\nexport const createKeyValueStorageFromCookieStorageAdapter = (cookieStorageAdapter, validator, setCookieOptions = {}) => {\n return {\n setItem(key, value) {\n // Delete the cookie item first then set it. This results:\n // SetCookie: key=;expires=1970-01-01;(path='current-path') <- remove path'ed cookies\n // SetCookie: key=value;expires=Date.now() + 365 days;path=/;secure=true\n cookieStorageAdapter.delete(key);\n const mergedCookieOptions = {\n ...defaultSetCookieOptions,\n ...setCookieOptions,\n };\n // when expires and maxAge both are not specified, we set a default maxAge\n if (!mergedCookieOptions.expires && !mergedCookieOptions.maxAge) {\n mergedCookieOptions.maxAge = DEFAULT_AUTH_TOKEN_COOKIES_MAX_AGE;\n }\n cookieStorageAdapter.set(key, value, mergedCookieOptions);\n return Promise.resolve();\n },\n async getItem(key) {\n const cookie = cookieStorageAdapter.get(key);\n const value = cookie?.value ?? null;\n if (value && validator?.getItem) {\n const isValid = await validator.getItem(key, value);\n if (!isValid)\n return null;\n }\n return value;\n },\n removeItem(key) {\n cookieStorageAdapter.delete(key);\n return Promise.resolve();\n },\n clear() {\n // TODO(HuiSF): follow up the implementation.\n throw new Error('This method has not implemented.');\n },\n };\n};\n"],"names":[],"mappings":";;AAAA;AACA;AAEY,MA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AS;AACT,QAAQ,UAAU,CAAC,GAAG,EAAE;AACxB,YAAY,oBAAoB,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;AAC7C,YAAY,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;AACrC,SAAS;AACT,QAAQ,KAAK,GAAG;AAChB;AACA,YAAY,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;AAChE,SAAS;AACT,KAAK,CAAC;AACN;;;;"}
1
+ {"version":3,"file":"createKeyValueStorageFromCookieStorageAdapter.mjs","sources":["../../../../src/adapter-core/storageFactories/createKeyValueStorageFromCookieStorageAdapter.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { DEFAULT_AUTH_TOKEN_COOKIES_MAX_AGE } from '../constants';\nexport const defaultSetCookieOptions = {\n // TODO: allow configure with a public interface\n sameSite: 'lax',\n secure: true,\n path: '/',\n};\n/**\n * Creates a Key Value storage interface using the `cookieStorageAdapter` as the\n * underlying storage.\n * @param cookieStorageAdapter An implementation of the `Adapter` in {@link CookieStorage}.\n * @returns An object that implements {@link KeyValueStorageInterface}.\n */\nexport const createKeyValueStorageFromCookieStorageAdapter = (cookieStorageAdapter, validator, setCookieOptions = {}) => {\n return {\n setItem(key, value) {\n // Delete the cookie item first then set it. This results:\n // SetCookie: key=;expires=1970-01-01;(path='current-path') <- remove path'ed cookies\n // SetCookie: key=value;expires=Date.now() + 365 days;path=/;secure=true\n cookieStorageAdapter.delete(key);\n const mergedCookieOptions = {\n ...defaultSetCookieOptions,\n ...setCookieOptions,\n };\n // when expires and maxAge both are not specified, we set a default maxAge\n if (!mergedCookieOptions.expires && !mergedCookieOptions.maxAge) {\n mergedCookieOptions.maxAge = DEFAULT_AUTH_TOKEN_COOKIES_MAX_AGE;\n }\n cookieStorageAdapter.set(key, value, mergedCookieOptions);\n return Promise.resolve();\n },\n async getItem(key) {\n const cookie = cookieStorageAdapter.get(key);\n const value = cookie?.value ?? null;\n if (value && validator?.getItem) {\n const isValid = await validator.getItem(key, value);\n if (!isValid)\n return null;\n }\n return value;\n },\n removeItem(key) {\n cookieStorageAdapter.delete(key);\n return Promise.resolve();\n },\n clear() {\n // TODO(HuiSF): follow up the implementation.\n throw new Error('This method has not implemented.');\n },\n };\n};\n"],"names":[],"mappings":";;AAAA;AACA;AAEY,MAAC,uBAAuB,GAAG;AACvC;AACA,IAAI,QAAQ,EAAE,KAAK;AACnB,IAAI,MAAM,EAAE,IAAI;AAChB,IAAI,IAAI,EAAE,GAAG;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACY,MAAC,6CAA6C,GAAG,CAAC,oBAAoB,EAAE,SAAS,EAAE,gBAAgB,GAAG,EAAE,KAAK;AACzH,IAAI,OAAO;AACX,QAAQ,OAAO,CAAC,GAAG,EAAE,KAAK,EAAE;AAC5B;AACA;AACA;AACA,YAAY,oBAAoB,CAAC,MAAM,CAAC,GAAG,CAAC;AAC5C,YAAY,MAAM,mBAAmB,GAAG;AACxC,gBAAgB,GAAG,uBAAuB;AAC1C,gBAAgB,GAAG,gBAAgB;AACnC,aAAa;AACb;AACA,YAAY,IAAI,CAAC,mBAAmB,CAAC,OAAO,IAAI,CAAC,mBAAmB,CAAC,MAAM,EAAE;AAC7E,gBAAgB,mBAAmB,CAAC,MAAM,GAAG,kCAAkC;AAC/E;AACA,YAAY,oBAAoB,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,EAAE,mBAAmB,CAAC;AACrE,YAAY,OAAO,OAAO,CAAC,OAAO,EAAE;AACpC,SAAS;AACT,QAAQ,MAAM,OAAO,CAAC,GAAG,EAAE;AAC3B,YAAY,MAAM,MAAM,GAAG,oBAAoB,CAAC,GAAG,CAAC,GAAG,CAAC;AACxD,YAAY,MAAM,KAAK,GAAG,MAAM,EAAE,KAAK,IAAI,IAAI;AAC/C,YAAY,IAAI,KAAK,IAAI,SAAS,EAAE,OAAO,EAAE;AAC7C,gBAAgB,MAAM,OAAO,GAAG,MAAM,SAAS,CAAC,OAAO,CAAC,GAAG,EAAE,KAAK,CAAC;AACnE,gBAAgB,IAAI,CAAC,OAAO;AAC5B,oBAAoB,OAAO,IAAI;AAC/B;AACA,YAAY,OAAO,KAAK;AACxB,SAAS;AACT,QAAQ,UAAU,CAAC,GAAG,EAAE;AACxB,YAAY,oBAAoB,CAAC,MAAM,CAAC,GAAG,CAAC;AAC5C,YAAY,OAAO,OAAO,CAAC,OAAO,EAAE;AACpC,SAAS;AACT,QAAQ,KAAK,GAAG;AAChB;AACA,YAAY,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC;AAC/D,SAAS;AACT,KAAK;AACL;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"initSingleton.mjs","sources":["../../src/initSingleton.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { Amplify, CookieStorage, defaultStorage, } from '@aws-amplify/core';\nimport { parseAmplifyConfig, } from '@aws-amplify/core/internals/utils';\nimport { cognitoCredentialsProvider, cognitoUserPoolsTokenProvider, } from './auth/cognito';\nexport const DefaultAmplify = {\n /**\n * Configures Amplify with the {@link resourceConfig} and {@link libraryOptions}.\n *\n * @param resourceConfig The {@link ResourcesConfig} object that is typically imported from the\n * `amplifyconfiguration.json` file. It can also be an object literal created inline when calling `Amplify.configure`.\n * @param libraryOptions The {@link LibraryOptions} additional options for the library.\n *\n * @example\n * import config from './amplifyconfiguration.json';\n *\n * Amplify.configure(config);\n */\n configure(resourceConfig, libraryOptions) {\n const resolvedResourceConfig = parseAmplifyConfig(resourceConfig);\n // If no Auth config is provided, no special handling will be required, configure as is.\n // Otherwise, we can assume an Auth config is provided from here on.\n if (!resolvedResourceConfig.Auth) {\n Amplify.configure(resolvedResourceConfig, libraryOptions);\n return;\n }\n // If Auth options are provided, always just configure as is.\n // Otherwise, we can assume no Auth libraryOptions were provided from here on.\n if (libraryOptions?.Auth) {\n Amplify.configure(resolvedResourceConfig, libraryOptions);\n return;\n }\n // If no Auth libraryOptions were previously configured, then always add default providers.\n if (!Amplify.libraryOptions.Auth) {\n cognitoUserPoolsTokenProvider.setAuthConfig(resolvedResourceConfig.Auth);\n cognitoUserPoolsTokenProvider.setKeyValueStorage(\n // TODO: allow configure with a public interface\n libraryOptions?.ssr\n ? new CookieStorage({ sameSite: 'lax' })\n : defaultStorage);\n Amplify.configure(resolvedResourceConfig, {\n ...libraryOptions,\n Auth: {\n tokenProvider: cognitoUserPoolsTokenProvider,\n credentialsProvider: cognitoCredentialsProvider,\n },\n });\n return;\n }\n // At this point, Auth libraryOptions would have been previously configured and no overriding\n // Auth options were given, so we should preserve the currently configured Auth libraryOptions.\n if (libraryOptions) {\n // If ssr is provided through libraryOptions, we should respect the intentional reconfiguration.\n if (libraryOptions.ssr !== undefined) {\n cognitoUserPoolsTokenProvider.setKeyValueStorage(\n // TODO: allow configure with a public interface\n libraryOptions.ssr\n ? new CookieStorage({ sameSite: 'lax' })\n : defaultStorage);\n }\n Amplify.configure(resolvedResourceConfig, {\n Auth: Amplify.libraryOptions.Auth,\n ...libraryOptions,\n });\n return;\n }\n // Finally, if there were no libraryOptions given at all, we should simply not touch the currently\n // configured libraryOptions.\n Amplify.configure(resolvedResourceConfig);\n },\n /**\n * Returns the {@link ResourcesConfig} object passed in as the `resourceConfig` parameter when calling\n * `Amplify.configure`.\n *\n * @returns An {@link ResourcesConfig} object.\n */\n getConfig() {\n return Amplify.getConfig();\n },\n};\n"],"names":[],"mappings":";;;;AAAA;AACA;AAIY,MAAC,cAAc,GAAG;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,SAAS,CAAC,cAAc,EAAE,cAAc,EAAE;AAC9C,QAAQ,MAAM,sBAAsB,GAAG,kBAAkB,CAAC,cAAc,CAAC,CAAC;AAC1E;AACA;AACA,QAAQ,IAAI,CAAC,sBAAsB,CAAC,IAAI,EAAE;AAC1C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,CAAC,CAAC;AACf,YAAY,OAAO;AACnB,SAAS;AACT;AACA;AACA,QAAQ,OAAO,CAAC,SAAS,CAAC,sBAAsB,CAAC,CAAC;AAClD,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,SAAS,GAAG;AAChB,QAAQ,OAAO,OAAO,CAAC,SAAS,EAAE,CAAC;AACnC,KAAK;AACL;;;;"}
1
+ {"version":3,"file":"initSingleton.mjs","sources":["../../src/initSingleton.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { Amplify, CookieStorage, defaultStorage, } from '@aws-amplify/core';\nimport { parseAmplifyConfig, } from '@aws-amplify/core/internals/utils';\nimport { cognitoCredentialsProvider, cognitoUserPoolsTokenProvider, } from './auth/cognito';\nexport const DefaultAmplify = {\n /**\n * Configures Amplify with the {@link resourceConfig} and {@link libraryOptions}.\n *\n * @param resourceConfig The {@link ResourcesConfig} object that is typically imported from the\n * `amplifyconfiguration.json` file. It can also be an object literal created inline when calling `Amplify.configure`.\n * @param libraryOptions The {@link LibraryOptions} additional options for the library.\n *\n * @example\n * import config from './amplifyconfiguration.json';\n *\n * Amplify.configure(config);\n */\n configure(resourceConfig, libraryOptions) {\n const resolvedResourceConfig = parseAmplifyConfig(resourceConfig);\n // If no Auth config is provided, no special handling will be required, configure as is.\n // Otherwise, we can assume an Auth config is provided from here on.\n if (!resolvedResourceConfig.Auth) {\n Amplify.configure(resolvedResourceConfig, libraryOptions);\n return;\n }\n // If Auth options are provided, always just configure as is.\n // Otherwise, we can assume no Auth libraryOptions were provided from here on.\n if (libraryOptions?.Auth) {\n Amplify.configure(resolvedResourceConfig, libraryOptions);\n return;\n }\n // If no Auth libraryOptions were previously configured, then always add default providers.\n if (!Amplify.libraryOptions.Auth) {\n cognitoUserPoolsTokenProvider.setAuthConfig(resolvedResourceConfig.Auth);\n cognitoUserPoolsTokenProvider.setKeyValueStorage(\n // TODO: allow configure with a public interface\n libraryOptions?.ssr\n ? new CookieStorage({ sameSite: 'lax' })\n : defaultStorage);\n Amplify.configure(resolvedResourceConfig, {\n ...libraryOptions,\n Auth: {\n tokenProvider: cognitoUserPoolsTokenProvider,\n credentialsProvider: cognitoCredentialsProvider,\n },\n });\n return;\n }\n // At this point, Auth libraryOptions would have been previously configured and no overriding\n // Auth options were given, so we should preserve the currently configured Auth libraryOptions.\n if (libraryOptions) {\n // If ssr is provided through libraryOptions, we should respect the intentional reconfiguration.\n if (libraryOptions.ssr !== undefined) {\n cognitoUserPoolsTokenProvider.setKeyValueStorage(\n // TODO: allow configure with a public interface\n libraryOptions.ssr\n ? new CookieStorage({ sameSite: 'lax' })\n : defaultStorage);\n }\n Amplify.configure(resolvedResourceConfig, {\n Auth: Amplify.libraryOptions.Auth,\n ...libraryOptions,\n });\n return;\n }\n // Finally, if there were no libraryOptions given at all, we should simply not touch the currently\n // configured libraryOptions.\n Amplify.configure(resolvedResourceConfig);\n },\n /**\n * Returns the {@link ResourcesConfig} object passed in as the `resourceConfig` parameter when calling\n * `Amplify.configure`.\n *\n * @returns An {@link ResourcesConfig} object.\n */\n getConfig() {\n return Amplify.getConfig();\n },\n};\n"],"names":[],"mappings":";;;;AAAA;AACA;AAIY,MAAC,cAAc,GAAG;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,SAAS,CAAC,cAAc,EAAE,cAAc,EAAE;AAC9C,QAAQ,MAAM,sBAAsB,GAAG,kBAAkB,CAAC,cAAc,CAAC;AACzE;AACA;AACA,QAAQ,IAAI,CAAC,sBAAsB,CAAC,IAAI,EAAE;AAC1C,YAAY,OAAO,CAAC,SAAS,CAAC,sBAAsB,EAAE,cAAc,CAAC;AACrE,YAAY;AACZ;AACA;AACA;AACA,QAAQ,IAAI,cAAc,EAAE,IAAI,EAAE;AAClC,YAAY,OAAO,CAAC,SAAS,CAAC,sBAAsB,EAAE,cAAc,CAAC;AACrE,YAA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.0+4080377",
3
+ "version": "6.13.6-unstable.90e2118.0+90e2118",
4
4
  "description": "AWS Amplify is a JavaScript library for Frontend and mobile developers building cloud-enabled applications.",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.mjs",
@@ -293,13 +293,13 @@
293
293
  "utils"
294
294
  ],
295
295
  "dependencies": {
296
- "@aws-amplify/analytics": "7.0.75-unstable.4080377.0+4080377",
297
- "@aws-amplify/api": "6.3.6-unstable.4080377.0+4080377",
298
- "@aws-amplify/auth": "6.11.6-unstable.4080377.0+4080377",
299
- "@aws-amplify/core": "6.10.6-unstable.4080377.0+4080377",
300
- "@aws-amplify/datastore": "5.0.77-unstable.4080377.0+4080377",
301
- "@aws-amplify/notifications": "2.0.75-unstable.4080377.0+4080377",
302
- "@aws-amplify/storage": "6.7.16-unstable.4080377.0+4080377",
296
+ "@aws-amplify/analytics": "7.0.75-unstable.90e2118.0+90e2118",
297
+ "@aws-amplify/api": "6.3.6-unstable.90e2118.0+90e2118",
298
+ "@aws-amplify/auth": "6.11.6-unstable.90e2118.0+90e2118",
299
+ "@aws-amplify/core": "6.10.6-unstable.90e2118.0+90e2118",
300
+ "@aws-amplify/datastore": "5.0.77-unstable.90e2118.0+90e2118",
301
+ "@aws-amplify/notifications": "2.0.75-unstable.90e2118.0+90e2118",
302
+ "@aws-amplify/storage": "6.7.16-unstable.90e2118.0+90e2118",
303
303
  "tslib": "^2.5.0"
304
304
  },
305
305
  "devDependencies": {
@@ -535,5 +535,5 @@
535
535
  "limit": "23.00 kB"
536
536
  }
537
537
  ],
538
- "gitHead": "40803774f0aa4f0146fb4e9f891438010a0d25cb"
538
+ "gitHead": "90e2118ed6fdd6b582428d34ff657b1507e0f637"
539
539
  }