@aws-amplify/react-native 1.0.1 → 1.0.2-unstable.a5eb335.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.
@@ -8,8 +8,7 @@ const loadAmplifyPushNotification = () => {
8
8
  try {
9
9
  // metro bundler requires static string for loading module.
10
10
  // See: https://facebook.github.io/metro/docs/configuration/#dynamicdepsinpackages
11
- const module = require('@aws-amplify/rtn-push-notification')
12
- ?.module;
11
+ const module = require('@aws-amplify/rtn-push-notification')?.module;
13
12
  if (module) {
14
13
  return module;
15
14
  }
@@ -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')\n ?.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,CAAC;AAC9D,OAAO,CAAC,2BAA2B,GAAG,KAAK,CAAC,CAAC;AAC7C,MAAM,2BAA2B,GAAG,MAAM;AAC1C,IAAI,IAAI;AACR;AACA;AACA,QAAQ,MAAM,MAAM,GAAG,OAAO,CAAC,oCAAoC,CAAC;AACpE,cAAc,MAAM,CAAC;AACrB,QAAQ,IAAI,MAAM,EAAE;AACpB,YAAY,OAAO,MAAM,CAAC;AAC1B,SAAS;AACT,QAAQ,MAAM,IAAI,KAAK,CAAC,sEAAsE,CAAC,CAAC;AAChG,KAAK;AACL,IAAI,OAAO,CAAC,EAAE;AACd;AACA;AACA;AACA,QAAQ,MAAM,OAAO,GAAG,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,YAAY,EAAE,oCAAoC,CAAC,CAAC;AAC9F,QAAQ,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC;AACjC,KAAK;AACL,CAAC,CAAC;AACF,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,CAAC;AAC9D,OAAO,CAAC,2BAA2B,GAAG,KAAK,CAAC,CAAC;AAC7C,MAAM,2BAA2B,GAAG,MAAM;AAC1C,IAAI,IAAI;AACR;AACA;AACA,QAAQ,MAAM,MAAM,GAAG,OAAO,CAAC,oCAAoC,CAAC,EAAE,MAAM,CAAC;AAC7E,QAAQ,IAAI,MAAM,EAAE;AACpB,YAAY,OAAO,MAAM,CAAC;AAC1B,SAAS;AACT,QAAQ,MAAM,IAAI,KAAK,CAAC,sEAAsE,CAAC,CAAC;AAChG,KAAK;AACL,IAAI,OAAO,CAAC,EAAE;AACd;AACA;AACA;AACA,QAAQ,MAAM,OAAO,GAAG,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,YAAY,EAAE,oCAAoC,CAAC,CAAC;AAC9F,QAAQ,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC;AACjC,KAAK;AACL,CAAC,CAAC;AACF,OAAO,CAAC,2BAA2B,GAAG,2BAA2B;;"}
@@ -8,8 +8,7 @@ const loadAmplifyWebBrowser = () => {
8
8
  try {
9
9
  // metro bundler requires static string for loading module.
10
10
  // See: https://facebook.github.io/metro/docs/configuration/#dynamicdepsinpackages
11
- const module = require('@aws-amplify/rtn-web-browser')
12
- ?.module;
11
+ const module = require('@aws-amplify/rtn-web-browser')?.module;
13
12
  if (module) {
14
13
  return module;
15
14
  }
@@ -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')\n ?.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,CAAC;AAC9D,OAAO,CAAC,qBAAqB,GAAG,KAAK,CAAC,CAAC;AACvC,MAAM,qBAAqB,GAAG,MAAM;AACpC,IAAI,IAAI;AACR;AACA;AACA,QAAQ,MAAM,MAAM,GAAG,OAAO,CAAC,8BAA8B,CAAC;AAC9D,cAAc,MAAM,CAAC;AACrB,QAAQ,IAAI,MAAM,EAAE;AACpB,YAAY,OAAO,MAAM,CAAC;AAC1B,SAAS;AACT,QAAQ,MAAM,IAAI,KAAK,CAAC,gEAAgE,CAAC,CAAC;AAC1F,KAAK;AACL,IAAI,OAAO,CAAC,EAAE;AACd;AACA;AACA;AACA,QAAQ,MAAM,OAAO,GAAG,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,YAAY,EAAE,8BAA8B,CAAC,CAAC;AACxF,QAAQ,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC;AACjC,KAAK;AACL,CAAC,CAAC;AACF,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,CAAC;AAC9D,OAAO,CAAC,qBAAqB,GAAG,KAAK,CAAC,CAAC;AACvC,MAAM,qBAAqB,GAAG,MAAM;AACpC,IAAI,IAAI;AACR;AACA;AACA,QAAQ,MAAM,MAAM,GAAG,OAAO,CAAC,8BAA8B,CAAC,EAAE,MAAM,CAAC;AACvE,QAAQ,IAAI,MAAM,EAAE;AACpB,YAAY,OAAO,MAAM,CAAC;AAC1B,SAAS;AACT,QAAQ,MAAM,IAAI,KAAK,CAAC,gEAAgE,CAAC,CAAC;AAC1F,KAAK;AACL,IAAI,OAAO,CAAC,EAAE;AACd;AACA;AACA;AACA,QAAQ,MAAM,OAAO,GAAG,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,YAAY,EAAE,8BAA8B,CAAC,CAAC;AACxF,QAAQ,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC;AACjC,KAAK;AACL,CAAC,CAAC;AACF,OAAO,CAAC,qBAAqB,GAAG,qBAAqB;;"}
@@ -4,8 +4,7 @@ const loadAmplifyPushNotification = () => {
4
4
  try {
5
5
  // metro bundler requires static string for loading module.
6
6
  // See: https://facebook.github.io/metro/docs/configuration/#dynamicdepsinpackages
7
- const module = require('@aws-amplify/rtn-push-notification')
8
- ?.module;
7
+ const module = require('@aws-amplify/rtn-push-notification')?.module;
9
8
  if (module) {
10
9
  return module;
11
10
  }
@@ -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')\n ?.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;AACpE,cAAc,MAAM,CAAC;AACrB,QAAQ,IAAI,MAAM,EAAE;AACpB,YAAY,OAAO,MAAM,CAAC;AAC1B,SAAS;AACT,QAAQ,MAAM,IAAI,KAAK,CAAC,sEAAsE,CAAC,CAAC;AAChG,KAAK;AACL,IAAI,OAAO,CAAC,EAAE;AACd;AACA;AACA;AACA,QAAQ,MAAM,OAAO,GAAG,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,YAAY,EAAE,oCAAoC,CAAC,CAAC;AAC9F,QAAQ,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC;AACjC,KAAK;AACL;;;;"}
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,CAAC;AAC7E,QAAQ,IAAI,MAAM,EAAE;AACpB,YAAY,OAAO,MAAM,CAAC;AAC1B,SAAS;AACT,QAAQ,MAAM,IAAI,KAAK,CAAC,sEAAsE,CAAC,CAAC;AAChG,KAAK;AACL,IAAI,OAAO,CAAC,EAAE;AACd;AACA;AACA;AACA,QAAQ,MAAM,OAAO,GAAG,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,YAAY,EAAE,oCAAoC,CAAC,CAAC;AAC9F,QAAQ,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC;AACjC,KAAK;AACL;;;;"}
@@ -4,8 +4,7 @@ const loadAmplifyWebBrowser = () => {
4
4
  try {
5
5
  // metro bundler requires static string for loading module.
6
6
  // See: https://facebook.github.io/metro/docs/configuration/#dynamicdepsinpackages
7
- const module = require('@aws-amplify/rtn-web-browser')
8
- ?.module;
7
+ const module = require('@aws-amplify/rtn-web-browser')?.module;
9
8
  if (module) {
10
9
  return module;
11
10
  }
@@ -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')\n ?.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;AAC9D,cAAc,MAAM,CAAC;AACrB,QAAQ,IAAI,MAAM,EAAE;AACpB,YAAY,OAAO,MAAM,CAAC;AAC1B,SAAS;AACT,QAAQ,MAAM,IAAI,KAAK,CAAC,gEAAgE,CAAC,CAAC;AAC1F,KAAK;AACL,IAAI,OAAO,CAAC,EAAE;AACd;AACA;AACA;AACA,QAAQ,MAAM,OAAO,GAAG,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,YAAY,EAAE,8BAA8B,CAAC,CAAC;AACxF,QAAQ,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC;AACjC,KAAK;AACL;;;;"}
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,CAAC;AACvE,QAAQ,IAAI,MAAM,EAAE;AACpB,YAAY,OAAO,MAAM,CAAC;AAC1B,SAAS;AACT,QAAQ,MAAM,IAAI,KAAK,CAAC,gEAAgE,CAAC,CAAC;AAC1F,KAAK;AACL,IAAI,OAAO,CAAC,EAAE;AACd;AACA;AACA;AACA,QAAQ,MAAM,OAAO,GAAG,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,YAAY,EAAE,8BAA8B,CAAC,CAAC;AACxF,QAAQ,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC;AACjC,KAAK;AACL;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/react-native",
3
- "version": "1.0.1",
3
+ "version": "1.0.2-unstable.a5eb335.0+a5eb335",
4
4
  "description": "React Native core module for aws-amplify",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.mjs",
@@ -33,8 +33,8 @@
33
33
  "react-native-get-random-values": ">=1.9.0"
34
34
  },
35
35
  "devDependencies": {
36
- "@aws-amplify/rtn-push-notification": "1.2.1",
37
- "@aws-amplify/rtn-web-browser": "1.0.1",
36
+ "@aws-amplify/rtn-push-notification": "1.2.2-unstable.a5eb335.0+a5eb335",
37
+ "@aws-amplify/rtn-web-browser": "1.0.2-unstable.a5eb335.0+a5eb335",
38
38
  "@react-native-async-storage/async-storage": "^1.17.12",
39
39
  "@react-native-community/netinfo": "4.7.0",
40
40
  "@rollup/plugin-typescript": "11.1.5",
@@ -64,5 +64,5 @@
64
64
  "src"
65
65
  ],
66
66
  "source": "src/index",
67
- "gitHead": "f1408db3f570c4a18ada40cecbe7e68a0b31f1fe"
67
+ "gitHead": "a5eb33543190fc91fe840eb65e86eaf4c541c3c7"
68
68
  }
@@ -7,10 +7,9 @@ export const loadAmplifyPushNotification = () => {
7
7
  try {
8
8
  // metro bundler requires static string for loading module.
9
9
  // See: https://facebook.github.io/metro/docs/configuration/#dynamicdepsinpackages
10
- const module = require('@aws-amplify/rtn-push-notification')
11
- ?.module as PushNotificationModule;
10
+ const module = require('@aws-amplify/rtn-push-notification')?.module;
12
11
  if (module) {
13
- return module;
12
+ return module as PushNotificationModule;
14
13
  }
15
14
 
16
15
  throw new Error(
@@ -7,10 +7,9 @@ export const loadAmplifyWebBrowser = () => {
7
7
  try {
8
8
  // metro bundler requires static string for loading module.
9
9
  // See: https://facebook.github.io/metro/docs/configuration/#dynamicdepsinpackages
10
- const module = require('@aws-amplify/rtn-web-browser')
11
- ?.module as WebBrowserModule;
10
+ const module = require('@aws-amplify/rtn-web-browser')?.module;
12
11
  if (module) {
13
- return module;
12
+ return module as WebBrowserModule;
14
13
  }
15
14
 
16
15
  throw new Error(