@aws-amplify/core 6.11.4 → 6.11.5-unstable.3c4d29e.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 (94) hide show
  1. package/dist/cjs/BackgroundProcessManager/types.js +5 -1
  2. package/dist/cjs/BackgroundProcessManager/types.js.map +1 -1
  3. package/dist/cjs/Cache/constants.js +3 -3
  4. package/dist/cjs/Cache/constants.js.map +1 -1
  5. package/dist/cjs/Cache/utils/cacheHelpers.js +4 -4
  6. package/dist/cjs/Cache/utils/cacheHelpers.js.map +1 -1
  7. package/dist/cjs/Cache/utils/errorHelpers.js +1 -1
  8. package/dist/cjs/Cache/utils/errorHelpers.js.map +1 -1
  9. package/dist/cjs/I18n/errorHelpers.js +1 -1
  10. package/dist/cjs/I18n/errorHelpers.js.map +1 -1
  11. package/dist/cjs/Logger/types.js +2 -1
  12. package/dist/cjs/Logger/types.js.map +1 -1
  13. package/dist/cjs/Platform/detectFramework.js +2 -2
  14. package/dist/cjs/Platform/detectFramework.js.map +1 -1
  15. package/dist/cjs/Platform/detection/Angular.js +2 -3
  16. package/dist/cjs/Platform/detection/Angular.js.map +1 -1
  17. package/dist/cjs/Platform/detection/Expo.js +1 -2
  18. package/dist/cjs/Platform/detection/Expo.js.map +1 -1
  19. package/dist/cjs/Platform/detection/Next.js +2 -3
  20. package/dist/cjs/Platform/detection/Next.js.map +1 -1
  21. package/dist/cjs/Platform/detection/Nuxt.js +2 -3
  22. package/dist/cjs/Platform/detection/Nuxt.js.map +1 -1
  23. package/dist/cjs/Platform/detection/React.js +2 -3
  24. package/dist/cjs/Platform/detection/React.js.map +1 -1
  25. package/dist/cjs/Platform/detection/ReactNative.js +1 -2
  26. package/dist/cjs/Platform/detection/ReactNative.js.map +1 -1
  27. package/dist/cjs/Platform/detection/Svelte.js +2 -3
  28. package/dist/cjs/Platform/detection/Svelte.js.map +1 -1
  29. package/dist/cjs/Platform/detection/Vue.js +2 -3
  30. package/dist/cjs/Platform/detection/Vue.js.map +1 -1
  31. package/dist/cjs/Platform/detection/Web.js +1 -2
  32. package/dist/cjs/Platform/detection/Web.js.map +1 -1
  33. package/dist/cjs/Platform/detection/index.js +1 -2
  34. package/dist/cjs/Platform/detection/index.js.map +1 -1
  35. package/dist/cjs/Platform/types.js +28 -14
  36. package/dist/cjs/Platform/types.js.map +1 -1
  37. package/dist/cjs/Platform/version.js +1 -1
  38. package/dist/cjs/Platform/version.js.map +1 -1
  39. package/dist/cjs/ServiceWorker/errorHelpers.js +1 -1
  40. package/dist/cjs/ServiceWorker/errorHelpers.js.map +1 -1
  41. package/dist/cjs/awsClients/pinpoint/errorHelpers.js +1 -1
  42. package/dist/cjs/awsClients/pinpoint/errorHelpers.js.map +1 -1
  43. package/dist/cjs/parseAmplifyOutputs.js +3 -4
  44. package/dist/cjs/parseAmplifyOutputs.js.map +1 -1
  45. package/dist/cjs/providers/pinpoint/types/errors.js +2 -1
  46. package/dist/cjs/providers/pinpoint/types/errors.js.map +1 -1
  47. package/dist/cjs/singleton/API/types.js +5 -1
  48. package/dist/cjs/singleton/API/types.js.map +1 -1
  49. package/dist/cjs/singleton/Auth/utils/errorHelpers.js +1 -1
  50. package/dist/cjs/singleton/Auth/utils/errorHelpers.js.map +1 -1
  51. package/dist/cjs/singleton/Auth/utils/index.js +4 -5
  52. package/dist/cjs/singleton/Auth/utils/index.js.map +1 -1
  53. package/dist/cjs/singleton/apis/clearCredentials.js +1 -2
  54. package/dist/cjs/singleton/apis/clearCredentials.js.map +1 -1
  55. package/dist/cjs/types/errors.js +2 -1
  56. package/dist/cjs/types/errors.js.map +1 -1
  57. package/dist/cjs/utils/convert/base64/bytesToString.js +1 -2
  58. package/dist/cjs/utils/convert/base64/bytesToString.js.map +1 -1
  59. package/dist/cjs/utils/cryptoSecureRandomInt.js +1 -2
  60. package/dist/cjs/utils/cryptoSecureRandomInt.js.map +1 -1
  61. package/dist/cjs/utils/getClientInfo/getClientInfo.js +1 -2
  62. package/dist/cjs/utils/getClientInfo/getClientInfo.js.map +1 -1
  63. package/dist/cjs/utils/isTokenExpired.js +1 -2
  64. package/dist/cjs/utils/isTokenExpired.js.map +1 -1
  65. package/dist/cjs/utils/retry/jitteredBackoff.js +1 -2
  66. package/dist/cjs/utils/retry/jitteredBackoff.js.map +1 -1
  67. package/dist/cjs/utils/retry/retry.js +1 -2
  68. package/dist/cjs/utils/retry/retry.js.map +1 -1
  69. package/dist/cjs/utils/urlSafeDecode.js +1 -2
  70. package/dist/cjs/utils/urlSafeDecode.js.map +1 -1
  71. package/dist/cjs/utils/urlSafeEncode.js +1 -2
  72. package/dist/cjs/utils/urlSafeEncode.js.map +1 -1
  73. package/dist/esm/Cache/constants.mjs +3 -3
  74. package/dist/esm/Cache/constants.mjs.map +1 -1
  75. package/dist/esm/Platform/version.d.ts +1 -1
  76. package/dist/esm/Platform/version.mjs +1 -1
  77. package/dist/esm/Platform/version.mjs.map +1 -1
  78. package/dist/esm/awsClients/cognitoIdentity/base.d.ts +1 -1
  79. package/dist/esm/awsClients/cognitoIdentity/getCredentialsForIdentity.d.ts +1 -1
  80. package/dist/esm/awsClients/cognitoIdentity/getId.d.ts +1 -1
  81. package/dist/esm/awsClients/pinpoint/base.d.ts +1 -1
  82. package/dist/esm/awsClients/pinpoint/getInAppMessages.d.ts +2 -2
  83. package/dist/esm/awsClients/pinpoint/putEvents.d.ts +2 -2
  84. package/dist/esm/awsClients/pinpoint/updateEndpoint.d.ts +2 -2
  85. package/dist/esm/clients/internal/composeServiceApi.d.ts +4 -1
  86. package/dist/esm/clients/internal/composeTransferHandler.d.ts +1 -1
  87. package/dist/esm/clients/middleware/signing/signer/signatureV4/utils/getCanonicalHeaders.d.ts +1 -1
  88. package/dist/esm/clients/middleware/signing/signer/signatureV4/utils/getHashedPayload.d.ts +1 -1
  89. package/dist/esm/clients/middleware/signing/signer/signatureV4/utils/getSignedHeaders.d.ts +1 -1
  90. package/dist/esm/utils/amplifyUrl/index.d.ts +4 -3
  91. package/dist/esm/utils/amplifyUrl/index.native.d.ts +4 -3
  92. package/dist/esm/utils/queuedStorage/createQueuedStorage.native.d.ts +1 -1
  93. package/package.json +4 -5
  94. package/src/Platform/version.ts +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"cryptoSecureRandomInt.js","sources":["../../../src/utils/cryptoSecureRandomInt.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.cryptoSecureRandomInt = void 0;\nconst globalHelpers_1 = require(\"./globalHelpers\");\n/*\n * Cryptographically secure pseudorandom number generator\n * As Math.random() is cryptographically not safe to use\n */\nfunction cryptoSecureRandomInt() {\n const crypto = (0, globalHelpers_1.getCrypto)();\n const randomResult = crypto.getRandomValues(new Uint32Array(1))[0];\n return randomResult;\n}\nexports.cryptoSecureRandomInt = cryptoSecureRandomInt;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,qBAAqB,GAAG,MAAM;AACtC,MAAM,eAAe,GAAG,OAAO,CAAC,iBAAiB,CAAC;AAClD;AACA;AACA;AACA;AACA,SAAS,qBAAqB,GAAG;AACjC,IAAI,MAAM,MAAM,GAAG,IAAI,eAAe,CAAC,SAAS,GAAG;AACnD,IAAI,MAAM,YAAY,GAAG,MAAM,CAAC,eAAe,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACtE,IAAI,OAAO,YAAY;AACvB;AACA,OAAO,CAAC,qBAAqB,GAAG,qBAAqB;;"}
1
+ {"version":3,"file":"cryptoSecureRandomInt.js","sources":["../../../src/utils/cryptoSecureRandomInt.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.cryptoSecureRandomInt = cryptoSecureRandomInt;\nconst globalHelpers_1 = require(\"./globalHelpers\");\n/*\n * Cryptographically secure pseudorandom number generator\n * As Math.random() is cryptographically not safe to use\n */\nfunction cryptoSecureRandomInt() {\n const crypto = (0, globalHelpers_1.getCrypto)();\n const randomResult = crypto.getRandomValues(new Uint32Array(1))[0];\n return randomResult;\n}\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,qBAAqB,GAAG,qBAAqB;AACrD,MAAM,eAAe,GAAG,OAAO,CAAC,iBAAiB,CAAC;AAClD;AACA;AACA;AACA;AACA,SAAS,qBAAqB,GAAG;AACjC,IAAI,MAAM,MAAM,GAAG,IAAI,eAAe,CAAC,SAAS,GAAG;AACnD,IAAI,MAAM,YAAY,GAAG,MAAM,CAAC,eAAe,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACtE,IAAI,OAAO,YAAY;AACvB;;"}
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.getClientInfo = void 0;
4
+ exports.getClientInfo = getClientInfo;
5
5
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
6
6
  // SPDX-License-Identifier: Apache-2.0
7
7
  const Logger_1 = require("../../Logger");
@@ -12,7 +12,6 @@ function getClientInfo() {
12
12
  }
13
13
  return browserClientInfo();
14
14
  }
15
- exports.getClientInfo = getClientInfo;
16
15
  function browserClientInfo() {
17
16
  if (typeof window === 'undefined') {
18
17
  logger.warn('No window object available to get browser client info');
@@ -1 +1 @@
1
- {"version":3,"file":"getClientInfo.js","sources":["../../../../src/utils/getClientInfo/getClientInfo.ts"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getClientInfo = void 0;\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nconst Logger_1 = require(\"../../Logger\");\nconst logger = new Logger_1.ConsoleLogger('getClientInfo');\nfunction getClientInfo() {\n if (typeof window === 'undefined') {\n return {};\n }\n return browserClientInfo();\n}\nexports.getClientInfo = getClientInfo;\nfunction browserClientInfo() {\n if (typeof window === 'undefined') {\n logger.warn('No window object available to get browser client info');\n return {};\n }\n const nav = window.navigator;\n if (!nav) {\n logger.warn('No navigator object available to get browser client info');\n return {};\n }\n const { platform, product, vendor, userAgent, language } = nav;\n const type = getBrowserType(userAgent);\n const timezone = browserTimezone();\n return {\n platform,\n make: product || vendor,\n model: type.type,\n version: type.version,\n appVersion: [type.type, type.version].join('/'),\n language,\n timezone,\n };\n}\nfunction browserTimezone() {\n const tzMatch = /\\(([A-Za-z\\s].*)\\)/.exec(new Date().toString());\n return tzMatch ? tzMatch[1] || '' : '';\n}\nfunction getBrowserType(userAgent) {\n // The latest user agents for Opera: https://www.whatismybrowser.com/guides/the-latest-user-agent/opera\n const operaMatch = /.+(Opera[\\s[A-Z]*|OPR[\\sA-Z]*)\\/([0-9.]+).*/i.exec(userAgent);\n if (operaMatch) {\n return { type: operaMatch[1], version: operaMatch[2] };\n }\n // The latest user agents for Edge: https://www.whatismybrowser.com/guides/the-latest-user-agent/edge\n const ieMatch = /.+(Trident|Edge|Edg|EdgA|EdgiOS)\\/([0-9.]+).*/i.exec(userAgent);\n if (ieMatch) {\n return { type: ieMatch[1], version: ieMatch[2] };\n }\n // The latest user agents for web browsers on Firefox and Chrome\n // https://www.whatismybrowser.com/guides/the-latest-user-agent/firefox\n // https://www.whatismybrowser.com/guides/the-latest-user-agent/chrome\n const cfMatch = /.+(Chrome|CriOS|Firefox|FxiOS)\\/([0-9.]+).*/i.exec(userAgent);\n if (cfMatch) {\n return { type: cfMatch[1], version: cfMatch[2] };\n }\n // The latest user agents for Safari: https://www.whatismybrowser.com/guides/the-latest-user-agent/safari\n const sMatch = /.+(Safari)\\/([0-9.]+).*/i.exec(userAgent);\n if (sMatch) {\n return { type: sMatch[1], version: sMatch[2] };\n }\n const awkMatch = /.+(AppleWebKit)\\/([0-9.]+).*/i.exec(userAgent);\n if (awkMatch) {\n return { type: awkMatch[1], version: awkMatch[2] };\n }\n const anyMatch = /.*([A-Z]+)\\/([0-9.]+).*/i.exec(userAgent);\n if (anyMatch) {\n return { type: anyMatch[1], version: anyMatch[2] };\n }\n return { type: '', version: '' };\n}\n"],"names":[],"mappings":";;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,aAAa,GAAG,MAAM;AAC9B;AACA;AACA,MAAM,QAAQ,GAAG,OAAO,CAAC,cAAc,CAAC;AACxC,MAAM,MAAM,GAAG,IAAI,QAAQ,CAAC,aAAa,CAAC,eAAe,CAAC;AAC1D,SAAS,aAAa,GAAG;AACzB,IAAI,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE;AACvC,QAAQ,OAAO,EAAE;AACjB;AACA,IAAI,OAAO,iBAAiB,EAAE;AAC9B;AACA,OAAO,CAAC,aAAa,GAAG,aAAa;AACrC,SAAS,iBAAiB,GAAG;AAC7B,IAAI,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE;AACvC,QAAQ,MAAM,CAAC,IAAI,CAAC,uDAAuD,CAAC;AAC5E,QAAQ,OAAO,EAAE;AACjB;AACA,IAAI,MAAM,GAAG,GAAG,MAAM,CAAC,SAAS;AAChC,IAAI,IAAI,CAAC,GAAG,EAAE;AACd,QAAQ,MAAM,CAAC,IAAI,CAAC,0DAA0D,CAAC;AAC/E,QAAQ,OAAO,EAAE;AACjB;AACA,IAAI,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,GA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;AACjB,QAAQ,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE;AACxD;AACA;AACA,IAAI,MAAM,MAAM,GAAG,0BAA0B,CAAC,IAAI,CAAC,SAAS,CAAC;AAC7D,IAAI,IAAI,MAAM,EAAE;AAChB,QAAQ,OAAO,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE;AACtD;AACA,IAAI,MAAM,QAAQ,GAAG,+BAA+B,CAAC,IAAI,CAAC,SAAS,CAAC;AACpE,IAAI,IAAI,QAAQ,EAAE;AAClB,QAAQ,OAAO,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE;AAC1D;AACA,IAAI,MAAM,QAAQ,GAAG,0BAA0B,CAAC,IAAI,CAAC,SAAS,CAAC;AAC/D,IAAI,IAAI,QAAQ,EAAE;AAClB,QAAQ,OAAO,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE;AAC1D;AACA,IAAI,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;AACpC;;"}
1
+ {"version":3,"file":"getClientInfo.js","sources":["../../../../src/utils/getClientInfo/getClientInfo.ts"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getClientInfo = getClientInfo;\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nconst Logger_1 = require(\"../../Logger\");\nconst logger = new Logger_1.ConsoleLogger('getClientInfo');\nfunction getClientInfo() {\n if (typeof window === 'undefined') {\n return {};\n }\n return browserClientInfo();\n}\nfunction browserClientInfo() {\n if (typeof window === 'undefined') {\n logger.warn('No window object available to get browser client info');\n return {};\n }\n const nav = window.navigator;\n if (!nav) {\n logger.warn('No navigator object available to get browser client info');\n return {};\n }\n const { platform, product, vendor, userAgent, language } = nav;\n const type = getBrowserType(userAgent);\n const timezone = browserTimezone();\n return {\n platform,\n make: product || vendor,\n model: type.type,\n version: type.version,\n appVersion: [type.type, type.version].join('/'),\n language,\n timezone,\n };\n}\nfunction browserTimezone() {\n const tzMatch = /\\(([A-Za-z\\s].*)\\)/.exec(new Date().toString());\n return tzMatch ? tzMatch[1] || '' : '';\n}\nfunction getBrowserType(userAgent) {\n // The latest user agents for Opera: https://www.whatismybrowser.com/guides/the-latest-user-agent/opera\n const operaMatch = /.+(Opera[\\s[A-Z]*|OPR[\\sA-Z]*)\\/([0-9.]+).*/i.exec(userAgent);\n if (operaMatch) {\n return { type: operaMatch[1], version: operaMatch[2] };\n }\n // The latest user agents for Edge: https://www.whatismybrowser.com/guides/the-latest-user-agent/edge\n const ieMatch = /.+(Trident|Edge|Edg|EdgA|EdgiOS)\\/([0-9.]+).*/i.exec(userAgent);\n if (ieMatch) {\n return { type: ieMatch[1], version: ieMatch[2] };\n }\n // The latest user agents for web browsers on Firefox and Chrome\n // https://www.whatismybrowser.com/guides/the-latest-user-agent/firefox\n // https://www.whatismybrowser.com/guides/the-latest-user-agent/chrome\n const cfMatch = /.+(Chrome|CriOS|Firefox|FxiOS)\\/([0-9.]+).*/i.exec(userAgent);\n if (cfMatch) {\n return { type: cfMatch[1], version: cfMatch[2] };\n }\n // The latest user agents for Safari: https://www.whatismybrowser.com/guides/the-latest-user-agent/safari\n const sMatch = /.+(Safari)\\/([0-9.]+).*/i.exec(userAgent);\n if (sMatch) {\n return { type: sMatch[1], version: sMatch[2] };\n }\n const awkMatch = /.+(AppleWebKit)\\/([0-9.]+).*/i.exec(userAgent);\n if (awkMatch) {\n return { type: awkMatch[1], version: awkMatch[2] };\n }\n const anyMatch = /.*([A-Z]+)\\/([0-9.]+).*/i.exec(userAgent);\n if (anyMatch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AI,MAAM,QAAQ,GAAG,+BAA+B,CAAC,IAAI,CAAC,SAAS,CAAC;AACpE,IAAI,IAAI,QAAQ,EAAE;AAClB,QAAQ,OAAO,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE;AAC1D;AACA,IAAI,MAAM,QAAQ,GAAG,0BAA0B,CAAC,IAAI,CAAC,SAAS,CAAC;AAC/D,IAAI,IAAI,QAAQ,EAAE;AAClB,QAAQ,OAAO,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE;AAC1D;AACA,IAAI,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;AACpC;;"}
@@ -3,10 +3,9 @@
3
3
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
4
  // SPDX-License-Identifier: Apache-2.0
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.isTokenExpired = void 0;
6
+ exports.isTokenExpired = isTokenExpired;
7
7
  function isTokenExpired({ expiresAt, clockDrift, tolerance = 5000, }) {
8
8
  const currentTime = Date.now();
9
9
  return currentTime + clockDrift + tolerance > expiresAt;
10
10
  }
11
- exports.isTokenExpired = isTokenExpired;
12
11
  //# sourceMappingURL=isTokenExpired.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"isTokenExpired.js","sources":["../../../src/utils/isTokenExpired.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.isTokenExpired = void 0;\nfunction isTokenExpired({ expiresAt, clockDrift, tolerance = 5000, }) {\n const currentTime = Date.now();\n return currentTime + clockDrift + tolerance > expiresAt;\n}\nexports.isTokenExpired = isTokenExpired;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,cAAc,GAAG,MAAM;AAC/B,SAAS,cAAc,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,GAAG,IAAI,GAAG,EAAE;AACtE,IAAI,MAAM,WAAW,GAAG,IAAI,CAAC,GAAG,EAAE;AAClC,IAAI,OAAO,WAAW,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS;AAC3D;AACA,OAAO,CAAC,cAAc,GAAG,cAAc;;"}
1
+ {"version":3,"file":"isTokenExpired.js","sources":["../../../src/utils/isTokenExpired.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.isTokenExpired = isTokenExpired;\nfunction isTokenExpired({ expiresAt, clockDrift, tolerance = 5000, }) {\n const currentTime = Date.now();\n return currentTime + clockDrift + tolerance > expiresAt;\n}\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,cAAc,GAAG,cAAc;AACvC,SAAS,cAAc,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,GAAG,IAAI,GAAG,EAAE;AACtE,IAAI,MAAM,WAAW,GAAG,IAAI,CAAC,GAAG,EAAE;AAClC,IAAI,OAAO,WAAW,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS;AAC3D;;"}
@@ -3,7 +3,7 @@
3
3
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
4
  // SPDX-License-Identifier: Apache-2.0
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.jitteredBackoff = void 0;
6
+ exports.jitteredBackoff = jitteredBackoff;
7
7
  const constants_1 = require("./constants");
8
8
  /**
9
9
  * @private
@@ -17,5 +17,4 @@ function jitteredBackoff(maxDelayMs = constants_1.MAX_DELAY_MS) {
17
17
  return delay > maxDelayMs ? false : delay;
18
18
  };
19
19
  }
20
- exports.jitteredBackoff = jitteredBackoff;
21
20
  //# sourceMappingURL=jitteredBackoff.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"jitteredBackoff.js","sources":["../../../../src/utils/retry/jitteredBackoff.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.jitteredBackoff = void 0;\nconst constants_1 = require(\"./constants\");\n/**\n * @private\n * Internal use of Amplify only\n */\nfunction jitteredBackoff(maxDelayMs = constants_1.MAX_DELAY_MS) {\n const BASE_TIME_MS = 100;\n const JITTER_FACTOR = 100;\n return attempt => {\n const delay = 2 ** attempt * BASE_TIME_MS + JITTER_FACTOR * Math.random();\n return delay > maxDelayMs ? false : delay;\n };\n}\nexports.jitteredBackoff = jitteredBackoff;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,eAAe,GAAG,MAAM;AAChC,MAAM,WAAW,GAAG,OAAO,CAAC,aAAa,CAAC;AAC1C;AACA;AACA;AACA;AACA,SAAS,eAAe,CAAC,UAAU,GAAG,WAAW,CAAC,YAAY,EAAE;AAChE,IAAI,MAAM,YAAY,GAAG,GAAG;AAC5B,IAAI,MAAM,aAAa,GAAG,GAAG;AAC7B,IAAI,OAAO,OAAO,IAAI;AACtB,QAAQ,MAAM,KAAK,GAAG,CAAC,IAAI,OAAO,GAAG,YAAY,GAAG,aAAa,GAAG,IAAI,CAAC,MAAM,EAAE;AACjF,QAAQ,OAAO,KAAK,GAAG,UAAU,GAAG,KAAK,GAAG,KAAK;AACjD,KAAK;AACL;AACA,OAAO,CAAC,eAAe,GAAG,eAAe;;"}
1
+ {"version":3,"file":"jitteredBackoff.js","sources":["../../../../src/utils/retry/jitteredBackoff.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.jitteredBackoff = jitteredBackoff;\nconst constants_1 = require(\"./constants\");\n/**\n * @private\n * Internal use of Amplify only\n */\nfunction jitteredBackoff(maxDelayMs = constants_1.MAX_DELAY_MS) {\n const BASE_TIME_MS = 100;\n const JITTER_FACTOR = 100;\n return attempt => {\n const delay = 2 ** attempt * BASE_TIME_MS + JITTER_FACTOR * Math.random();\n return delay > maxDelayMs ? false : delay;\n };\n}\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,eAAe,GAAG,eAAe;AACzC,MAAM,WAAW,GAAG,OAAO,CAAC,aAAa,CAAC;AAC1C;AACA;AACA;AACA;AACA,SAAS,eAAe,CAAC,UAAU,GAAG,WAAW,CAAC,YAAY,EAAE;AAChE,IAAI,MAAM,YAAY,GAAG,GAAG;AAC5B,IAAI,MAAM,aAAa,GAAG,GAAG;AAC7B,IAAI,OAAO,OAAO,IAAI;AACtB,QAAQ,MAAM,KAAK,GAAG,CAAC,IAAI,OAAO,GAAG,YAAY,GAAG,aAAa,GAAG,IAAI,CAAC,MAAM,EAAE;AACjF,QAAQ,OAAO,KAAK,GAAG,UAAU,GAAG,KAAK,GAAG,KAAK;AACjD,KAAK;AACL;;"}
@@ -3,7 +3,7 @@
3
3
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
4
  // SPDX-License-Identifier: Apache-2.0
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.retry = void 0;
6
+ exports.retry = retry;
7
7
  const ConsoleLogger_1 = require("../../Logger/ConsoleLogger");
8
8
  const isNonRetryableError_1 = require("./isNonRetryableError");
9
9
  const logger = new ConsoleLogger_1.ConsoleLogger('retryUtil');
@@ -71,5 +71,4 @@ async function retry(functionToRetry, args, delayFn, onTerminate) {
71
71
  reject(lastError);
72
72
  });
73
73
  }
74
- exports.retry = retry;
75
74
  //# sourceMappingURL=retry.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"retry.js","sources":["../../../../src/utils/retry/retry.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.retry = void 0;\nconst ConsoleLogger_1 = require(\"../../Logger/ConsoleLogger\");\nconst isNonRetryableError_1 = require(\"./isNonRetryableError\");\nconst logger = new ConsoleLogger_1.ConsoleLogger('retryUtil');\n/**\n * @private\n * Internal use of Amplify only\n */\nasync function retry(functionToRetry, args, delayFn, onTerminate) {\n if (typeof functionToRetry !== 'function') {\n throw Error('functionToRetry must be a function');\n }\n // TODO(eslint): remove this linter suppression with refactoring.\n // eslint-disable-next-line no-async-promise-executor\n return new Promise(async (resolve, reject) => {\n let attempt = 0;\n let terminated = false;\n let timeout;\n let wakeUp = () => {\n // no-op\n }; // will be replaced with a resolver()\n // used after the loop if terminated while waiting for a timer.\n let lastError;\n onTerminate &&\n onTerminate.then(() => {\n // signal not to try anymore.\n terminated = true;\n // stop sleeping if we're sleeping.\n clearTimeout(timeout);\n wakeUp();\n });\n // TODO(eslint): remove this linter suppression with refactoring.\n // eslint-disable-next-line no-unmodified-loop-condition\n while (!terminated) {\n attempt++;\n logger.debug(`${functionToRetry.name} attempt #${attempt} with this vars: ${JSON.stringify(args)}`);\n try {\n resolve(await functionToRetry(...args));\n return;\n }\n catch (err) {\n lastError = err;\n logger.debug(`error on ${functionToRetry.name}`, err);\n if ((0, isNonRetryableError_1.isNonRetryableError)(err)) {\n logger.debug(`${functionToRetry.name} non retryable error`, err);\n reject(err);\n return;\n }\n const retryIn = delayFn(attempt, args, err);\n logger.debug(`${functionToRetry.name} retrying in ${retryIn} ms`);\n // we check `terminated` again here because it could have flipped\n // in the time it took `functionToRetry` to return.\n if (retryIn === false || terminated) {\n reject(err);\n return;\n }\n else {\n await new Promise(_resolve => {\n wakeUp = _resolve; // export wakeUp for onTerminate handling\n timeout = setTimeout(wakeUp, retryIn);\n });\n }\n }\n }\n // reached if terminated while waiting for a timer.\n reject(lastError);\n });\n}\nexports.retry = retry;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,KAAK,GAAG,MAAM;AACtB,MAAM,eAAe,GAAG,OAAO,CAAC,4BAA4B,CAAC;AAC7D,MAAM,qBAAqB,GAAG,OAAO,CAAC,uBAAuB,CAAC;AAC9D,MAAM,MAAM,GAAG,IAAI,eAAe,CAAC,aAAa,CAAC,WAAW,CAAC;AAC7D;AACA;AACA;AACA;AACA,eAAe,KAAK,CAAC,eAAe,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE;AAClE,IAAI,IAAI,OAAO,eAAe,KAAK,UAAU,EAAE;AAC/C,QAAQ,MAAM,KAAK,CAAC,oCAAoC,CAAC;AACzD;AACA;AACA;AACA,IAAI,OAAO,IAAI,OAAO,CAAC,OAAO,OAAO,EAAE,MAAM,KAAK;AAClD,QAAQ,IAAI,OAAO,GAAG,CAAC;AACvB,QAAQ,IAAI,UAAU,GAAG,KAAK;AAC9B,QAAQ,IAAI,OAAO;AACnB,QAAQ,IAAI,MAAM,GAAG,MAAM;AAC3B;AACA,SAAS,CAAC;AACV;AACA,QAAQ,IAAI,SAAS;AACrB,QAAQ,WAAW;AACnB,YAAY,WAAW,CAAC,IAAI,CAAC,MAAM;AACnC;AACA,gBAAgB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C,QAAQ,IAAI;AAClD,wBAAwB,MAAM,GAAG,QAAQ,CAAC;AAC1C,wBAAwB,OAAO,GAAG,UAAU,CAAC,MAAM,EAAE,OAAO,CAAC;AAC7D,qBAAqB,CAAC;AACtB;AACA;AACA;AACA;AACA,QAAQ,MAAM,CAAC,SAAS,CAAC;AACzB,KAAK,CAAC;AACN;AACA,OAAO,CAAC,KAAK,GAAG,KAAK;;"}
1
+ {"version":3,"file":"retry.js","sources":["../../../../src/utils/retry/retry.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.retry = retry;\nconst ConsoleLogger_1 = require(\"../../Logger/ConsoleLogger\");\nconst isNonRetryableError_1 = require(\"./isNonRetryableError\");\nconst logger = new ConsoleLogger_1.ConsoleLogger('retryUtil');\n/**\n * @private\n * Internal use of Amplify only\n */\nasync function retry(functionToRetry, args, delayFn, onTerminate) {\n if (typeof functionToRetry !== 'function') {\n throw Error('functionToRetry must be a function');\n }\n // TODO(eslint): remove this linter suppression with refactoring.\n // eslint-disable-next-line no-async-promise-executor\n return new Promise(async (resolve, reject) => {\n let attempt = 0;\n let terminated = false;\n let timeout;\n let wakeUp = () => {\n // no-op\n }; // will be replaced with a resolver()\n // used after the loop if terminated while waiting for a timer.\n let lastError;\n onTerminate &&\n onTerminate.then(() => {\n // signal not to try anymore.\n terminated = true;\n // stop sleeping if we're sleeping.\n clearTimeout(timeout);\n wakeUp();\n });\n // TODO(eslint): remove this linter suppression with refactoring.\n // eslint-disable-next-line no-unmodified-loop-condition\n while (!terminated) {\n attempt++;\n logger.debug(`${functionToRetry.name} attempt #${attempt} with this vars: ${JSON.stringify(args)}`);\n try {\n resolve(await functionToRetry(...args));\n return;\n }\n catch (err) {\n lastError = err;\n logger.debug(`error on ${functionToRetry.name}`, err);\n if ((0, isNonRetryableError_1.isNonRetryableError)(err)) {\n logger.debug(`${functionToRetry.name} non retryable error`, err);\n reject(err);\n return;\n }\n const retryIn = delayFn(attempt, args, err);\n logger.debug(`${functionToRetry.name} retrying in ${retryIn} ms`);\n // we check `terminated` again here because it could have flipped\n // in the time it took `functionToRetry` to return.\n if (retryIn === false || terminated) {\n reject(err);\n return;\n }\n else {\n await new Promise(_resolve => {\n wakeUp = _resolve; // export wakeUp for onTerminate handling\n timeout = setTimeout(wakeUp, retryIn);\n });\n }\n }\n }\n // reached if terminated while waiting for a timer.\n reject(lastError);\n });\n}\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,KAAK,GAAG,KAAK;AACrB,MAAM,eAAe,GAAG,OAAO,CAAC,4BAA4B,CAAC;AAC7D,MAAM,qBAAqB,GAAG,OAAO,CAAC,uBAAuB,CAAC;AAC9D,MAAM,MAAM,GAAG,IAAI,eAAe,CAAC,aAAa,CAAC,WAAW,CAAC;AAC7D;AACA;AACA;AACA;AACA,eAAe,KAAK,CAAC,eAAe,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE;AAClE,IAAI,IAAI,OAAO,eAAe,KAAK,UAAU,EAAE;AAC/C,QAAQ,MAAM,KAAK,CAAC,oCAAoC,CAAC;AACzD;AACA;AACA;AACA,IAAI,OAAO,IAAI,OAAO,CAAC,OAAO,OAAO,EAAE,MAAM,KAAK;AAClD,QAAQ,IAAI,OAAO,GAAG,CAAC;AACvB,QAAQ,IAAI,UAAU,GAAG,KAAK;AAC9B,QAAQ,IAAI,OAAO;AACnB,QAAQ,IAAI,MAAM,GAAG,MAAM;AAC3B;AACA,SAAS,CAAC;AACV;AACA,QAAQ,IAAI,SAAS;AACrB,QAAQ,WAAW;AACnB,YAAY,WAAW,CAAC,IAAI,CAAC,MAAM;AACnC;AACA,gBAAgB,UAAU,GAAG,IAAI;AACjC;AACA,gBAAgB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AAG,QAAQ,CAAC;AAC1C,wBAAwB,OAAO,GAAG,UAAU,CAAC,MAAM,EAAE,OAAO,CAAC;AAC7D,qBAAqB,CAAC;AACtB;AACA;AACA;AACA;AACA,QAAQ,MAAM,CAAC,SAAS,CAAC;AACzB,KAAK,CAAC;AACN;;"}
@@ -3,10 +3,9 @@
3
3
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
4
  // SPDX-License-Identifier: Apache-2.0
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.urlSafeDecode = void 0;
6
+ exports.urlSafeDecode = urlSafeDecode;
7
7
  function urlSafeDecode(hex) {
8
8
  const matchArr = hex.match(/.{2}/g) || [];
9
9
  return matchArr.map(char => String.fromCharCode(parseInt(char, 16))).join('');
10
10
  }
11
- exports.urlSafeDecode = urlSafeDecode;
12
11
  //# sourceMappingURL=urlSafeDecode.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"urlSafeDecode.js","sources":["../../../src/utils/urlSafeDecode.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.urlSafeDecode = void 0;\nfunction urlSafeDecode(hex) {\n const matchArr = hex.match(/.{2}/g) || [];\n return matchArr.map(char => String.fromCharCode(parseInt(char, 16))).join('');\n}\nexports.urlSafeDecode = urlSafeDecode;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,aAAa,GAAG,MAAM;AAC9B,SAAS,aAAa,CAAC,GAAG,EAAE;AAC5B,IAAI,MAAM,QAAQ,GAAG,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,EAAE;AAC7C,IAAI,OAAO,QAAQ,CAAC,GAAG,CAAC,IAAI,IAAI,MAAM,CAAC,YAAY,CAAC,QAAQ,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC;AACjF;AACA,OAAO,CAAC,aAAa,GAAG,aAAa;;"}
1
+ {"version":3,"file":"urlSafeDecode.js","sources":["../../../src/utils/urlSafeDecode.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.urlSafeDecode = urlSafeDecode;\nfunction urlSafeDecode(hex) {\n const matchArr = hex.match(/.{2}/g) || [];\n return matchArr.map(char => String.fromCharCode(parseInt(char, 16))).join('');\n}\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,aAAa,GAAG,aAAa;AACrC,SAAS,aAAa,CAAC,GAAG,EAAE;AAC5B,IAAI,MAAM,QAAQ,GAAG,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,EAAE;AAC7C,IAAI,OAAO,QAAQ,CAAC,GAAG,CAAC,IAAI,IAAI,MAAM,CAAC,YAAY,CAAC,QAAQ,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC;AACjF;;"}
@@ -3,12 +3,11 @@
3
3
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
4
  // SPDX-License-Identifier: Apache-2.0
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.urlSafeEncode = void 0;
6
+ exports.urlSafeEncode = urlSafeEncode;
7
7
  function urlSafeEncode(str) {
8
8
  return str
9
9
  .split('')
10
10
  .map(char => char.charCodeAt(0).toString(16).padStart(2, '0'))
11
11
  .join('');
12
12
  }
13
- exports.urlSafeEncode = urlSafeEncode;
14
13
  //# sourceMappingURL=urlSafeEncode.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"urlSafeEncode.js","sources":["../../../src/utils/urlSafeEncode.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.urlSafeEncode = void 0;\nfunction urlSafeEncode(str) {\n return str\n .split('')\n .map(char => char.charCodeAt(0).toString(16).padStart(2, '0'))\n .join('');\n}\nexports.urlSafeEncode = urlSafeEncode;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,aAAa,GAAG,MAAM;AAC9B,SAAS,aAAa,CAAC,GAAG,EAAE;AAC5B,IAAI,OAAO;AACX,SAAS,KAAK,CAAC,EAAE;AACjB,SAAS,GAAG,CAAC,IAAI,IAAI,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC;AACrE,SAAS,IAAI,CAAC,EAAE,CAAC;AACjB;AACA,OAAO,CAAC,aAAa,GAAG,aAAa;;"}
1
+ {"version":3,"file":"urlSafeEncode.js","sources":["../../../src/utils/urlSafeEncode.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.urlSafeEncode = urlSafeEncode;\nfunction urlSafeEncode(str) {\n return str\n .split('')\n .map(char => char.charCodeAt(0).toString(16).padStart(2, '0'))\n .join('');\n}\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,aAAa,GAAG,aAAa;AACrC,SAAS,aAAa,CAAC,GAAG,EAAE;AAC5B,IAAI,OAAO;AACX,SAAS,KAAK,CAAC,EAAE;AACjB,SAAS,GAAG,CAAC,IAAI,IAAI,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC;AACrE,SAAS,IAAI,CAAC,EAAE,CAAC;AACjB;;"}
@@ -5,9 +5,9 @@
5
5
  */
6
6
  const defaultConfig = {
7
7
  keyPrefix: 'aws-amplify-cache',
8
- capacityInBytes: 1048576,
9
- itemMaxSize: 210000,
10
- defaultTTL: 259200000,
8
+ capacityInBytes: 1048576, // 1MB
9
+ itemMaxSize: 210000, // about 200kb
10
+ defaultTTL: 259200000, // about 3 days
11
11
  defaultPriority: 5,
12
12
  warningThreshold: 0.8,
13
13
  };
@@ -1 +1 @@
1
- {"version":3,"file":"constants.mjs","sources":["../../../src/Cache/constants.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n/**\n * Default cache config\n */\nexport const defaultConfig = {\n keyPrefix: 'aws-amplify-cache',\n capacityInBytes: 1048576,\n itemMaxSize: 210000,\n defaultTTL: 259200000,\n defaultPriority: 5,\n warningThreshold: 0.8,\n};\nexport const currentSizeKey = 'CurSize';\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACY,MAAC,aAAa,GAAG;AAC7B,IAAI,SAAS,EAAE,mBAAmB;AAClC,IAAI,eAAe,EAAE,OAAO;AAC5B,IAAI,WAAW,EAAE,MAAM;AACvB,IAAI,UAAU,EAAE,SAAS;AACzB,IAAI,eAAe,EAAE,CAAC;AACtB,IAAI,gBAAgB,EAAE,GAAG;AACzB;AACY,MAAC,cAAc,GAAG;;;;"}
1
+ {"version":3,"file":"constants.mjs","sources":["../../../src/Cache/constants.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n/**\n * Default cache config\n */\nexport const defaultConfig = {\n keyPrefix: 'aws-amplify-cache',\n capacityInBytes: 1048576, // 1MB\n itemMaxSize: 210000, // about 200kb\n defaultTTL: 259200000, // about 3 days\n defaultPriority: 5,\n warningThreshold: 0.8,\n};\nexport const currentSizeKey = 'CurSize';\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACY,MAAC,aAAa,GAAG;AAC7B,IAAI,SAAS,EAAE,mBAAmB;AAClC,IAAI,eAAe,EAAE,OAAO;AAC5B,IAAI,WAAW,EAAE,MAAM;AACvB,IAAI,UAAU,EAAE,SAAS;AACzB,IAAI,eAAe,EAAE,CAAC;AACtB,IAAI,gBAAgB,EAAE,GAAG;AACzB;AACY,MAAC,cAAc,GAAG;;;;"}
@@ -1 +1 @@
1
- export declare const version = "6.14.4";
1
+ export declare const version = "6.14.5-unstable.3c4d29e.0+3c4d29e";
@@ -1,5 +1,5 @@
1
1
  // generated by genversion
2
- const version = '6.14.4';
2
+ const version = '6.14.5-unstable.3c4d29e.0+3c4d29e';
3
3
 
4
4
  export { version };
5
5
  //# sourceMappingURL=version.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.mjs","sources":["../../../src/Platform/version.ts"],"sourcesContent":["// generated by genversion\nexport const version = '6.14.4';\n"],"names":[],"mappings":"AAAA;AACY,MAAC,OAAO,GAAG;;;;"}
1
+ {"version":3,"file":"version.mjs","sources":["../../../src/Platform/version.ts"],"sourcesContent":["// generated by genversion\nexport const version = '6.14.5-unstable.3c4d29e.0+3c4d29e';\n"],"names":[],"mappings":"AAAA;AACY,MAAC,OAAO,GAAG;;;;"}
@@ -14,7 +14,7 @@ export declare const defaultConfig: {
14
14
  endpointResolver: ({ region }: EndpointResolverOptions) => {
15
15
  url: URL;
16
16
  };
17
- retryDecider: (response?: HttpResponse | undefined, error?: unknown) => Promise<import("../../clients").RetryDeciderOutput>;
17
+ retryDecider: (response?: HttpResponse, error?: unknown) => Promise<import("../../clients").RetryDeciderOutput>;
18
18
  computeDelay: (attempt: number) => number;
19
19
  userAgentValue: string;
20
20
  cache: string;
@@ -9,7 +9,7 @@ export declare const getCredentialsForIdentity: (config: {
9
9
  endpointResolver?: (((options: import("../../clients").EndpointResolverOptions, input?: any) => Endpoint) & (({ region }: import("../../clients").EndpointResolverOptions) => {
10
10
  url: URL;
11
11
  })) | undefined;
12
- retryDecider?: (((response?: HttpResponse | undefined, error?: unknown, middlewareContext?: import("../../clients").MiddlewareContext | undefined) => Promise<import("../../clients").RetryDeciderOutput>) & ((response?: HttpResponse | undefined, error?: unknown) => Promise<import("../../clients").RetryDeciderOutput>)) | undefined;
12
+ retryDecider?: (((response?: HttpResponse | undefined, error?: unknown, middlewareContext?: import("../../clients").MiddlewareContext) => Promise<import("../../clients").RetryDeciderOutput>) & ((response?: HttpResponse, error?: unknown) => Promise<import("../../clients").RetryDeciderOutput>)) | undefined;
13
13
  computeDelay?: ((attempt: number) => number) | undefined;
14
14
  userAgentValue?: string | undefined;
15
15
  cache?: "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload" | undefined;
@@ -9,7 +9,7 @@ export declare const getId: (config: {
9
9
  endpointResolver?: (((options: import("../../clients").EndpointResolverOptions, input?: any) => Endpoint) & (({ region }: import("../../clients").EndpointResolverOptions) => {
10
10
  url: URL;
11
11
  })) | undefined;
12
- retryDecider?: (((response?: HttpResponse | undefined, error?: unknown, middlewareContext?: import("../../clients").MiddlewareContext | undefined) => Promise<import("../../clients").RetryDeciderOutput>) & ((response?: HttpResponse | undefined, error?: unknown) => Promise<import("../../clients").RetryDeciderOutput>)) | undefined;
12
+ retryDecider?: (((response?: HttpResponse | undefined, error?: unknown, middlewareContext?: import("../../clients").MiddlewareContext) => Promise<import("../../clients").RetryDeciderOutput>) & ((response?: HttpResponse, error?: unknown) => Promise<import("../../clients").RetryDeciderOutput>)) | undefined;
13
13
  computeDelay?: ((attempt: number) => number) | undefined;
14
14
  userAgentValue?: string | undefined;
15
15
  cache?: "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload" | undefined;
@@ -7,7 +7,7 @@ export declare const defaultConfig: {
7
7
  endpointResolver: ({ region }: EndpointResolverOptions) => {
8
8
  url: URL;
9
9
  };
10
- retryDecider: (response?: import("../../clients/types").HttpResponse | undefined, error?: unknown) => Promise<import("../../clients/middleware/retry").RetryDeciderOutput>;
10
+ retryDecider: (response?: import("../../clients/types").HttpResponse, error?: unknown) => Promise<import("../../clients/middleware/retry").RetryDeciderOutput>;
11
11
  computeDelay: (attempt: number) => number;
12
12
  userAgentValue: string;
13
13
  };
@@ -9,7 +9,7 @@ export declare const getInAppMessages: (config: {
9
9
  endpointResolver?: (((options: import("../../clients/types").EndpointResolverOptions, input?: any) => Endpoint) & (({ region }: import("../../clients/types").EndpointResolverOptions) => {
10
10
  url: URL;
11
11
  })) | undefined;
12
- retryDecider?: (((response?: HttpResponse | undefined, error?: unknown, middlewareContext?: import("../../clients/types").MiddlewareContext | undefined) => Promise<import("../../clients").RetryDeciderOutput>) & ((response?: HttpResponse | undefined, error?: unknown) => Promise<import("../../clients").RetryDeciderOutput>)) | undefined;
12
+ retryDecider?: (((response?: HttpResponse | undefined, error?: unknown, middlewareContext?: import("../../clients/types").MiddlewareContext) => Promise<import("../../clients").RetryDeciderOutput>) & ((response?: HttpResponse, error?: unknown) => Promise<import("../../clients").RetryDeciderOutput>)) | undefined;
13
13
  computeDelay?: ((attempt: number) => number) | undefined;
14
14
  userAgentValue?: string | undefined;
15
15
  } & {
@@ -18,7 +18,7 @@ export declare const getInAppMessages: (config: {
18
18
  withCrossDomainCredentials?: boolean | undefined;
19
19
  maxAttempts?: number | undefined;
20
20
  region: string;
21
- credentials: import("@smithy/types/dist-types/identity/awsCredentialIdentity").AwsCredentialIdentity | ((options?: import("../../clients").CredentialsProviderOptions | undefined) => Promise<import("@smithy/types/dist-types/identity/awsCredentialIdentity").AwsCredentialIdentity>);
21
+ credentials: import("@smithy/types/dist-types/identity/awsCredentialIdentity").AwsCredentialIdentity | ((options?: import("../../clients").CredentialsProviderOptions) => Promise<import("@smithy/types/dist-types/identity/awsCredentialIdentity").AwsCredentialIdentity>);
22
22
  uriEscapePath?: boolean | undefined;
23
23
  userAgentHeader?: string | undefined;
24
24
  }, input: import("./types").GetInAppMessagesRequest) => Promise<GetInAppMessagesOutput>;
@@ -9,7 +9,7 @@ export declare const putEvents: (config: {
9
9
  endpointResolver?: (((options: import("../../clients/types").EndpointResolverOptions, input?: any) => Endpoint) & (({ region }: import("../../clients/types").EndpointResolverOptions) => {
10
10
  url: URL;
11
11
  })) | undefined;
12
- retryDecider?: (((response?: HttpResponse | undefined, error?: unknown, middlewareContext?: import("../../clients/types").MiddlewareContext | undefined) => Promise<import("../../clients").RetryDeciderOutput>) & ((response?: HttpResponse | undefined, error?: unknown) => Promise<import("../../clients").RetryDeciderOutput>)) | undefined;
12
+ retryDecider?: (((response?: HttpResponse | undefined, error?: unknown, middlewareContext?: import("../../clients/types").MiddlewareContext) => Promise<import("../../clients").RetryDeciderOutput>) & ((response?: HttpResponse, error?: unknown) => Promise<import("../../clients").RetryDeciderOutput>)) | undefined;
13
13
  computeDelay?: ((attempt: number) => number) | undefined;
14
14
  userAgentValue?: string | undefined;
15
15
  } & {
@@ -18,7 +18,7 @@ export declare const putEvents: (config: {
18
18
  withCrossDomainCredentials?: boolean | undefined;
19
19
  maxAttempts?: number | undefined;
20
20
  region: string;
21
- credentials: import("@smithy/types/dist-types/identity/awsCredentialIdentity").AwsCredentialIdentity | ((options?: import("../../clients").CredentialsProviderOptions | undefined) => Promise<import("@smithy/types/dist-types/identity/awsCredentialIdentity").AwsCredentialIdentity>);
21
+ credentials: import("@smithy/types/dist-types/identity/awsCredentialIdentity").AwsCredentialIdentity | ((options?: import("../../clients").CredentialsProviderOptions) => Promise<import("@smithy/types/dist-types/identity/awsCredentialIdentity").AwsCredentialIdentity>);
22
22
  uriEscapePath?: boolean | undefined;
23
23
  userAgentHeader?: string | undefined;
24
24
  }, input: import("./types").PutEventsRequest) => Promise<PutEventsOutput>;
@@ -9,7 +9,7 @@ export declare const updateEndpoint: (config: {
9
9
  endpointResolver?: (((options: import("../../clients/types").EndpointResolverOptions, input?: any) => Endpoint) & (({ region }: import("../../clients/types").EndpointResolverOptions) => {
10
10
  url: URL;
11
11
  })) | undefined;
12
- retryDecider?: (((response?: HttpResponse | undefined, error?: unknown, middlewareContext?: import("../../clients/types").MiddlewareContext | undefined) => Promise<import("../../clients").RetryDeciderOutput>) & ((response?: HttpResponse | undefined, error?: unknown) => Promise<import("../../clients").RetryDeciderOutput>)) | undefined;
12
+ retryDecider?: (((response?: HttpResponse | undefined, error?: unknown, middlewareContext?: import("../../clients/types").MiddlewareContext) => Promise<import("../../clients").RetryDeciderOutput>) & ((response?: HttpResponse, error?: unknown) => Promise<import("../../clients").RetryDeciderOutput>)) | undefined;
13
13
  computeDelay?: ((attempt: number) => number) | undefined;
14
14
  userAgentValue?: string | undefined;
15
15
  } & {
@@ -18,7 +18,7 @@ export declare const updateEndpoint: (config: {
18
18
  withCrossDomainCredentials?: boolean | undefined;
19
19
  maxAttempts?: number | undefined;
20
20
  region: string;
21
- credentials: import("@smithy/types/dist-types/identity/awsCredentialIdentity").AwsCredentialIdentity | ((options?: import("../../clients").CredentialsProviderOptions | undefined) => Promise<import("@smithy/types/dist-types/identity/awsCredentialIdentity").AwsCredentialIdentity>);
21
+ credentials: import("@smithy/types/dist-types/identity/awsCredentialIdentity").AwsCredentialIdentity | ((options?: import("../../clients").CredentialsProviderOptions) => Promise<import("@smithy/types/dist-types/identity/awsCredentialIdentity").AwsCredentialIdentity>);
22
22
  uriEscapePath?: boolean | undefined;
23
23
  userAgentHeader?: string | undefined;
24
24
  }, input: import("./types").UpdateEndpointRequest) => Promise<UpdateEndpointOutput>;
@@ -37,7 +37,10 @@ import { HttpRequest, HttpResponse } from '../types/http';
37
37
  *
38
38
  * @internal
39
39
  */
40
- export declare const composeServiceApi: <TransferHandlerOptions, Input, Output, DefaultConfig>(transferHandler: TransferHandler<HttpRequest, HttpResponse, TransferHandlerOptions>, serializer: (input: Input, endpoint: Endpoint) => Promise<HttpRequest> | HttpRequest, deserializer: (output: HttpResponse) => Promise<Output>, defaultConfig: Partial<DefaultConfig>) => (config: OptionalizeKey<TransferHandlerOptions & ServiceClientOptions & InferEndpointResolverOptionType<DefaultConfig> & Partial<DefaultConfig>, DefaultConfig>, input: Input) => Promise<Output>;
40
+ export declare const composeServiceApi: <TransferHandlerOptions, Input, Output, DefaultConfig>(transferHandler: TransferHandler<HttpRequest, HttpResponse, TransferHandlerOptions>, serializer: (input: Input, endpoint: Endpoint) => Promise<HttpRequest> | HttpRequest, deserializer: (output: HttpResponse) => Promise<Output>, defaultConfig: Partial<DefaultConfig>) => (config: OptionalizeKey<TransferHandlerOptions & ServiceClientOptions & // Required configs(e.g. endpointResolver, region) to serialize input shapes into requests
41
+ InferEndpointResolverOptionType<DefaultConfig> & // Required inputs for endpointResolver
42
+ Partial<DefaultConfig>, // Properties defined in default configs, we need to allow overwriting them when invoking the service API handler
43
+ DefaultConfig>, input: Input) => Promise<Output>;
41
44
  /**
42
45
  * Type helper to make a given key optional in a given type. For all the keys in the `InputDefaultsType`, if its value
43
46
  * is assignable to the value of the same key in `InputType`, we will mark the key in `InputType` is optional. If
@@ -7,7 +7,7 @@ import { Middleware, Request as RequestBase, Response as ResponseBase, TransferH
7
7
  * transfer handler's option type and the middleware's option type.
8
8
  * @internal
9
9
  */
10
- export declare const composeTransferHandler: <MiddlewareOptionsArr extends any[] = [], Request_1 extends RequestBase = RequestBase, Response_1 extends ResponseBase = ResponseBase, CoreHandler extends TransferHandler<Request_1, Response_1, any> = TransferHandler<Request_1, Response_1, Record<string, unknown>>>(coreHandler: CoreHandler, middleware: OptionToMiddleware<Request_1, Response_1, MiddlewareOptionsArr>) => (request: Request_1, options: MergeNoConflictKeys<[...MiddlewareOptionsArr, InferOptionTypeFromTransferHandler<CoreHandler>]>) => Promise<Response_1>;
10
+ export declare const composeTransferHandler: <MiddlewareOptionsArr extends any[] = [], Request extends RequestBase = RequestBase, Response extends ResponseBase = ResponseBase, CoreHandler extends TransferHandler<Request, Response, any> = TransferHandler<Request, Response, Record<string, unknown>>>(coreHandler: CoreHandler, middleware: OptionToMiddleware<Request, Response, MiddlewareOptionsArr>) => (request: Request, options: MergeNoConflictKeys<[...MiddlewareOptionsArr, InferOptionTypeFromTransferHandler<CoreHandler>]>) => Promise<Response>;
11
11
  /**
12
12
  * Type to convert a middleware option type to a middleware type with the given
13
13
  * option type.
@@ -10,4 +10,4 @@ import { HttpRequest } from '../../../../../types';
10
10
  *
11
11
  * @internal
12
12
  */
13
- export declare const getCanonicalHeaders: (headers: HttpRequest['headers']) => string;
13
+ export declare const getCanonicalHeaders: (headers: HttpRequest["headers"]) => string;
@@ -8,4 +8,4 @@ import { HttpRequest } from '../../../../../types';
8
8
  *
9
9
  * @internal
10
10
  */
11
- export declare const getHashedPayload: (body: HttpRequest['body']) => string;
11
+ export declare const getHashedPayload: (body: HttpRequest["body"]) => string;
@@ -8,4 +8,4 @@ import { HttpRequest } from '../../../../../types';
8
8
  *
9
9
  * @internal
10
10
  */
11
- export declare const getSignedHeaders: (headers: HttpRequest['headers']) => string;
11
+ export declare const getSignedHeaders: (headers: HttpRequest["headers"]) => string;
@@ -1,12 +1,13 @@
1
1
  declare const AmplifyUrl: {
2
- new (url: string | URL, base?: string | URL | undefined): URL;
2
+ new (url: string | URL, base?: string | URL): URL;
3
3
  prototype: URL;
4
+ canParse(url: string | URL, base?: string | URL): boolean;
4
5
  createObjectURL(obj: Blob | MediaSource): string;
6
+ parse(url: string | URL, base?: string | URL): URL | null;
5
7
  revokeObjectURL(url: string): void;
6
8
  };
7
9
  declare const AmplifyUrlSearchParams: {
8
- new (init?: string | Record<string, string> | URLSearchParams | string[][] | undefined): URLSearchParams;
10
+ new (init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams;
9
11
  prototype: URLSearchParams;
10
- toString(): string;
11
12
  };
12
13
  export { AmplifyUrl, AmplifyUrlSearchParams };
@@ -1,12 +1,13 @@
1
1
  declare const AmplifyUrl: {
2
- new (url: string | URL, base?: string | URL | undefined): URL;
2
+ new (url: string | URL, base?: string | URL): URL;
3
3
  prototype: URL;
4
+ canParse(url: string | URL, base?: string | URL): boolean;
4
5
  createObjectURL(obj: Blob | MediaSource): string;
6
+ parse(url: string | URL, base?: string | URL): URL | null;
5
7
  revokeObjectURL(url: string): void;
6
8
  };
7
9
  declare const AmplifyUrlSearchParams: {
8
- new (init?: string | Record<string, string> | URLSearchParams | string[][] | undefined): URLSearchParams;
10
+ new (init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams;
9
11
  prototype: URLSearchParams;
10
- toString(): string;
11
12
  };
12
13
  export { AmplifyUrl, AmplifyUrlSearchParams };
@@ -1,3 +1,3 @@
1
1
  import { QueuedStorage } from './types';
2
- export declare const keyPrefix: string;
2
+ export declare const keyPrefix = "@amplify_logging_cloudwatch";
3
3
  export declare const createQueuedStorage: () => QueuedStorage;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/core",
3
- "version": "6.11.4",
3
+ "version": "6.11.5-unstable.3c4d29e.0+3c4d29e",
4
4
  "description": "Core category of aws-amplify",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.mjs",
@@ -60,10 +60,9 @@
60
60
  "uuid": "^9.0.0"
61
61
  },
62
62
  "devDependencies": {
63
- "@aws-amplify/react-native": "1.1.9",
63
+ "@aws-amplify/react-native": "1.1.10-unstable.3c4d29e.0+3c4d29e",
64
64
  "@types/js-cookie": "3.0.2",
65
- "genversion": "^2.2.0",
66
- "typescript": "5.0.2"
65
+ "genversion": "^2.2.0"
67
66
  },
68
67
  "size-limit": [
69
68
  {
@@ -192,5 +191,5 @@
192
191
  ]
193
192
  }
194
193
  },
195
- "gitHead": "f2ac9929610f7f878f124083ceaf03465113cd44"
194
+ "gitHead": "3c4d29e37797e6bec73db534278ed5ffd3c5d7e5"
196
195
  }
@@ -1,2 +1,2 @@
1
1
  // generated by genversion
2
- export const version = '6.14.4';
2
+ export const version = '6.14.5-unstable.3c4d29e.0+3c4d29e';