@aws-amplify/react-native 1.1.11-unstable.f94a30b.0 → 1.2.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 (47) hide show
  1. package/AmplifyRTNCore.podspec +19 -13
  2. package/README.md +3 -0
  3. package/dist/cjs/apis/getIsNativeError.js +13 -0
  4. package/dist/cjs/apis/getIsNativeError.js.map +1 -0
  5. package/dist/cjs/apis/index.js +3 -1
  6. package/dist/cjs/apis/index.js.map +1 -1
  7. package/dist/cjs/index.js +3 -1
  8. package/dist/cjs/index.js.map +1 -1
  9. package/dist/cjs/moduleLoaders/index.js +3 -1
  10. package/dist/cjs/moduleLoaders/index.js.map +1 -1
  11. package/dist/cjs/moduleLoaders/loadAmplifyPushNotification.js.map +1 -1
  12. package/dist/cjs/moduleLoaders/loadAmplifyRtnPasskeys.js +26 -0
  13. package/dist/cjs/moduleLoaders/loadAmplifyRtnPasskeys.js.map +1 -0
  14. package/dist/cjs/moduleLoaders/loadAmplifyWebBrowser.js.map +1 -1
  15. package/dist/cjs/moduleLoaders/loadAsyncStorage.js.map +1 -1
  16. package/dist/cjs/moduleLoaders/loadGetRandomValues.js.map +1 -1
  17. package/dist/cjs/moduleLoaders/loadNetInfo.js.map +1 -1
  18. package/dist/cjs/moduleLoaders/loadUrlPolyfill.js.map +1 -1
  19. package/dist/cjs/nativeModule.js.map +1 -1
  20. package/dist/esm/apis/getIsNativeError.d.ts +9 -0
  21. package/dist/esm/apis/getIsNativeError.mjs +10 -0
  22. package/dist/esm/apis/getIsNativeError.mjs.map +1 -0
  23. package/dist/esm/apis/index.d.ts +1 -0
  24. package/dist/esm/apis/index.mjs +1 -0
  25. package/dist/esm/apis/index.mjs.map +1 -1
  26. package/dist/esm/index.d.ts +2 -2
  27. package/dist/esm/index.mjs +2 -0
  28. package/dist/esm/index.mjs.map +1 -1
  29. package/dist/esm/moduleLoaders/index.d.ts +1 -0
  30. package/dist/esm/moduleLoaders/index.mjs +1 -0
  31. package/dist/esm/moduleLoaders/index.mjs.map +1 -1
  32. package/dist/esm/moduleLoaders/loadAmplifyPushNotification.mjs.map +1 -1
  33. package/dist/esm/moduleLoaders/loadAmplifyRtnPasskeys.d.ts +1 -0
  34. package/dist/esm/moduleLoaders/loadAmplifyRtnPasskeys.mjs +23 -0
  35. package/dist/esm/moduleLoaders/loadAmplifyRtnPasskeys.mjs.map +1 -0
  36. package/dist/esm/moduleLoaders/loadAmplifyWebBrowser.mjs.map +1 -1
  37. package/dist/esm/moduleLoaders/loadAsyncStorage.mjs.map +1 -1
  38. package/dist/esm/moduleLoaders/loadGetRandomValues.mjs.map +1 -1
  39. package/dist/esm/moduleLoaders/loadNetInfo.mjs.map +1 -1
  40. package/dist/esm/moduleLoaders/loadUrlPolyfill.mjs.map +1 -1
  41. package/dist/esm/nativeModule.mjs.map +1 -1
  42. package/package.json +15 -5
  43. package/src/apis/getIsNativeError.ts +18 -0
  44. package/src/apis/index.ts +1 -0
  45. package/src/index.ts +2 -0
  46. package/src/moduleLoaders/index.ts +1 -0
  47. package/src/moduleLoaders/loadAmplifyRtnPasskeys.ts +28 -0
@@ -18,18 +18,24 @@ Pod::Spec.new do |s|
18
18
 
19
19
  s.dependency "React-Core"
20
20
 
21
- # Don't install the dependencies when we run `pod install` in the old architecture.
22
- if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
23
- s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
24
- s.pod_target_xcconfig = {
25
- "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
26
- "OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1",
27
- "CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
28
- }
29
- s.dependency "React-Codegen"
30
- s.dependency "RCT-Folly"
31
- s.dependency "RCTRequired"
32
- s.dependency "RCTTypeSafety"
33
- s.dependency "ReactCommon/turbomodule/core"
21
+ # Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
22
+ # See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
23
+ if respond_to?(:install_modules_dependencies, true)
24
+ install_modules_dependencies(s)
25
+ else
26
+ # Don't install the dependencies when we run `pod install` in the old architecture.
27
+ if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
28
+ s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
29
+ s.pod_target_xcconfig = {
30
+ "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
31
+ "OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1",
32
+ "CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
33
+ }
34
+ s.dependency "React-Codegen"
35
+ s.dependency "RCT-Folly"
36
+ s.dependency "RCTRequired"
37
+ s.dependency "RCTTypeSafety"
38
+ s.dependency "ReactCommon/turbomodule/core"
39
+ end
34
40
  end
35
41
  end
package/README.md ADDED
@@ -0,0 +1,3 @@
1
+ > INTERNAL USE ONLY
2
+
3
+ This package contains AWS Amplify React Native utilities and is intended for internal use only. Please ensure this package is installed alongside [aws-amplify](https://www.npmjs.com/package/aws-amplify). We do not advise using any exports from this package directly.
@@ -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;;"}
@@ -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.getDeviceName = exports.getOperatingSystem = exports.computeS = exports.computeModPow = void 0;
6
+ exports.getIsNativeError = exports.getDeviceName = exports.getOperatingSystem = exports.computeS = exports.computeModPow = void 0;
7
7
  var computeModPow_1 = require("./computeModPow");
8
8
  Object.defineProperty(exports, "computeModPow", { enumerable: true, get: function () { return computeModPow_1.computeModPow; } });
9
9
  var computeS_1 = require("./computeS");
@@ -12,4 +12,6 @@ var getOperatingSystem_1 = require("./getOperatingSystem");
12
12
  Object.defineProperty(exports, "getOperatingSystem", { enumerable: true, get: function () { return getOperatingSystem_1.getOperatingSystem; } });
13
13
  var getDeviceName_1 = require("./getDeviceName");
14
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; } });
15
17
  //# sourceMappingURL=index.js.map
@@ -1 +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.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; } });\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,OAAO,CAAC,kBAAkB,GAAG,OAAO,CAAC,QAAQ,GAAG,OAAO,CAAC,aAAa,GAAG,MAAM;AACtG,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,EAAE,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,EAAE,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,EAAE,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,EAAE,EAAE,CAAC;;"}
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;;"}
package/dist/cjs/index.js CHANGED
@@ -3,13 +3,15 @@
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.loadAppState = exports.loadBase64 = exports.loadGetRandomValues = exports.loadUrlPolyfill = exports.loadBuffer = exports.loadNetInfo = exports.loadAsyncStorage = exports.loadAmplifyWebBrowser = exports.loadAmplifyPushNotification = exports.getDeviceName = exports.getOperatingSystem = exports.computeS = exports.computeModPow = void 0;
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
7
  var apis_1 = require("./apis");
8
8
  Object.defineProperty(exports, "computeModPow", { enumerable: true, get: function () { return apis_1.computeModPow; } });
9
9
  Object.defineProperty(exports, "computeS", { enumerable: true, get: function () { return apis_1.computeS; } });
10
10
  Object.defineProperty(exports, "getOperatingSystem", { enumerable: true, get: function () { return apis_1.getOperatingSystem; } });
11
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; } });
12
13
  var moduleLoaders_1 = require("./moduleLoaders");
14
+ Object.defineProperty(exports, "loadAmplifyRtnPasskeys", { enumerable: true, get: function () { return moduleLoaders_1.loadAmplifyRtnPasskeys; } });
13
15
  Object.defineProperty(exports, "loadAmplifyPushNotification", { enumerable: true, get: function () { return moduleLoaders_1.loadAmplifyPushNotification; } });
14
16
  Object.defineProperty(exports, "loadAmplifyWebBrowser", { enumerable: true, get: function () { return moduleLoaders_1.loadAmplifyWebBrowser; } });
15
17
  Object.defineProperty(exports, "loadAsyncStorage", { enumerable: true, get: function () { return moduleLoaders_1.loadAsyncStorage; } });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../src/index.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.loadAppState = exports.loadBase64 = exports.loadGetRandomValues = exports.loadUrlPolyfill = exports.loadBuffer = exports.loadNetInfo = exports.loadAsyncStorage = exports.loadAmplifyWebBrowser = exports.loadAmplifyPushNotification = 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; } });\nvar moduleLoaders_1 = require(\"./moduleLoaders\");\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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"}
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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"}
@@ -3,7 +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.loadAppState = exports.loadBase64 = exports.loadGetRandomValues = exports.loadUrlPolyfill = exports.loadBuffer = exports.loadNetInfo = exports.loadAsyncStorage = exports.loadAmplifyWebBrowser = exports.loadAmplifyPushNotification = void 0;
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; } });
7
9
  var loadAmplifyPushNotification_1 = require("./loadAmplifyPushNotification");
8
10
  Object.defineProperty(exports, "loadAmplifyPushNotification", { enumerable: true, get: function () { return loadAmplifyPushNotification_1.loadAmplifyPushNotification; } });
9
11
  var loadAmplifyWebBrowser_1 = require("./loadAmplifyWebBrowser");
@@ -1 +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 = void 0;\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,MAAM;AACtP,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,EAAE,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,EAAE,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,EAAE,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,EAAE,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,EAAE,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,EAAE,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,EAAE,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,EAAE,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,EAAE,EAAE,CAAC;;"}
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":"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"}
@@ -1 +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;AACA,QAAQ,MAAM,IAAI,KAAK,CAAC,sEAAsE,CAAC;AAC/F;AACA,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;AACA,CAAC;AACD,OAAO,CAAC,2BAA2B,GAAG,2BAA2B;;"}
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;;"}
@@ -1 +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;AACA,QAAQ,MAAM,IAAI,KAAK,CAAC,gEAAgE,CAAC;AACzF;AACA,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;AACA,CAAC;AACD,OAAO,CAAC,qBAAqB,GAAG,qBAAqB;;"}
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;;"}
@@ -1 +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;AACA,QAAQ,MAAM,IAAI,KAAK,CAAC,6EAA6E,CAAC;AACtG;AACA,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;AACA,CAAC;AACD,OAAO,CAAC,gBAAgB,GAAG,gBAAgB;;"}
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;;"}
@@ -1 +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;AACA,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;AACA,CAAC;AACD,OAAO,CAAC,mBAAmB,GAAG,mBAAmB;;"}
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;;"}
@@ -1 +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;AACA,QAAQ,MAAM,IAAI,KAAK,CAAC,mEAAmE,CAAC;AAC5F;AACA,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;AACA,CAAC;AACD,OAAO,CAAC,WAAW,GAAG,WAAW;;"}
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;;"}
@@ -1 +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;AACA,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;AACA,CAAC;AACD,OAAO,CAAC,eAAe,GAAG,eAAe;;"}
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;;"}
@@ -1 +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,SAAS;AACT,KAAK,CAAC;;"}
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,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;;;;"}
@@ -2,3 +2,4 @@ export { computeModPow } from './computeModPow';
2
2
  export { computeS } from './computeS';
3
3
  export { getOperatingSystem } from './getOperatingSystem';
4
4
  export { getDeviceName } from './getDeviceName';
5
+ export { getIsNativeError } from './getIsNativeError';
@@ -2,4 +2,5 @@ export { computeModPow } from './computeModPow.mjs';
2
2
  export { computeS } from './computeS.mjs';
3
3
  export { getOperatingSystem } from './getOperatingSystem.mjs';
4
4
  export { getDeviceName } from './getDeviceName.mjs';
5
+ export { getIsNativeError } from './getIsNativeError.mjs';
5
6
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -1,2 +1,2 @@
1
- export { computeModPow, computeS, getOperatingSystem, getDeviceName, } from './apis';
2
- export { loadAmplifyPushNotification, loadAmplifyWebBrowser, loadAsyncStorage, loadNetInfo, loadBuffer, loadUrlPolyfill, loadGetRandomValues, loadBase64, loadAppState, } from './moduleLoaders';
1
+ export { computeModPow, computeS, getOperatingSystem, getDeviceName, getIsNativeError, } from './apis';
2
+ export { loadAmplifyRtnPasskeys, loadAmplifyPushNotification, loadAmplifyWebBrowser, loadAsyncStorage, loadNetInfo, loadBuffer, loadUrlPolyfill, loadGetRandomValues, loadBase64, loadAppState, } from './moduleLoaders';
@@ -2,6 +2,8 @@ export { computeModPow } from './apis/computeModPow.mjs';
2
2
  export { computeS } from './apis/computeS.mjs';
3
3
  export { getOperatingSystem } from './apis/getOperatingSystem.mjs';
4
4
  export { getDeviceName } from './apis/getDeviceName.mjs';
5
+ export { getIsNativeError } from './apis/getIsNativeError.mjs';
6
+ export { loadAmplifyRtnPasskeys } from './moduleLoaders/loadAmplifyRtnPasskeys.mjs';
5
7
  export { loadAmplifyPushNotification } from './moduleLoaders/loadAmplifyPushNotification.mjs';
6
8
  export { loadAmplifyWebBrowser } from './moduleLoaders/loadAmplifyWebBrowser.mjs';
7
9
  export { loadAsyncStorage } from './moduleLoaders/loadAsyncStorage.mjs';
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
@@ -1,3 +1,4 @@
1
+ export { loadAmplifyRtnPasskeys } from './loadAmplifyRtnPasskeys';
1
2
  export { loadAmplifyPushNotification } from './loadAmplifyPushNotification';
2
3
  export { loadAmplifyWebBrowser } from './loadAmplifyWebBrowser';
3
4
  export { loadAsyncStorage } from './loadAsyncStorage';
@@ -1,3 +1,4 @@
1
+ export { loadAmplifyRtnPasskeys } from './loadAmplifyRtnPasskeys.mjs';
1
2
  export { loadAmplifyPushNotification } from './loadAmplifyPushNotification.mjs';
2
3
  export { loadAmplifyWebBrowser } from './loadAmplifyWebBrowser.mjs';
3
4
  export { loadAsyncStorage } from './loadAsyncStorage.mjs';
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"loadAmplifyPushNotification.mjs","sources":["../../../src/moduleLoaders/loadAmplifyPushNotification.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nexport const 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};\n"],"names":[],"mappings":"AAAA;AACA;AACY,MAAC,2BAA2B,GAAG,MAAM;AACjD,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;AACA,QAAQ,MAAM,IAAI,KAAK,CAAC,sEAAsE,CAAC;AAC/F;AACA,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;AACA;;;;"}
1
+ {"version":3,"file":"loadAmplifyPushNotification.mjs","sources":["../../../src/moduleLoaders/loadAmplifyPushNotification.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nexport const 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};\n"],"names":[],"mappings":"AAAA;AACA;AACY,MAAC,2BAA2B,GAAG,MAAM;AACjD,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;;;;"}
@@ -0,0 +1 @@
1
+ export declare const loadAmplifyRtnPasskeys: () => import("@aws-amplify/rtn-passkeys/dist/esm/NativeAmplifyRtnPasskeys").Spec;
@@ -0,0 +1,23 @@
1
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ // SPDX-License-Identifier: Apache-2.0
3
+ const loadAmplifyRtnPasskeys = () => {
4
+ try {
5
+ // metro bundler requires static string for loading module.
6
+ // See: https://facebook.github.io/metro/docs/configuration/#dynamicdepsinpackages
7
+ const module = require('@aws-amplify/rtn-passkeys')?.module;
8
+ if (module) {
9
+ return module;
10
+ }
11
+ throw new Error('Ensure `@aws-amplify/rtn-passkeys` is installed and linked.');
12
+ }
13
+ catch (e) {
14
+ // The error parsing logic cannot be extracted with metro as the `require`
15
+ // would be confused when there is a `import` in the same file importing
16
+ // another module and that causes an error
17
+ const message = e.message.replace(/undefined/g, '@aws-amplify/rtn-passkeys');
18
+ throw new Error(message);
19
+ }
20
+ };
21
+
22
+ export { loadAmplifyRtnPasskeys };
23
+ //# sourceMappingURL=loadAmplifyRtnPasskeys.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loadAmplifyRtnPasskeys.mjs","sources":["../../../src/moduleLoaders/loadAmplifyRtnPasskeys.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nexport const 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};\n"],"names":[],"mappings":"AAAA;AACA;AACY,MAAC,sBAAsB,GAAG,MAAM;AAC5C,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;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"loadAmplifyWebBrowser.mjs","sources":["../../../src/moduleLoaders/loadAmplifyWebBrowser.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nexport const 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};\n"],"names":[],"mappings":"AAAA;AACA;AACY,MAAC,qBAAqB,GAAG,MAAM;AAC3C,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;AACA,QAAQ,MAAM,IAAI,KAAK,CAAC,gEAAgE,CAAC;AACzF;AACA,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;AACA;;;;"}
1
+ {"version":3,"file":"loadAmplifyWebBrowser.mjs","sources":["../../../src/moduleLoaders/loadAmplifyWebBrowser.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nexport const 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};\n"],"names":[],"mappings":"AAAA;AACA;AACY,MAAC,qBAAqB,GAAG,MAAM;AAC3C,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;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"loadAsyncStorage.mjs","sources":["../../../src/moduleLoaders/loadAsyncStorage.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nexport const 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};\n"],"names":[],"mappings":"AAAA;AACA;AACY,MAAC,gBAAgB,GAAG,MAAM;AACtC,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;AACA,QAAQ,MAAM,IAAI,KAAK,CAAC,6EAA6E,CAAC;AACtG;AACA,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;AACA;;;;"}
1
+ {"version":3,"file":"loadAsyncStorage.mjs","sources":["../../../src/moduleLoaders/loadAsyncStorage.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nexport const 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};\n"],"names":[],"mappings":"AAAA;AACA;AACY,MAAC,gBAAgB,GAAG,MAAM;AACtC,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;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"loadGetRandomValues.mjs","sources":["../../../src/moduleLoaders/loadGetRandomValues.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nexport const 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};\n"],"names":[],"mappings":"AAAA;AACA;AACY,MAAC,mBAAmB,GAAG,MAAM;AACzC,IAAI,IAAI;AACR;AACA;AACA,QAAQ,OAAO,CAAC,gCAAgC,CAAC;AACjD;AACA,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;AACA;;;;"}
1
+ {"version":3,"file":"loadGetRandomValues.mjs","sources":["../../../src/moduleLoaders/loadGetRandomValues.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nexport const 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};\n"],"names":[],"mappings":"AAAA;AACA;AACY,MAAC,mBAAmB,GAAG,MAAM;AACzC,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;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"loadNetInfo.mjs","sources":["../../../src/moduleLoaders/loadNetInfo.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nexport const 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};\n"],"names":[],"mappings":"AAAA;AACA;AACY,MAAC,WAAW,GAAG,MAAM;AACjC,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;AACA,QAAQ,MAAM,IAAI,KAAK,CAAC,mEAAmE,CAAC;AAC5F;AACA,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;AACA;;;;"}
1
+ {"version":3,"file":"loadNetInfo.mjs","sources":["../../../src/moduleLoaders/loadNetInfo.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nexport const 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};\n"],"names":[],"mappings":"AAAA;AACA;AACY,MAAC,WAAW,GAAG,MAAM;AACjC,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;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"loadUrlPolyfill.mjs","sources":["../../../src/moduleLoaders/loadUrlPolyfill.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nexport const 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};\n"],"names":[],"mappings":"AAAA;AACA;AACY,MAAC,eAAe,GAAG,MAAM;AACrC,IAAI,IAAI;AACR;AACA;AACA,QAAQ,OAAO,CAAC,gCAAgC,CAAC;AACjD;AACA,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;AACA;;;;"}
1
+ {"version":3,"file":"loadUrlPolyfill.mjs","sources":["../../../src/moduleLoaders/loadUrlPolyfill.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nexport const 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};\n"],"names":[],"mappings":"AAAA;AACA;AACY,MAAC,eAAe,GAAG,MAAM;AACrC,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;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"nativeModule.mjs","sources":["../../src/nativeModule.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { NativeModules, Platform } from 'react-native';\nconst LINKING_ERROR = `The package '@aws-amplify/react-native' doesn't seem to be linked. Make sure: \\n\\n` +\n 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';\nexport const nativeModule = NativeModules.AmplifyRTNCore\n ? NativeModules.AmplifyRTNCore\n : new Proxy({}, {\n get() {\n throw new Error(LINKING_ERROR);\n },\n });\n"],"names":[],"mappings":";;AAAA;AACA;AAEA,MAAM,aAAa,GAAG,CAAC,kFAAkF,CAAC;AAC1G,IAAI,QAAQ,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,gCAAgC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;AAC3E,IAAI,sDAAsD;AAC1D,IAAI,+BAA+B;AACvB,MAAC,YAAY,GAAG,aAAa,CAAC;AAC1C,MAAM,aAAa,CAAC;AACpB,MAAM,IAAI,KAAK,CAAC,EAAE,EAAE;AACpB,QAAQ,GAAG,GAAG;AACd,YAAY,MAAM,IAAI,KAAK,CAAC,aAAa,CAAC;AAC1C,SAAS;AACT,KAAK;;;;"}
1
+ {"version":3,"file":"nativeModule.mjs","sources":["../../src/nativeModule.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { NativeModules, Platform } from 'react-native';\nconst LINKING_ERROR = `The package '@aws-amplify/react-native' doesn't seem to be linked. Make sure: \\n\\n` +\n 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';\nexport const nativeModule = NativeModules.AmplifyRTNCore\n ? NativeModules.AmplifyRTNCore\n : new Proxy({}, {\n get() {\n throw new Error(LINKING_ERROR);\n },\n });\n"],"names":[],"mappings":";;AAAA;AACA;AAEA,MAAM,aAAa,GAAG,CAAC,kFAAkF,CAAC;AAC1G,IAAI,QAAQ,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,gCAAgC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;AAC3E,IAAI,sDAAsD;AAC1D,IAAI,+BAA+B;AACvB,MAAC,YAAY,GAAG,aAAa,CAAC;AAC1C,MAAM,aAAa,CAAC;AACpB,MAAM,IAAI,KAAK,CAAC,EAAE,EAAE;AACpB,QAAQ,GAAG,GAAG;AACd,YAAY,MAAM,IAAI,KAAK,CAAC,aAAa,CAAC;AAC1C,QAAQ,CAAC;AACT,KAAK;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/react-native",
3
- "version": "1.1.11-unstable.f94a30b.0+f94a30b",
3
+ "version": "1.2.0",
4
4
  "description": "React Native core module for aws-amplify",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.mjs",
@@ -11,8 +11,11 @@
11
11
  "access": "public"
12
12
  },
13
13
  "scripts": {
14
+ "prepare:ios": "cd example && npx pod-install",
15
+ "prepare:android": "echo 'no-op'",
14
16
  "test": "echo 'no-op'",
15
- "test:android": "./android/gradlew test -p ./android",
17
+ "test:ios": "echo 'no-op'",
18
+ "test:android": "cd ./example/android && ./gradlew test -i",
16
19
  "build-with-test": "npm run clean && npm test && tsc",
17
20
  "build:esm-cjs": "rollup --forceExit -c rollup.config.mjs",
18
21
  "build:watch": "npm run build:esm-cjs -- --watch",
@@ -29,12 +32,19 @@
29
32
  "react-native-url-polyfill": "^2.0.0"
30
33
  },
31
34
  "peerDependencies": {
35
+ "@aws-amplify/rtn-passkeys": "^1.0.0",
32
36
  "react-native": ">=0.70",
33
37
  "react-native-get-random-values": ">=1.8.0"
34
38
  },
39
+ "peerDependenciesMeta": {
40
+ "@aws-amplify/rtn-passkeys": {
41
+ "optional": true
42
+ }
43
+ },
35
44
  "devDependencies": {
36
- "@aws-amplify/rtn-push-notification": "1.2.36-unstable.f94a30b.0+f94a30b",
37
- "@aws-amplify/rtn-web-browser": "1.1.5-unstable.f94a30b.0+f94a30b",
45
+ "@aws-amplify/rtn-passkeys": "1.1.0",
46
+ "@aws-amplify/rtn-push-notification": "1.3.0",
47
+ "@aws-amplify/rtn-web-browser": "1.2.0",
38
48
  "@react-native-async-storage/async-storage": "^1.17.12",
39
49
  "@react-native-community/netinfo": "4.7.0",
40
50
  "@types/base-64": "1.0.0",
@@ -60,5 +70,5 @@
60
70
  "src"
61
71
  ],
62
72
  "source": "src/index",
63
- "gitHead": "f94a30b71e4e5abbce1ad8c215fbb67386721bff"
73
+ "gitHead": "2ffc7200d2e7ca45b51bf40316431cf467065c32"
64
74
  }
@@ -0,0 +1,18 @@
1
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ // SPDX-License-Identifier: Apache-2.0
3
+
4
+ interface NativeError extends Error {
5
+ code: string;
6
+ domain?: string;
7
+ userInfo?: Record<string, unknown>;
8
+ nativeStackIOS?: never[];
9
+ nativeStackAndroid?: Record<string, unknown>[];
10
+ }
11
+
12
+ export const getIsNativeError = (err: unknown): err is NativeError => {
13
+ return (
14
+ err instanceof Error &&
15
+ 'code' in err &&
16
+ ('nativeStackIOS' in err || 'nativeStackAndroid' in err)
17
+ );
18
+ };
package/src/apis/index.ts CHANGED
@@ -5,3 +5,4 @@ export { computeModPow } from './computeModPow';
5
5
  export { computeS } from './computeS';
6
6
  export { getOperatingSystem } from './getOperatingSystem';
7
7
  export { getDeviceName } from './getDeviceName';
8
+ export { getIsNativeError } from './getIsNativeError';
package/src/index.ts CHANGED
@@ -6,8 +6,10 @@ export {
6
6
  computeS,
7
7
  getOperatingSystem,
8
8
  getDeviceName,
9
+ getIsNativeError,
9
10
  } from './apis';
10
11
  export {
12
+ loadAmplifyRtnPasskeys,
11
13
  loadAmplifyPushNotification,
12
14
  loadAmplifyWebBrowser,
13
15
  loadAsyncStorage,
@@ -1,6 +1,7 @@
1
1
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
 
4
+ export { loadAmplifyRtnPasskeys } from './loadAmplifyRtnPasskeys';
4
5
  export { loadAmplifyPushNotification } from './loadAmplifyPushNotification';
5
6
  export { loadAmplifyWebBrowser } from './loadAmplifyWebBrowser';
6
7
  export { loadAsyncStorage } from './loadAsyncStorage';
@@ -0,0 +1,28 @@
1
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ // SPDX-License-Identifier: Apache-2.0
3
+
4
+ import type { AmplifyRtnPasskeysModule } from '@aws-amplify/rtn-passkeys';
5
+
6
+ export const loadAmplifyRtnPasskeys = () => {
7
+ try {
8
+ // metro bundler requires static string for loading module.
9
+ // See: https://facebook.github.io/metro/docs/configuration/#dynamicdepsinpackages
10
+ const module = require('@aws-amplify/rtn-passkeys')?.module;
11
+ if (module) {
12
+ return module as AmplifyRtnPasskeysModule;
13
+ }
14
+
15
+ throw new Error(
16
+ 'Ensure `@aws-amplify/rtn-passkeys` 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 as Error).message.replace(
23
+ /undefined/g,
24
+ '@aws-amplify/rtn-passkeys',
25
+ );
26
+ throw new Error(message);
27
+ }
28
+ };