@aws-amplify/react-native 0.0.0-changesets-preid-f620002-20260129130740

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 (149) hide show
  1. package/AmplifyRTNCore.podspec +41 -0
  2. package/README.md +3 -0
  3. package/android/build.gradle +103 -0
  4. package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  5. package/android/gradle/wrapper/gradle-wrapper.properties +5 -0
  6. package/android/gradle.properties +5 -0
  7. package/android/gradlew +234 -0
  8. package/android/gradlew.bat +89 -0
  9. package/android/src/hasPackageName/AndroidManifest.xml +4 -0
  10. package/android/src/main/AndroidManifest.xml +3 -0
  11. package/android/src/main/kotlin/com/amazonaws/amplify/rtncore/AmplifyRTNCoreModule.kt +43 -0
  12. package/android/src/main/kotlin/com/amazonaws/amplify/rtncore/AmplifyRTNCorePackage.kt +17 -0
  13. package/android/src/main/kotlin/com/amazonaws/amplify/rtncore/BigInteger.kt +65 -0
  14. package/dist/cjs/apis/computeModPow.js +10 -0
  15. package/dist/cjs/apis/computeModPow.js.map +1 -0
  16. package/dist/cjs/apis/computeS.js +10 -0
  17. package/dist/cjs/apis/computeS.js.map +1 -0
  18. package/dist/cjs/apis/getDeviceName.js +10 -0
  19. package/dist/cjs/apis/getDeviceName.js.map +1 -0
  20. package/dist/cjs/apis/getIsNativeError.js +13 -0
  21. package/dist/cjs/apis/getIsNativeError.js.map +1 -0
  22. package/dist/cjs/apis/getOperatingSystem.js +10 -0
  23. package/dist/cjs/apis/getOperatingSystem.js.map +1 -0
  24. package/dist/cjs/apis/index.js +17 -0
  25. package/dist/cjs/apis/index.js.map +1 -0
  26. package/dist/cjs/index.js +24 -0
  27. package/dist/cjs/index.js.map +1 -0
  28. package/dist/cjs/moduleLoaders/index.js +27 -0
  29. package/dist/cjs/moduleLoaders/index.js.map +1 -0
  30. package/dist/cjs/moduleLoaders/loadAmplifyPushNotification.js +26 -0
  31. package/dist/cjs/moduleLoaders/loadAmplifyPushNotification.js.map +1 -0
  32. package/dist/cjs/moduleLoaders/loadAmplifyRtnPasskeys.js +26 -0
  33. package/dist/cjs/moduleLoaders/loadAmplifyRtnPasskeys.js.map +1 -0
  34. package/dist/cjs/moduleLoaders/loadAmplifyWebBrowser.js +26 -0
  35. package/dist/cjs/moduleLoaders/loadAmplifyWebBrowser.js.map +1 -0
  36. package/dist/cjs/moduleLoaders/loadAppState.js +10 -0
  37. package/dist/cjs/moduleLoaders/loadAppState.js.map +1 -0
  38. package/dist/cjs/moduleLoaders/loadAsyncStorage.js +27 -0
  39. package/dist/cjs/moduleLoaders/loadAsyncStorage.js.map +1 -0
  40. package/dist/cjs/moduleLoaders/loadBase64.js +10 -0
  41. package/dist/cjs/moduleLoaders/loadBase64.js.map +1 -0
  42. package/dist/cjs/moduleLoaders/loadBuffer.js +10 -0
  43. package/dist/cjs/moduleLoaders/loadBuffer.js.map +1 -0
  44. package/dist/cjs/moduleLoaders/loadGetRandomValues.js +22 -0
  45. package/dist/cjs/moduleLoaders/loadGetRandomValues.js.map +1 -0
  46. package/dist/cjs/moduleLoaders/loadNetInfo.js +27 -0
  47. package/dist/cjs/moduleLoaders/loadNetInfo.js.map +1 -0
  48. package/dist/cjs/moduleLoaders/loadUrlPolyfill.js +22 -0
  49. package/dist/cjs/moduleLoaders/loadUrlPolyfill.js.map +1 -0
  50. package/dist/cjs/nativeModule.js +19 -0
  51. package/dist/cjs/nativeModule.js.map +1 -0
  52. package/dist/cjs/types.js +6 -0
  53. package/dist/cjs/types.js.map +1 -0
  54. package/dist/esm/apis/computeModPow.d.ts +2 -0
  55. package/dist/esm/apis/computeModPow.mjs +8 -0
  56. package/dist/esm/apis/computeModPow.mjs.map +1 -0
  57. package/dist/esm/apis/computeS.d.ts +2 -0
  58. package/dist/esm/apis/computeS.mjs +8 -0
  59. package/dist/esm/apis/computeS.mjs.map +1 -0
  60. package/dist/esm/apis/getDeviceName.d.ts +2 -0
  61. package/dist/esm/apis/getDeviceName.mjs +8 -0
  62. package/dist/esm/apis/getDeviceName.mjs.map +1 -0
  63. package/dist/esm/apis/getIsNativeError.d.ts +9 -0
  64. package/dist/esm/apis/getIsNativeError.mjs +10 -0
  65. package/dist/esm/apis/getIsNativeError.mjs.map +1 -0
  66. package/dist/esm/apis/getOperatingSystem.d.ts +1 -0
  67. package/dist/esm/apis/getOperatingSystem.mjs +8 -0
  68. package/dist/esm/apis/getOperatingSystem.mjs.map +1 -0
  69. package/dist/esm/apis/index.d.ts +5 -0
  70. package/dist/esm/apis/index.mjs +6 -0
  71. package/dist/esm/apis/index.mjs.map +1 -0
  72. package/dist/esm/index.d.ts +2 -0
  73. package/dist/esm/index.mjs +16 -0
  74. package/dist/esm/index.mjs.map +1 -0
  75. package/dist/esm/moduleLoaders/index.d.ts +10 -0
  76. package/dist/esm/moduleLoaders/index.mjs +11 -0
  77. package/dist/esm/moduleLoaders/index.mjs.map +1 -0
  78. package/dist/esm/moduleLoaders/loadAmplifyPushNotification.d.ts +21 -0
  79. package/dist/esm/moduleLoaders/loadAmplifyPushNotification.mjs +23 -0
  80. package/dist/esm/moduleLoaders/loadAmplifyPushNotification.mjs.map +1 -0
  81. package/dist/esm/moduleLoaders/loadAmplifyRtnPasskeys.d.ts +1 -0
  82. package/dist/esm/moduleLoaders/loadAmplifyRtnPasskeys.mjs +23 -0
  83. package/dist/esm/moduleLoaders/loadAmplifyRtnPasskeys.mjs.map +1 -0
  84. package/dist/esm/moduleLoaders/loadAmplifyWebBrowser.d.ts +3 -0
  85. package/dist/esm/moduleLoaders/loadAmplifyWebBrowser.mjs +23 -0
  86. package/dist/esm/moduleLoaders/loadAmplifyWebBrowser.mjs.map +1 -0
  87. package/dist/esm/moduleLoaders/loadAppState.d.ts +1 -0
  88. package/dist/esm/moduleLoaders/loadAppState.mjs +8 -0
  89. package/dist/esm/moduleLoaders/loadAppState.mjs.map +1 -0
  90. package/dist/esm/moduleLoaders/loadAsyncStorage.d.ts +2 -0
  91. package/dist/esm/moduleLoaders/loadAsyncStorage.mjs +24 -0
  92. package/dist/esm/moduleLoaders/loadAsyncStorage.mjs.map +1 -0
  93. package/dist/esm/moduleLoaders/loadBase64.d.ts +5 -0
  94. package/dist/esm/moduleLoaders/loadBase64.mjs +8 -0
  95. package/dist/esm/moduleLoaders/loadBase64.mjs.map +1 -0
  96. package/dist/esm/moduleLoaders/loadBuffer.d.ts +21 -0
  97. package/dist/esm/moduleLoaders/loadBuffer.mjs +8 -0
  98. package/dist/esm/moduleLoaders/loadBuffer.mjs.map +1 -0
  99. package/dist/esm/moduleLoaders/loadGetRandomValues.d.ts +1 -0
  100. package/dist/esm/moduleLoaders/loadGetRandomValues.mjs +19 -0
  101. package/dist/esm/moduleLoaders/loadGetRandomValues.mjs.map +1 -0
  102. package/dist/esm/moduleLoaders/loadNetInfo.d.ts +4 -0
  103. package/dist/esm/moduleLoaders/loadNetInfo.mjs +24 -0
  104. package/dist/esm/moduleLoaders/loadNetInfo.mjs.map +1 -0
  105. package/dist/esm/moduleLoaders/loadUrlPolyfill.d.ts +1 -0
  106. package/dist/esm/moduleLoaders/loadUrlPolyfill.mjs +19 -0
  107. package/dist/esm/moduleLoaders/loadUrlPolyfill.mjs.map +1 -0
  108. package/dist/esm/nativeModule.d.ts +2 -0
  109. package/dist/esm/nativeModule.mjs +18 -0
  110. package/dist/esm/nativeModule.mjs.map +1 -0
  111. package/dist/esm/types.d.ts +16 -0
  112. package/dist/esm/types.mjs +2 -0
  113. package/dist/esm/types.mjs.map +1 -0
  114. package/ios/AmplifyRTNCore-Bridging-Header.h +5 -0
  115. package/ios/AmplifyRTNCore.mm +24 -0
  116. package/ios/AmplifyRTNCore.swift +45 -0
  117. package/ios/AmplifyRTNCore.xcodeproj/project.pbxproj +283 -0
  118. package/ios/AmplifyRTNCore.xcodeproj/project.xcworkspace/contents.xcworkspacedata +4 -0
  119. package/ios/BigInteger.swift +78 -0
  120. package/ios/JKBigInteger/JKBigDecimal.h +40 -0
  121. package/ios/JKBigInteger/JKBigDecimal.m +224 -0
  122. package/ios/JKBigInteger/JKBigInteger.h +58 -0
  123. package/ios/JKBigInteger/JKBigInteger.m +419 -0
  124. package/ios/JKBigInteger/LICENSE.txt +18 -0
  125. package/ios/JKBigInteger/LibTomMath/tommath.c +6925 -0
  126. package/ios/JKBigInteger/LibTomMath/tommath.h +584 -0
  127. package/ios/JKBigInteger/LibTomMath/tommath_class.h +999 -0
  128. package/ios/JKBigInteger/LibTomMath/tommath_superclass.h +76 -0
  129. package/package.json +73 -0
  130. package/src/apis/computeModPow.ts +8 -0
  131. package/src/apis/computeS.ts +8 -0
  132. package/src/apis/getDeviceName.ts +8 -0
  133. package/src/apis/getIsNativeError.ts +18 -0
  134. package/src/apis/getOperatingSystem.ts +6 -0
  135. package/src/apis/index.ts +8 -0
  136. package/src/index.ts +22 -0
  137. package/src/moduleLoaders/index.ts +13 -0
  138. package/src/moduleLoaders/loadAmplifyPushNotification.ts +28 -0
  139. package/src/moduleLoaders/loadAmplifyRtnPasskeys.ts +28 -0
  140. package/src/moduleLoaders/loadAmplifyWebBrowser.ts +28 -0
  141. package/src/moduleLoaders/loadAppState.ts +6 -0
  142. package/src/moduleLoaders/loadAsyncStorage.ts +29 -0
  143. package/src/moduleLoaders/loadBase64.ts +6 -0
  144. package/src/moduleLoaders/loadBuffer.ts +6 -0
  145. package/src/moduleLoaders/loadGetRandomValues.ts +19 -0
  146. package/src/moduleLoaders/loadNetInfo.ts +31 -0
  147. package/src/moduleLoaders/loadUrlPolyfill.ts +19 -0
  148. package/src/nativeModule.ts +23 -0
  149. package/src/types.ts +21 -0
@@ -0,0 +1,13 @@
1
+ 'use strict';
2
+
3
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
+ // SPDX-License-Identifier: Apache-2.0
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.getIsNativeError = void 0;
7
+ const getIsNativeError = (err) => {
8
+ return (err instanceof Error &&
9
+ 'code' in err &&
10
+ ('nativeStackIOS' in err || 'nativeStackAndroid' in err));
11
+ };
12
+ exports.getIsNativeError = getIsNativeError;
13
+ //# sourceMappingURL=getIsNativeError.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getIsNativeError.js","sources":["../../../src/apis/getIsNativeError.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.getIsNativeError = void 0;\nconst getIsNativeError = (err) => {\n return (err instanceof Error &&\n 'code' in err &&\n ('nativeStackIOS' in err || 'nativeStackAndroid' in err));\n};\nexports.getIsNativeError = getIsNativeError;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,gBAAgB,GAAG,MAAM;AACjC,MAAM,gBAAgB,GAAG,CAAC,GAAG,KAAK;AAClC,IAAI,QAAQ,GAAG,YAAY,KAAK;AAChC,QAAQ,MAAM,IAAI,GAAG;AACrB,SAAS,gBAAgB,IAAI,GAAG,IAAI,oBAAoB,IAAI,GAAG,CAAC;AAChE,CAAC;AACD,OAAO,CAAC,gBAAgB,GAAG,gBAAgB;;"}
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
+ // SPDX-License-Identifier: Apache-2.0
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.getOperatingSystem = void 0;
7
+ const react_native_1 = require("react-native");
8
+ const getOperatingSystem = () => react_native_1.Platform.OS;
9
+ exports.getOperatingSystem = getOperatingSystem;
10
+ //# sourceMappingURL=getOperatingSystem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getOperatingSystem.js","sources":["../../../src/apis/getOperatingSystem.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.getOperatingSystem = void 0;\nconst react_native_1 = require(\"react-native\");\nconst getOperatingSystem = () => react_native_1.Platform.OS;\nexports.getOperatingSystem = getOperatingSystem;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,kBAAkB,GAAG,MAAM;AACnC,MAAM,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC;AAC9C,MAAM,kBAAkB,GAAG,MAAM,cAAc,CAAC,QAAQ,CAAC,EAAE;AAC3D,OAAO,CAAC,kBAAkB,GAAG,kBAAkB;;"}
@@ -0,0 +1,17 @@
1
+ 'use strict';
2
+
3
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
+ // SPDX-License-Identifier: Apache-2.0
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.getIsNativeError = exports.getDeviceName = exports.getOperatingSystem = exports.computeS = exports.computeModPow = void 0;
7
+ var computeModPow_1 = require("./computeModPow");
8
+ Object.defineProperty(exports, "computeModPow", { enumerable: true, get: function () { return computeModPow_1.computeModPow; } });
9
+ var computeS_1 = require("./computeS");
10
+ Object.defineProperty(exports, "computeS", { enumerable: true, get: function () { return computeS_1.computeS; } });
11
+ var getOperatingSystem_1 = require("./getOperatingSystem");
12
+ Object.defineProperty(exports, "getOperatingSystem", { enumerable: true, get: function () { return getOperatingSystem_1.getOperatingSystem; } });
13
+ var getDeviceName_1 = require("./getDeviceName");
14
+ Object.defineProperty(exports, "getDeviceName", { enumerable: true, get: function () { return getDeviceName_1.getDeviceName; } });
15
+ var getIsNativeError_1 = require("./getIsNativeError");
16
+ Object.defineProperty(exports, "getIsNativeError", { enumerable: true, get: function () { return getIsNativeError_1.getIsNativeError; } });
17
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/apis/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.getIsNativeError = exports.getDeviceName = exports.getOperatingSystem = exports.computeS = exports.computeModPow = void 0;\nvar computeModPow_1 = require(\"./computeModPow\");\nObject.defineProperty(exports, \"computeModPow\", { enumerable: true, get: function () { return computeModPow_1.computeModPow; } });\nvar computeS_1 = require(\"./computeS\");\nObject.defineProperty(exports, \"computeS\", { enumerable: true, get: function () { return computeS_1.computeS; } });\nvar getOperatingSystem_1 = require(\"./getOperatingSystem\");\nObject.defineProperty(exports, \"getOperatingSystem\", { enumerable: true, get: function () { return getOperatingSystem_1.getOperatingSystem; } });\nvar getDeviceName_1 = require(\"./getDeviceName\");\nObject.defineProperty(exports, \"getDeviceName\", { enumerable: true, get: function () { return getDeviceName_1.getDeviceName; } });\nvar getIsNativeError_1 = require(\"./getIsNativeError\");\nObject.defineProperty(exports, \"getIsNativeError\", { enumerable: true, get: function () { return getIsNativeError_1.getIsNativeError; } });\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,gBAAgB,GAAG,OAAO,CAAC,aAAa,GAAG,OAAO,CAAC,kBAAkB,GAAG,OAAO,CAAC,QAAQ,GAAG,OAAO,CAAC,aAAa,GAAG,MAAM;AACjI,IAAI,eAAe,GAAG,OAAO,CAAC,iBAAiB,CAAC;AAChD,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,eAAe,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,eAAe,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC;AACjI,IAAI,UAAU,GAAG,OAAO,CAAC,YAAY,CAAC;AACtC,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,UAAU,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC;AAClH,IAAI,oBAAoB,GAAG,OAAO,CAAC,sBAAsB,CAAC;AAC1D,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,oBAAoB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,oBAAoB,CAAC,kBAAkB,CAAC,CAAC,CAAC,EAAE,CAAC;AAChJ,IAAI,eAAe,GAAG,OAAO,CAAC,iBAAiB,CAAC;AAChD,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,eAAe,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,eAAe,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC;AACjI,IAAI,kBAAkB,GAAG,OAAO,CAAC,oBAAoB,CAAC;AACtD,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,kBAAkB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,kBAAkB,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAAE,CAAC;;"}
@@ -0,0 +1,24 @@
1
+ 'use strict';
2
+
3
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
+ // SPDX-License-Identifier: Apache-2.0
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.loadAppState = exports.loadBase64 = exports.loadGetRandomValues = exports.loadUrlPolyfill = exports.loadBuffer = exports.loadNetInfo = exports.loadAsyncStorage = exports.loadAmplifyWebBrowser = exports.loadAmplifyPushNotification = exports.loadAmplifyRtnPasskeys = exports.getIsNativeError = exports.getDeviceName = exports.getOperatingSystem = exports.computeS = exports.computeModPow = void 0;
7
+ var apis_1 = require("./apis");
8
+ Object.defineProperty(exports, "computeModPow", { enumerable: true, get: function () { return apis_1.computeModPow; } });
9
+ Object.defineProperty(exports, "computeS", { enumerable: true, get: function () { return apis_1.computeS; } });
10
+ Object.defineProperty(exports, "getOperatingSystem", { enumerable: true, get: function () { return apis_1.getOperatingSystem; } });
11
+ Object.defineProperty(exports, "getDeviceName", { enumerable: true, get: function () { return apis_1.getDeviceName; } });
12
+ Object.defineProperty(exports, "getIsNativeError", { enumerable: true, get: function () { return apis_1.getIsNativeError; } });
13
+ var moduleLoaders_1 = require("./moduleLoaders");
14
+ Object.defineProperty(exports, "loadAmplifyRtnPasskeys", { enumerable: true, get: function () { return moduleLoaders_1.loadAmplifyRtnPasskeys; } });
15
+ Object.defineProperty(exports, "loadAmplifyPushNotification", { enumerable: true, get: function () { return moduleLoaders_1.loadAmplifyPushNotification; } });
16
+ Object.defineProperty(exports, "loadAmplifyWebBrowser", { enumerable: true, get: function () { return moduleLoaders_1.loadAmplifyWebBrowser; } });
17
+ Object.defineProperty(exports, "loadAsyncStorage", { enumerable: true, get: function () { return moduleLoaders_1.loadAsyncStorage; } });
18
+ Object.defineProperty(exports, "loadNetInfo", { enumerable: true, get: function () { return moduleLoaders_1.loadNetInfo; } });
19
+ Object.defineProperty(exports, "loadBuffer", { enumerable: true, get: function () { return moduleLoaders_1.loadBuffer; } });
20
+ Object.defineProperty(exports, "loadUrlPolyfill", { enumerable: true, get: function () { return moduleLoaders_1.loadUrlPolyfill; } });
21
+ Object.defineProperty(exports, "loadGetRandomValues", { enumerable: true, get: function () { return moduleLoaders_1.loadGetRandomValues; } });
22
+ Object.defineProperty(exports, "loadBase64", { enumerable: true, get: function () { return moduleLoaders_1.loadBase64; } });
23
+ Object.defineProperty(exports, "loadAppState", { enumerable: true, get: function () { return moduleLoaders_1.loadAppState; } });
24
+ //# sourceMappingURL=index.js.map
@@ -0,0 +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.loadAppState = exports.loadBase64 = exports.loadGetRandomValues = exports.loadUrlPolyfill = exports.loadBuffer = exports.loadNetInfo = exports.loadAsyncStorage = exports.loadAmplifyWebBrowser = exports.loadAmplifyPushNotification = exports.loadAmplifyRtnPasskeys = exports.getIsNativeError = exports.getDeviceName = exports.getOperatingSystem = exports.computeS = exports.computeModPow = void 0;\nvar apis_1 = require(\"./apis\");\nObject.defineProperty(exports, \"computeModPow\", { enumerable: true, get: function () { return apis_1.computeModPow; } });\nObject.defineProperty(exports, \"computeS\", { enumerable: true, get: function () { return apis_1.computeS; } });\nObject.defineProperty(exports, \"getOperatingSystem\", { enumerable: true, get: function () { return apis_1.getOperatingSystem; } });\nObject.defineProperty(exports, \"getDeviceName\", { enumerable: true, get: function () { return apis_1.getDeviceName; } });\nObject.defineProperty(exports, \"getIsNativeError\", { enumerable: true, get: function () { return apis_1.getIsNativeError; } });\nvar moduleLoaders_1 = require(\"./moduleLoaders\");\nObject.defineProperty(exports, \"loadAmplifyRtnPasskeys\", { enumerable: true, get: function () { return moduleLoaders_1.loadAmplifyRtnPasskeys; } });\nObject.defineProperty(exports, \"loadAmplifyPushNotification\", { enumerable: true, get: function () { return moduleLoaders_1.loadAmplifyPushNotification; } });\nObject.defineProperty(exports, \"loadAmplifyWebBrowser\", { enumerable: true, get: function () { return moduleLoaders_1.loadAmplifyWebBrowser; } });\nObject.defineProperty(exports, \"loadAsyncStorage\", { enumerable: true, get: function () { return moduleLoaders_1.loadAsyncStorage; } });\nObject.defineProperty(exports, \"loadNetInfo\", { enumerable: true, get: function () { return moduleLoaders_1.loadNetInfo; } });\nObject.defineProperty(exports, \"loadBuffer\", { enumerable: true, get: function () { return moduleLoaders_1.loadBuffer; } });\nObject.defineProperty(exports, \"loadUrlPolyfill\", { enumerable: true, get: function () { return moduleLoaders_1.loadUrlPolyfill; } });\nObject.defineProperty(exports, \"loadGetRandomValues\", { enumerable: true, get: function () { return moduleLoaders_1.loadGetRandomValues; } });\nObject.defineProperty(exports, \"loadBase64\", { enumerable: true, get: function () { return moduleLoaders_1.loadBase64; } });\nObject.defineProperty(exports, \"loadAppState\", { enumerable: true, get: function () { return moduleLoaders_1.loadAppState; } });\n"],"names":[],"mappings":"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"}
@@ -0,0 +1,27 @@
1
+ 'use strict';
2
+
3
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
+ // SPDX-License-Identifier: Apache-2.0
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.loadAppState = exports.loadBase64 = exports.loadGetRandomValues = exports.loadUrlPolyfill = exports.loadBuffer = exports.loadNetInfo = exports.loadAsyncStorage = exports.loadAmplifyWebBrowser = exports.loadAmplifyPushNotification = exports.loadAmplifyRtnPasskeys = void 0;
7
+ var loadAmplifyRtnPasskeys_1 = require("./loadAmplifyRtnPasskeys");
8
+ Object.defineProperty(exports, "loadAmplifyRtnPasskeys", { enumerable: true, get: function () { return loadAmplifyRtnPasskeys_1.loadAmplifyRtnPasskeys; } });
9
+ var loadAmplifyPushNotification_1 = require("./loadAmplifyPushNotification");
10
+ Object.defineProperty(exports, "loadAmplifyPushNotification", { enumerable: true, get: function () { return loadAmplifyPushNotification_1.loadAmplifyPushNotification; } });
11
+ var loadAmplifyWebBrowser_1 = require("./loadAmplifyWebBrowser");
12
+ Object.defineProperty(exports, "loadAmplifyWebBrowser", { enumerable: true, get: function () { return loadAmplifyWebBrowser_1.loadAmplifyWebBrowser; } });
13
+ var loadAsyncStorage_1 = require("./loadAsyncStorage");
14
+ Object.defineProperty(exports, "loadAsyncStorage", { enumerable: true, get: function () { return loadAsyncStorage_1.loadAsyncStorage; } });
15
+ var loadNetInfo_1 = require("./loadNetInfo");
16
+ Object.defineProperty(exports, "loadNetInfo", { enumerable: true, get: function () { return loadNetInfo_1.loadNetInfo; } });
17
+ var loadBuffer_1 = require("./loadBuffer");
18
+ Object.defineProperty(exports, "loadBuffer", { enumerable: true, get: function () { return loadBuffer_1.loadBuffer; } });
19
+ var loadUrlPolyfill_1 = require("./loadUrlPolyfill");
20
+ Object.defineProperty(exports, "loadUrlPolyfill", { enumerable: true, get: function () { return loadUrlPolyfill_1.loadUrlPolyfill; } });
21
+ var loadGetRandomValues_1 = require("./loadGetRandomValues");
22
+ Object.defineProperty(exports, "loadGetRandomValues", { enumerable: true, get: function () { return loadGetRandomValues_1.loadGetRandomValues; } });
23
+ var loadBase64_1 = require("./loadBase64");
24
+ Object.defineProperty(exports, "loadBase64", { enumerable: true, get: function () { return loadBase64_1.loadBase64; } });
25
+ var loadAppState_1 = require("./loadAppState");
26
+ Object.defineProperty(exports, "loadAppState", { enumerable: true, get: function () { return loadAppState_1.loadAppState; } });
27
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/moduleLoaders/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.loadAppState = exports.loadBase64 = exports.loadGetRandomValues = exports.loadUrlPolyfill = exports.loadBuffer = exports.loadNetInfo = exports.loadAsyncStorage = exports.loadAmplifyWebBrowser = exports.loadAmplifyPushNotification = exports.loadAmplifyRtnPasskeys = void 0;\nvar loadAmplifyRtnPasskeys_1 = require(\"./loadAmplifyRtnPasskeys\");\nObject.defineProperty(exports, \"loadAmplifyRtnPasskeys\", { enumerable: true, get: function () { return loadAmplifyRtnPasskeys_1.loadAmplifyRtnPasskeys; } });\nvar loadAmplifyPushNotification_1 = require(\"./loadAmplifyPushNotification\");\nObject.defineProperty(exports, \"loadAmplifyPushNotification\", { enumerable: true, get: function () { return loadAmplifyPushNotification_1.loadAmplifyPushNotification; } });\nvar loadAmplifyWebBrowser_1 = require(\"./loadAmplifyWebBrowser\");\nObject.defineProperty(exports, \"loadAmplifyWebBrowser\", { enumerable: true, get: function () { return loadAmplifyWebBrowser_1.loadAmplifyWebBrowser; } });\nvar loadAsyncStorage_1 = require(\"./loadAsyncStorage\");\nObject.defineProperty(exports, \"loadAsyncStorage\", { enumerable: true, get: function () { return loadAsyncStorage_1.loadAsyncStorage; } });\nvar loadNetInfo_1 = require(\"./loadNetInfo\");\nObject.defineProperty(exports, \"loadNetInfo\", { enumerable: true, get: function () { return loadNetInfo_1.loadNetInfo; } });\nvar loadBuffer_1 = require(\"./loadBuffer\");\nObject.defineProperty(exports, \"loadBuffer\", { enumerable: true, get: function () { return loadBuffer_1.loadBuffer; } });\nvar loadUrlPolyfill_1 = require(\"./loadUrlPolyfill\");\nObject.defineProperty(exports, \"loadUrlPolyfill\", { enumerable: true, get: function () { return loadUrlPolyfill_1.loadUrlPolyfill; } });\nvar loadGetRandomValues_1 = require(\"./loadGetRandomValues\");\nObject.defineProperty(exports, \"loadGetRandomValues\", { enumerable: true, get: function () { return loadGetRandomValues_1.loadGetRandomValues; } });\nvar loadBase64_1 = require(\"./loadBase64\");\nObject.defineProperty(exports, \"loadBase64\", { enumerable: true, get: function () { return loadBase64_1.loadBase64; } });\nvar loadAppState_1 = require(\"./loadAppState\");\nObject.defineProperty(exports, \"loadAppState\", { enumerable: true, get: function () { return loadAppState_1.loadAppState; } });\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,YAAY,GAAG,OAAO,CAAC,UAAU,GAAG,OAAO,CAAC,mBAAmB,GAAG,OAAO,CAAC,eAAe,GAAG,OAAO,CAAC,UAAU,GAAG,OAAO,CAAC,WAAW,GAAG,OAAO,CAAC,gBAAgB,GAAG,OAAO,CAAC,qBAAqB,GAAG,OAAO,CAAC,2BAA2B,GAAG,OAAO,CAAC,sBAAsB,GAAG,MAAM;AACvR,IAAI,wBAAwB,GAAG,OAAO,CAAC,0BAA0B,CAAC;AAClE,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,wBAAwB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,wBAAwB,CAAC,sBAAsB,CAAC,CAAC,CAAC,EAAE,CAAC;AAC5J,IAAI,6BAA6B,GAAG,OAAO,CAAC,+BAA+B,CAAC;AAC5E,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,6BAA6B,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,6BAA6B,CAAC,2BAA2B,CAAC,CAAC,CAAC,EAAE,CAAC;AAC3K,IAAI,uBAAuB,GAAG,OAAO,CAAC,yBAAyB,CAAC;AAChE,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,uBAAuB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,uBAAuB,CAAC,qBAAqB,CAAC,CAAC,CAAC,EAAE,CAAC;AACzJ,IAAI,kBAAkB,GAAG,OAAO,CAAC,oBAAoB,CAAC;AACtD,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,kBAAkB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,kBAAkB,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAAE,CAAC;AAC1I,IAAI,aAAa,GAAG,OAAO,CAAC,eAAe,CAAC;AAC5C,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,aAAa,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC;AAC3H,IAAI,YAAY,GAAG,OAAO,CAAC,cAAc,CAAC;AAC1C,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,YAAY,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC;AACxH,IAAI,iBAAiB,GAAG,OAAO,CAAC,mBAAmB,CAAC;AACpD,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,iBAAiB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,iBAAiB,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC;AACvI,IAAI,qBAAqB,GAAG,OAAO,CAAC,uBAAuB,CAAC;AAC5D,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,qBAAqB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,qBAAqB,CAAC,mBAAmB,CAAC,CAAC,CAAC,EAAE,CAAC;AACnJ,IAAI,YAAY,GAAG,OAAO,CAAC,cAAc,CAAC;AAC1C,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,YAAY,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC;AACxH,IAAI,cAAc,GAAG,OAAO,CAAC,gBAAgB,CAAC;AAC9C,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,cAAc,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,cAAc,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC;;"}
@@ -0,0 +1,26 @@
1
+ 'use strict';
2
+
3
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
+ // SPDX-License-Identifier: Apache-2.0
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.loadAmplifyPushNotification = void 0;
7
+ const loadAmplifyPushNotification = () => {
8
+ try {
9
+ // metro bundler requires static string for loading module.
10
+ // See: https://facebook.github.io/metro/docs/configuration/#dynamicdepsinpackages
11
+ const module = require('@aws-amplify/rtn-push-notification')?.module;
12
+ if (module) {
13
+ return module;
14
+ }
15
+ throw new Error('Ensure `@aws-amplify/rtn-push-notification` is installed and linked.');
16
+ }
17
+ catch (e) {
18
+ // The error parsing logic cannot be extracted with metro as the `require`
19
+ // would be confused when there is a `import` in the same file importing
20
+ // another module and that causes an error
21
+ const message = e.message.replace(/undefined/g, '@aws-amplify/rtn-push-notification');
22
+ throw new Error(message);
23
+ }
24
+ };
25
+ exports.loadAmplifyPushNotification = loadAmplifyPushNotification;
26
+ //# sourceMappingURL=loadAmplifyPushNotification.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loadAmplifyPushNotification.js","sources":["../../../src/moduleLoaders/loadAmplifyPushNotification.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.loadAmplifyPushNotification = void 0;\nconst loadAmplifyPushNotification = () => {\n try {\n // metro bundler requires static string for loading module.\n // See: https://facebook.github.io/metro/docs/configuration/#dynamicdepsinpackages\n const module = require('@aws-amplify/rtn-push-notification')?.module;\n if (module) {\n return module;\n }\n throw new Error('Ensure `@aws-amplify/rtn-push-notification` is installed and linked.');\n }\n catch (e) {\n // The error parsing logic cannot be extracted with metro as the `require`\n // would be confused when there is a `import` in the same file importing\n // another module and that causes an error\n const message = e.message.replace(/undefined/g, '@aws-amplify/rtn-push-notification');\n throw new Error(message);\n }\n};\nexports.loadAmplifyPushNotification = loadAmplifyPushNotification;\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,2BAA2B,GAAG,MAAM;AAC1C,IAAI,IAAI;AACR;AACA;AACA,QAAQ,MAAM,MAAM,GAAG,OAAO,CAAC,oCAAoC,CAAC,EAAE,MAAM;AAC5E,QAAQ,IAAI,MAAM,EAAE;AACpB,YAAY,OAAO,MAAM;AACzB,QAAQ;AACR,QAAQ,MAAM,IAAI,KAAK,CAAC,sEAAsE,CAAC;AAC/F,IAAI;AACJ,IAAI,OAAO,CAAC,EAAE;AACd;AACA;AACA;AACA,QAAQ,MAAM,OAAO,GAAG,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,YAAY,EAAE,oCAAoC,CAAC;AAC7F,QAAQ,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC;AAChC,IAAI;AACJ,CAAC;AACD,OAAO,CAAC,2BAA2B,GAAG,2BAA2B;;"}
@@ -0,0 +1,26 @@
1
+ 'use strict';
2
+
3
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
+ // SPDX-License-Identifier: Apache-2.0
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.loadAmplifyRtnPasskeys = void 0;
7
+ const loadAmplifyRtnPasskeys = () => {
8
+ try {
9
+ // metro bundler requires static string for loading module.
10
+ // See: https://facebook.github.io/metro/docs/configuration/#dynamicdepsinpackages
11
+ const module = require('@aws-amplify/rtn-passkeys')?.module;
12
+ if (module) {
13
+ return module;
14
+ }
15
+ throw new Error('Ensure `@aws-amplify/rtn-passkeys` is installed and linked.');
16
+ }
17
+ catch (e) {
18
+ // The error parsing logic cannot be extracted with metro as the `require`
19
+ // would be confused when there is a `import` in the same file importing
20
+ // another module and that causes an error
21
+ const message = e.message.replace(/undefined/g, '@aws-amplify/rtn-passkeys');
22
+ throw new Error(message);
23
+ }
24
+ };
25
+ exports.loadAmplifyRtnPasskeys = loadAmplifyRtnPasskeys;
26
+ //# sourceMappingURL=loadAmplifyRtnPasskeys.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loadAmplifyRtnPasskeys.js","sources":["../../../src/moduleLoaders/loadAmplifyRtnPasskeys.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.loadAmplifyRtnPasskeys = void 0;\nconst loadAmplifyRtnPasskeys = () => {\n try {\n // metro bundler requires static string for loading module.\n // See: https://facebook.github.io/metro/docs/configuration/#dynamicdepsinpackages\n const module = require('@aws-amplify/rtn-passkeys')?.module;\n if (module) {\n return module;\n }\n throw new Error('Ensure `@aws-amplify/rtn-passkeys` is installed and linked.');\n }\n catch (e) {\n // The error parsing logic cannot be extracted with metro as the `require`\n // would be confused when there is a `import` in the same file importing\n // another module and that causes an error\n const message = e.message.replace(/undefined/g, '@aws-amplify/rtn-passkeys');\n throw new Error(message);\n }\n};\nexports.loadAmplifyRtnPasskeys = loadAmplifyRtnPasskeys;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,sBAAsB,GAAG,MAAM;AACvC,MAAM,sBAAsB,GAAG,MAAM;AACrC,IAAI,IAAI;AACR;AACA;AACA,QAAQ,MAAM,MAAM,GAAG,OAAO,CAAC,2BAA2B,CAAC,EAAE,MAAM;AACnE,QAAQ,IAAI,MAAM,EAAE;AACpB,YAAY,OAAO,MAAM;AACzB,QAAQ;AACR,QAAQ,MAAM,IAAI,KAAK,CAAC,6DAA6D,CAAC;AACtF,IAAI;AACJ,IAAI,OAAO,CAAC,EAAE;AACd;AACA;AACA;AACA,QAAQ,MAAM,OAAO,GAAG,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,YAAY,EAAE,2BAA2B,CAAC;AACpF,QAAQ,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC;AAChC,IAAI;AACJ,CAAC;AACD,OAAO,CAAC,sBAAsB,GAAG,sBAAsB;;"}
@@ -0,0 +1,26 @@
1
+ 'use strict';
2
+
3
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
+ // SPDX-License-Identifier: Apache-2.0
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.loadAmplifyWebBrowser = void 0;
7
+ const loadAmplifyWebBrowser = () => {
8
+ try {
9
+ // metro bundler requires static string for loading module.
10
+ // See: https://facebook.github.io/metro/docs/configuration/#dynamicdepsinpackages
11
+ const module = require('@aws-amplify/rtn-web-browser')?.module;
12
+ if (module) {
13
+ return module;
14
+ }
15
+ throw new Error('Ensure `@aws-amplify/rtn-web-browser` is installed and linked.');
16
+ }
17
+ catch (e) {
18
+ // The error parsing logic cannot be extracted with metro as the `require`
19
+ // would be confused when there is a `import` in the same file importing
20
+ // another module and that causes an error
21
+ const message = e.message.replace(/undefined/g, '@aws-amplify/rtn-web-browser');
22
+ throw new Error(message);
23
+ }
24
+ };
25
+ exports.loadAmplifyWebBrowser = loadAmplifyWebBrowser;
26
+ //# sourceMappingURL=loadAmplifyWebBrowser.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loadAmplifyWebBrowser.js","sources":["../../../src/moduleLoaders/loadAmplifyWebBrowser.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.loadAmplifyWebBrowser = void 0;\nconst loadAmplifyWebBrowser = () => {\n try {\n // metro bundler requires static string for loading module.\n // See: https://facebook.github.io/metro/docs/configuration/#dynamicdepsinpackages\n const module = require('@aws-amplify/rtn-web-browser')?.module;\n if (module) {\n return module;\n }\n throw new Error('Ensure `@aws-amplify/rtn-web-browser` is installed and linked.');\n }\n catch (e) {\n // The error parsing logic cannot be extracted with metro as the `require`\n // would be confused when there is a `import` in the same file importing\n // another module and that causes an error\n const message = e.message.replace(/undefined/g, '@aws-amplify/rtn-web-browser');\n throw new Error(message);\n }\n};\nexports.loadAmplifyWebBrowser = loadAmplifyWebBrowser;\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,qBAAqB,GAAG,MAAM;AACpC,IAAI,IAAI;AACR;AACA;AACA,QAAQ,MAAM,MAAM,GAAG,OAAO,CAAC,8BAA8B,CAAC,EAAE,MAAM;AACtE,QAAQ,IAAI,MAAM,EAAE;AACpB,YAAY,OAAO,MAAM;AACzB,QAAQ;AACR,QAAQ,MAAM,IAAI,KAAK,CAAC,gEAAgE,CAAC;AACzF,IAAI;AACJ,IAAI,OAAO,CAAC,EAAE;AACd;AACA;AACA;AACA,QAAQ,MAAM,OAAO,GAAG,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,YAAY,EAAE,8BAA8B,CAAC;AACvF,QAAQ,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC;AAChC,IAAI;AACJ,CAAC;AACD,OAAO,CAAC,qBAAqB,GAAG,qBAAqB;;"}
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
+ // SPDX-License-Identifier: Apache-2.0
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.loadAppState = void 0;
7
+ const react_native_1 = require("react-native");
8
+ const loadAppState = () => react_native_1.AppState;
9
+ exports.loadAppState = loadAppState;
10
+ //# sourceMappingURL=loadAppState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loadAppState.js","sources":["../../../src/moduleLoaders/loadAppState.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.loadAppState = void 0;\nconst react_native_1 = require(\"react-native\");\nconst loadAppState = () => react_native_1.AppState;\nexports.loadAppState = loadAppState;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,YAAY,GAAG,MAAM;AAC7B,MAAM,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC;AAC9C,MAAM,YAAY,GAAG,MAAM,cAAc,CAAC,QAAQ;AAClD,OAAO,CAAC,YAAY,GAAG,YAAY;;"}
@@ -0,0 +1,27 @@
1
+ 'use strict';
2
+
3
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
+ // SPDX-License-Identifier: Apache-2.0
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.loadAsyncStorage = void 0;
7
+ const loadAsyncStorage = () => {
8
+ try {
9
+ // metro bundler requires static string for loading module.
10
+ // See: https://facebook.github.io/metro/docs/configuration/#dynamicdepsinpackages
11
+ const module = require('@react-native-async-storage/async-storage')
12
+ ?.default;
13
+ if (module) {
14
+ return module;
15
+ }
16
+ throw new Error('Ensure `@react-native-async-storage/async-storage` is installed and linked.');
17
+ }
18
+ catch (e) {
19
+ // The error parsing logic cannot be extracted with metro as the `require`
20
+ // would be confused when there is a `import` in the same file importing
21
+ // another module and that causes an error
22
+ const message = e.message.replace(/undefined/g, '@react-native-async-storage/async-storage');
23
+ throw new Error(message);
24
+ }
25
+ };
26
+ exports.loadAsyncStorage = loadAsyncStorage;
27
+ //# sourceMappingURL=loadAsyncStorage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loadAsyncStorage.js","sources":["../../../src/moduleLoaders/loadAsyncStorage.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.loadAsyncStorage = void 0;\nconst loadAsyncStorage = () => {\n try {\n // metro bundler requires static string for loading module.\n // See: https://facebook.github.io/metro/docs/configuration/#dynamicdepsinpackages\n const module = require('@react-native-async-storage/async-storage')\n ?.default;\n if (module) {\n return module;\n }\n throw new Error('Ensure `@react-native-async-storage/async-storage` is installed and linked.');\n }\n catch (e) {\n // The error parsing logic cannot be extracted with metro as the `require`\n // would be confused when there is a `import` in the same file importing\n // another module and that causes an error\n const message = e.message.replace(/undefined/g, '@react-native-async-storage/async-storage');\n throw new Error(message);\n }\n};\nexports.loadAsyncStorage = loadAsyncStorage;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,gBAAgB,GAAG,MAAM;AACjC,MAAM,gBAAgB,GAAG,MAAM;AAC/B,IAAI,IAAI;AACR;AACA;AACA,QAAQ,MAAM,MAAM,GAAG,OAAO,CAAC,2CAA2C;AAC1E,cAAc,OAAO;AACrB,QAAQ,IAAI,MAAM,EAAE;AACpB,YAAY,OAAO,MAAM;AACzB,QAAQ;AACR,QAAQ,MAAM,IAAI,KAAK,CAAC,6EAA6E,CAAC;AACtG,IAAI;AACJ,IAAI,OAAO,CAAC,EAAE;AACd;AACA;AACA;AACA,QAAQ,MAAM,OAAO,GAAG,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,YAAY,EAAE,2CAA2C,CAAC;AACpG,QAAQ,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC;AAChC,IAAI;AACJ,CAAC;AACD,OAAO,CAAC,gBAAgB,GAAG,gBAAgB;;"}
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
+ // SPDX-License-Identifier: Apache-2.0
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.loadBase64 = void 0;
7
+ const base_64_1 = require("base-64");
8
+ const loadBase64 = () => ({ decode: base_64_1.decode, encode: base_64_1.encode });
9
+ exports.loadBase64 = loadBase64;
10
+ //# sourceMappingURL=loadBase64.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loadBase64.js","sources":["../../../src/moduleLoaders/loadBase64.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.loadBase64 = void 0;\nconst base_64_1 = require(\"base-64\");\nconst loadBase64 = () => ({ decode: base_64_1.decode, encode: base_64_1.encode });\nexports.loadBase64 = loadBase64;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,UAAU,GAAG,MAAM;AAC3B,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;AACpC,MAAM,UAAU,GAAG,OAAO,EAAE,MAAM,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,CAAC,MAAM,EAAE,CAAC;AACjF,OAAO,CAAC,UAAU,GAAG,UAAU;;"}
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
+ // SPDX-License-Identifier: Apache-2.0
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.loadBuffer = void 0;
7
+ const buffer_1 = require("buffer");
8
+ const loadBuffer = () => buffer_1.Buffer;
9
+ exports.loadBuffer = loadBuffer;
10
+ //# sourceMappingURL=loadBuffer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loadBuffer.js","sources":["../../../src/moduleLoaders/loadBuffer.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.loadBuffer = void 0;\nconst buffer_1 = require(\"buffer\");\nconst loadBuffer = () => buffer_1.Buffer;\nexports.loadBuffer = loadBuffer;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,UAAU,GAAG,MAAM;AAC3B,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC;AAClC,MAAM,UAAU,GAAG,MAAM,QAAQ,CAAC,MAAM;AACxC,OAAO,CAAC,UAAU,GAAG,UAAU;;"}
@@ -0,0 +1,22 @@
1
+ 'use strict';
2
+
3
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
+ // SPDX-License-Identifier: Apache-2.0
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.loadGetRandomValues = void 0;
7
+ const loadGetRandomValues = () => {
8
+ try {
9
+ // metro bundler requires static string for loading module.
10
+ // See: https://facebook.github.io/metro/docs/configuration/#dynamicdepsinpackages
11
+ require('react-native-get-random-values');
12
+ }
13
+ catch (e) {
14
+ // The error parsing logic cannot be extract as with metro the `require`
15
+ // would be confused when there is a `import` in the same file importing
16
+ // another module and that causes error
17
+ const message = e.message.replace(/undefined/g, 'react-native-get-random-values');
18
+ throw new Error(message);
19
+ }
20
+ };
21
+ exports.loadGetRandomValues = loadGetRandomValues;
22
+ //# sourceMappingURL=loadGetRandomValues.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loadGetRandomValues.js","sources":["../../../src/moduleLoaders/loadGetRandomValues.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.loadGetRandomValues = void 0;\nconst loadGetRandomValues = () => {\n try {\n // metro bundler requires static string for loading module.\n // See: https://facebook.github.io/metro/docs/configuration/#dynamicdepsinpackages\n require('react-native-get-random-values');\n }\n catch (e) {\n // The error parsing logic cannot be extract as with metro the `require`\n // would be confused when there is a `import` in the same file importing\n // another module and that causes error\n const message = e.message.replace(/undefined/g, 'react-native-get-random-values');\n throw new Error(message);\n }\n};\nexports.loadGetRandomValues = loadGetRandomValues;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,mBAAmB,GAAG,MAAM;AACpC,MAAM,mBAAmB,GAAG,MAAM;AAClC,IAAI,IAAI;AACR;AACA;AACA,QAAQ,OAAO,CAAC,gCAAgC,CAAC;AACjD,IAAI;AACJ,IAAI,OAAO,CAAC,EAAE;AACd;AACA;AACA;AACA,QAAQ,MAAM,OAAO,GAAG,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,YAAY,EAAE,gCAAgC,CAAC;AACzF,QAAQ,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC;AAChC,IAAI;AACJ,CAAC;AACD,OAAO,CAAC,mBAAmB,GAAG,mBAAmB;;"}
@@ -0,0 +1,27 @@
1
+ 'use strict';
2
+
3
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
+ // SPDX-License-Identifier: Apache-2.0
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.loadNetInfo = void 0;
7
+ const loadNetInfo = () => {
8
+ try {
9
+ // metro bundler requires static string for loading module.
10
+ // See: https://facebook.github.io/metro/docs/configuration/#dynamicdepsinpackages
11
+ const module = require('@react-native-community/netinfo')
12
+ ?.default;
13
+ if (module) {
14
+ return module;
15
+ }
16
+ throw new Error('Ensure `@react-native-community/netinfo` is installed and linked.');
17
+ }
18
+ catch (e) {
19
+ // The error parsing logic cannot be extract as with metro the `require`
20
+ // would be confused when there is a `import` in the same file importing
21
+ // another module and that causes error
22
+ const message = e.message.replace(/undefined/g, '@react-native-community/netinfo');
23
+ throw new Error(message);
24
+ }
25
+ };
26
+ exports.loadNetInfo = loadNetInfo;
27
+ //# sourceMappingURL=loadNetInfo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loadNetInfo.js","sources":["../../../src/moduleLoaders/loadNetInfo.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.loadNetInfo = void 0;\nconst loadNetInfo = () => {\n try {\n // metro bundler requires static string for loading module.\n // See: https://facebook.github.io/metro/docs/configuration/#dynamicdepsinpackages\n const module = require('@react-native-community/netinfo')\n ?.default;\n if (module) {\n return module;\n }\n throw new Error('Ensure `@react-native-community/netinfo` is installed and linked.');\n }\n catch (e) {\n // The error parsing logic cannot be extract as with metro the `require`\n // would be confused when there is a `import` in the same file importing\n // another module and that causes error\n const message = e.message.replace(/undefined/g, '@react-native-community/netinfo');\n throw new Error(message);\n }\n};\nexports.loadNetInfo = loadNetInfo;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,WAAW,GAAG,MAAM;AAC5B,MAAM,WAAW,GAAG,MAAM;AAC1B,IAAI,IAAI;AACR;AACA;AACA,QAAQ,MAAM,MAAM,GAAG,OAAO,CAAC,iCAAiC;AAChE,cAAc,OAAO;AACrB,QAAQ,IAAI,MAAM,EAAE;AACpB,YAAY,OAAO,MAAM;AACzB,QAAQ;AACR,QAAQ,MAAM,IAAI,KAAK,CAAC,mEAAmE,CAAC;AAC5F,IAAI;AACJ,IAAI,OAAO,CAAC,EAAE;AACd;AACA;AACA;AACA,QAAQ,MAAM,OAAO,GAAG,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,YAAY,EAAE,iCAAiC,CAAC;AAC1F,QAAQ,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC;AAChC,IAAI;AACJ,CAAC;AACD,OAAO,CAAC,WAAW,GAAG,WAAW;;"}
@@ -0,0 +1,22 @@
1
+ 'use strict';
2
+
3
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
+ // SPDX-License-Identifier: Apache-2.0
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.loadUrlPolyfill = void 0;
7
+ const loadUrlPolyfill = () => {
8
+ try {
9
+ // metro bundler requires static string for loading module.
10
+ // See: https://facebook.github.io/metro/docs/configuration/#dynamicdepsinpackages
11
+ require('react-native-url-polyfill/auto');
12
+ }
13
+ catch (e) {
14
+ // The error parsing logic cannot be extract as with metro the `require`
15
+ // would be confused when there is a `import` in the same file importing
16
+ // another module and that causes error
17
+ const message = e.message.replace(/undefined/g, 'react-native-url-polyfill');
18
+ throw new Error(message);
19
+ }
20
+ };
21
+ exports.loadUrlPolyfill = loadUrlPolyfill;
22
+ //# sourceMappingURL=loadUrlPolyfill.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loadUrlPolyfill.js","sources":["../../../src/moduleLoaders/loadUrlPolyfill.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.loadUrlPolyfill = void 0;\nconst loadUrlPolyfill = () => {\n try {\n // metro bundler requires static string for loading module.\n // See: https://facebook.github.io/metro/docs/configuration/#dynamicdepsinpackages\n require('react-native-url-polyfill/auto');\n }\n catch (e) {\n // The error parsing logic cannot be extract as with metro the `require`\n // would be confused when there is a `import` in the same file importing\n // another module and that causes error\n const message = e.message.replace(/undefined/g, 'react-native-url-polyfill');\n throw new Error(message);\n }\n};\nexports.loadUrlPolyfill = loadUrlPolyfill;\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,eAAe,GAAG,MAAM;AAC9B,IAAI,IAAI;AACR;AACA;AACA,QAAQ,OAAO,CAAC,gCAAgC,CAAC;AACjD,IAAI;AACJ,IAAI,OAAO,CAAC,EAAE;AACd;AACA;AACA;AACA,QAAQ,MAAM,OAAO,GAAG,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,YAAY,EAAE,2BAA2B,CAAC;AACpF,QAAQ,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC;AAChC,IAAI;AACJ,CAAC;AACD,OAAO,CAAC,eAAe,GAAG,eAAe;;"}
@@ -0,0 +1,19 @@
1
+ 'use strict';
2
+
3
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
+ // SPDX-License-Identifier: Apache-2.0
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.nativeModule = void 0;
7
+ const react_native_1 = require("react-native");
8
+ const LINKING_ERROR = `The package '@aws-amplify/react-native' doesn't seem to be linked. Make sure: \n\n` +
9
+ react_native_1.Platform.select({ ios: "- You have run 'pod install'\n", default: '' }) +
10
+ '- You rebuilt the app after installing the package\n' +
11
+ '- You are not using Expo Go\n';
12
+ exports.nativeModule = react_native_1.NativeModules.AmplifyRTNCore
13
+ ? react_native_1.NativeModules.AmplifyRTNCore
14
+ : new Proxy({}, {
15
+ get() {
16
+ throw new Error(LINKING_ERROR);
17
+ },
18
+ });
19
+ //# sourceMappingURL=nativeModule.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nativeModule.js","sources":["../../src/nativeModule.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.nativeModule = void 0;\nconst react_native_1 = require(\"react-native\");\nconst LINKING_ERROR = `The package '@aws-amplify/react-native' doesn't seem to be linked. Make sure: \\n\\n` +\n react_native_1.Platform.select({ ios: \"- You have run 'pod install'\\n\", default: '' }) +\n '- You rebuilt the app after installing the package\\n' +\n '- You are not using Expo Go\\n';\nexports.nativeModule = react_native_1.NativeModules.AmplifyRTNCore\n ? react_native_1.NativeModules.AmplifyRTNCore\n : new Proxy({}, {\n get() {\n throw new Error(LINKING_ERROR);\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,YAAY,GAAG,MAAM;AAC7B,MAAM,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC;AAC9C,MAAM,aAAa,GAAG,CAAC,kFAAkF,CAAC;AAC1G,IAAI,cAAc,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,gCAAgC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;AAC1F,IAAI,sDAAsD;AAC1D,IAAI,+BAA+B;AACnC,OAAO,CAAC,YAAY,GAAG,cAAc,CAAC,aAAa,CAAC;AACpD,MAAM,cAAc,CAAC,aAAa,CAAC;AACnC,MAAM,IAAI,KAAK,CAAC,EAAE,EAAE;AACpB,QAAQ,GAAG,GAAG;AACd,YAAY,MAAM,IAAI,KAAK,CAAC,aAAa,CAAC;AAC1C,QAAQ,CAAC;AACT,KAAK,CAAC;;"}
@@ -0,0 +1,6 @@
1
+ 'use strict';
2
+
3
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
+ // SPDX-License-Identifier: Apache-2.0
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sources":["../../src/types.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 });\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;;"}
@@ -0,0 +1,2 @@
1
+ import { RTNCore } from '../types';
2
+ export declare const computeModPow: RTNCore['computeModPow'];
@@ -0,0 +1,8 @@
1
+ import { nativeModule } from '../nativeModule.mjs';
2
+
3
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
+ // SPDX-License-Identifier: Apache-2.0
5
+ const computeModPow = payload => nativeModule.computeModPow(payload);
6
+
7
+ export { computeModPow };
8
+ //# sourceMappingURL=computeModPow.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"computeModPow.mjs","sources":["../../../src/apis/computeModPow.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { nativeModule } from '../nativeModule';\nexport const computeModPow = payload => nativeModule.computeModPow(payload);\n"],"names":[],"mappings":";;AAAA;AACA;AAEY,MAAC,aAAa,GAAG,OAAO,IAAI,YAAY,CAAC,aAAa,CAAC,OAAO;;;;"}
@@ -0,0 +1,2 @@
1
+ import { RTNCore } from '../types';
2
+ export declare const computeS: RTNCore['computeS'];
@@ -0,0 +1,8 @@
1
+ import { nativeModule } from '../nativeModule.mjs';
2
+
3
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
+ // SPDX-License-Identifier: Apache-2.0
5
+ const computeS = payload => nativeModule.computeS(payload);
6
+
7
+ export { computeS };
8
+ //# sourceMappingURL=computeS.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"computeS.mjs","sources":["../../../src/apis/computeS.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { nativeModule } from '../nativeModule';\nexport const computeS = payload => nativeModule.computeS(payload);\n"],"names":[],"mappings":";;AAAA;AACA;AAEY,MAAC,QAAQ,GAAG,OAAO,IAAI,YAAY,CAAC,QAAQ,CAAC,OAAO;;;;"}
@@ -0,0 +1,2 @@
1
+ import { RTNCore } from '../types';
2
+ export declare const getDeviceName: RTNCore['getDeviceName'];
@@ -0,0 +1,8 @@
1
+ import { nativeModule } from '../nativeModule.mjs';
2
+
3
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
+ // SPDX-License-Identifier: Apache-2.0
5
+ const getDeviceName = () => nativeModule.getDeviceName();
6
+
7
+ export { getDeviceName };
8
+ //# sourceMappingURL=getDeviceName.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getDeviceName.mjs","sources":["../../../src/apis/getDeviceName.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { nativeModule } from '../nativeModule';\nexport const getDeviceName = () => nativeModule.getDeviceName();\n"],"names":[],"mappings":";;AAAA;AACA;AAEY,MAAC,aAAa,GAAG,MAAM,YAAY,CAAC,aAAa;;;;"}
@@ -0,0 +1,9 @@
1
+ interface NativeError extends Error {
2
+ code: string;
3
+ domain?: string;
4
+ userInfo?: Record<string, unknown>;
5
+ nativeStackIOS?: never[];
6
+ nativeStackAndroid?: Record<string, unknown>[];
7
+ }
8
+ export declare const getIsNativeError: (err: unknown) => err is NativeError;
9
+ export {};
@@ -0,0 +1,10 @@
1
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ // SPDX-License-Identifier: Apache-2.0
3
+ const getIsNativeError = (err) => {
4
+ return (err instanceof Error &&
5
+ 'code' in err &&
6
+ ('nativeStackIOS' in err || 'nativeStackAndroid' in err));
7
+ };
8
+
9
+ export { getIsNativeError };
10
+ //# sourceMappingURL=getIsNativeError.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getIsNativeError.mjs","sources":["../../../src/apis/getIsNativeError.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nexport const getIsNativeError = (err) => {\n return (err instanceof Error &&\n 'code' in err &&\n ('nativeStackIOS' in err || 'nativeStackAndroid' in err));\n};\n"],"names":[],"mappings":"AAAA;AACA;AACY,MAAC,gBAAgB,GAAG,CAAC,GAAG,KAAK;AACzC,IAAI,QAAQ,GAAG,YAAY,KAAK;AAChC,QAAQ,MAAM,IAAI,GAAG;AACrB,SAAS,gBAAgB,IAAI,GAAG,IAAI,oBAAoB,IAAI,GAAG,CAAC;AAChE;;;;"}
@@ -0,0 +1 @@
1
+ export declare const getOperatingSystem: () => "ios" | "android" | "macos" | "windows" | "web";
@@ -0,0 +1,8 @@
1
+ import { Platform } from 'react-native';
2
+
3
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
+ // SPDX-License-Identifier: Apache-2.0
5
+ const getOperatingSystem = () => Platform.OS;
6
+
7
+ export { getOperatingSystem };
8
+ //# sourceMappingURL=getOperatingSystem.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getOperatingSystem.mjs","sources":["../../../src/apis/getOperatingSystem.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { Platform } from 'react-native';\nexport const getOperatingSystem = () => Platform.OS;\n"],"names":[],"mappings":";;AAAA;AACA;AAEY,MAAC,kBAAkB,GAAG,MAAM,QAAQ,CAAC;;;;"}
@@ -0,0 +1,5 @@
1
+ export { computeModPow } from './computeModPow';
2
+ export { computeS } from './computeS';
3
+ export { getOperatingSystem } from './getOperatingSystem';
4
+ export { getDeviceName } from './getDeviceName';
5
+ export { getIsNativeError } from './getIsNativeError';
@@ -0,0 +1,6 @@
1
+ export { computeModPow } from './computeModPow.mjs';
2
+ export { computeS } from './computeS.mjs';
3
+ export { getOperatingSystem } from './getOperatingSystem.mjs';
4
+ export { getDeviceName } from './getDeviceName.mjs';
5
+ export { getIsNativeError } from './getIsNativeError.mjs';
6
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -0,0 +1,2 @@
1
+ export { computeModPow, computeS, getOperatingSystem, getDeviceName, getIsNativeError, } from './apis';
2
+ export { loadAmplifyRtnPasskeys, loadAmplifyPushNotification, loadAmplifyWebBrowser, loadAsyncStorage, loadNetInfo, loadBuffer, loadUrlPolyfill, loadGetRandomValues, loadBase64, loadAppState, } from './moduleLoaders';