@aws-amplify/react-native 1.0.1-console-preview.8d88eef.0 → 1.0.1-console-preview.be08038.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.
package/lib/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  export type { PushNotificationMessage, PushNotificationPermissions, PushNotificationPermissionStatus, } from '@aws-amplify/rtn-push-notification';
2
2
  export { computeModPow, computeS, getOperatingSystem } from './apis';
3
- export { loadAmplifyPushNotification, loadAsyncStorage, loadNetInfo, loadBuffer, loadUrlPolyfill, loadGetRandomValues, loadBase64, } from './moduleLoaders';
3
+ export { loadAmplifyPushNotification, loadAsyncStorage, loadNetInfo, loadBuffer, loadUrlPolyfill, loadGetRandomValues, loadBase64, loadAppState, } from './moduleLoaders';
package/lib/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
3
  // SPDX-License-Identifier: Apache-2.0
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.loadBase64 = exports.loadGetRandomValues = exports.loadUrlPolyfill = exports.loadBuffer = exports.loadNetInfo = exports.loadAsyncStorage = exports.loadAmplifyPushNotification = exports.getOperatingSystem = exports.computeS = exports.computeModPow = void 0;
5
+ exports.loadAppState = exports.loadBase64 = exports.loadGetRandomValues = exports.loadUrlPolyfill = exports.loadBuffer = exports.loadNetInfo = exports.loadAsyncStorage = exports.loadAmplifyPushNotification = exports.getOperatingSystem = exports.computeS = exports.computeModPow = void 0;
6
6
  var apis_1 = require("./apis");
7
7
  Object.defineProperty(exports, "computeModPow", { enumerable: true, get: function () { return apis_1.computeModPow; } });
8
8
  Object.defineProperty(exports, "computeS", { enumerable: true, get: function () { return apis_1.computeS; } });
@@ -15,4 +15,5 @@ Object.defineProperty(exports, "loadBuffer", { enumerable: true, get: function (
15
15
  Object.defineProperty(exports, "loadUrlPolyfill", { enumerable: true, get: function () { return moduleLoaders_1.loadUrlPolyfill; } });
16
16
  Object.defineProperty(exports, "loadGetRandomValues", { enumerable: true, get: function () { return moduleLoaders_1.loadGetRandomValues; } });
17
17
  Object.defineProperty(exports, "loadBase64", { enumerable: true, get: function () { return moduleLoaders_1.loadBase64; } });
18
+ Object.defineProperty(exports, "loadAppState", { enumerable: true, get: function () { return moduleLoaders_1.loadAppState; } });
18
19
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;;;AAOtC,+BAAqE;AAA5D,qGAAA,aAAa,OAAA;AAAE,gGAAA,QAAQ,OAAA;AAAE,0GAAA,kBAAkB,OAAA;AACpD,iDAQyB;AAPxB,4HAAA,2BAA2B,OAAA;AAC3B,iHAAA,gBAAgB,OAAA;AAChB,4GAAA,WAAW,OAAA;AACX,2GAAA,UAAU,OAAA;AACV,gHAAA,eAAe,OAAA;AACf,oHAAA,mBAAmB,OAAA;AACnB,2GAAA,UAAU,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;;;AAOtC,+BAAqE;AAA5D,qGAAA,aAAa,OAAA;AAAE,gGAAA,QAAQ,OAAA;AAAE,0GAAA,kBAAkB,OAAA;AACpD,iDASyB;AARxB,4HAAA,2BAA2B,OAAA;AAC3B,iHAAA,gBAAgB,OAAA;AAChB,4GAAA,WAAW,OAAA;AACX,2GAAA,UAAU,OAAA;AACV,gHAAA,eAAe,OAAA;AACf,oHAAA,mBAAmB,OAAA;AACnB,2GAAA,UAAU,OAAA;AACV,6GAAA,YAAY,OAAA"}
@@ -5,3 +5,4 @@ export { loadBuffer } from './loadBuffer';
5
5
  export { loadUrlPolyfill } from './loadUrlPolyfill';
6
6
  export { loadGetRandomValues } from './loadGetRandomValues';
7
7
  export { loadBase64 } from './loadBase64';
8
+ export { loadAppState } from './loadAppState';
@@ -2,7 +2,7 @@
2
2
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
3
  // SPDX-License-Identifier: Apache-2.0
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.loadBase64 = exports.loadGetRandomValues = exports.loadUrlPolyfill = exports.loadBuffer = exports.loadNetInfo = exports.loadAsyncStorage = exports.loadAmplifyPushNotification = void 0;
5
+ exports.loadAppState = exports.loadBase64 = exports.loadGetRandomValues = exports.loadUrlPolyfill = exports.loadBuffer = exports.loadNetInfo = exports.loadAsyncStorage = exports.loadAmplifyPushNotification = void 0;
6
6
  var loadAmplifyPushNotification_1 = require("./loadAmplifyPushNotification");
7
7
  Object.defineProperty(exports, "loadAmplifyPushNotification", { enumerable: true, get: function () { return loadAmplifyPushNotification_1.loadAmplifyPushNotification; } });
8
8
  var loadAsyncStorage_1 = require("./loadAsyncStorage");
@@ -17,4 +17,6 @@ var loadGetRandomValues_1 = require("./loadGetRandomValues");
17
17
  Object.defineProperty(exports, "loadGetRandomValues", { enumerable: true, get: function () { return loadGetRandomValues_1.loadGetRandomValues; } });
18
18
  var loadBase64_1 = require("./loadBase64");
19
19
  Object.defineProperty(exports, "loadBase64", { enumerable: true, get: function () { return loadBase64_1.loadBase64; } });
20
+ var loadAppState_1 = require("./loadAppState");
21
+ Object.defineProperty(exports, "loadAppState", { enumerable: true, get: function () { return loadAppState_1.loadAppState; } });
20
22
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/moduleLoaders/index.ts"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;;;AAEtC,6EAA4E;AAAnE,0IAAA,2BAA2B,OAAA;AACpC,uDAAsD;AAA7C,oHAAA,gBAAgB,OAAA;AACzB,6CAA4C;AAAnC,0GAAA,WAAW,OAAA;AACpB,2CAA0C;AAAjC,wGAAA,UAAU,OAAA;AACnB,qDAAoD;AAA3C,kHAAA,eAAe,OAAA;AACxB,6DAA4D;AAAnD,0HAAA,mBAAmB,OAAA;AAC5B,2CAA0C;AAAjC,wGAAA,UAAU,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/moduleLoaders/index.ts"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;;;AAEtC,6EAA4E;AAAnE,0IAAA,2BAA2B,OAAA;AACpC,uDAAsD;AAA7C,oHAAA,gBAAgB,OAAA;AACzB,6CAA4C;AAAnC,0GAAA,WAAW,OAAA;AACpB,2CAA0C;AAAjC,wGAAA,UAAU,OAAA;AACnB,qDAAoD;AAA3C,kHAAA,eAAe,OAAA;AACxB,6DAA4D;AAAnD,0HAAA,mBAAmB,OAAA;AAC5B,2CAA0C;AAAjC,wGAAA,UAAU,OAAA;AACnB,+CAA8C;AAArC,4GAAA,YAAY,OAAA"}
@@ -0,0 +1 @@
1
+ export declare const loadAppState: () => import("react-native").AppStateStatic;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ // SPDX-License-Identifier: Apache-2.0
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.loadAppState = void 0;
6
+ const react_native_1 = require("react-native");
7
+ const loadAppState = () => react_native_1.AppState;
8
+ exports.loadAppState = loadAppState;
9
+ //# sourceMappingURL=loadAppState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loadAppState.js","sourceRoot":"","sources":["../../src/moduleLoaders/loadAppState.ts"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;;;AAEtC,+CAAwC;AAEjC,MAAM,YAAY,GAAG,GAAG,EAAE,CAAC,uBAAQ,CAAC;AAA9B,QAAA,YAAY,gBAAkB"}
@@ -13,7 +13,7 @@ const loadGetRandomValues = () => {
13
13
  // The error parsing logic cannot be extract as with metro the `require`
14
14
  // would be confused when there is a `import` in the same file importing
15
15
  // another module and that causes error
16
- const message = e.message.replace(/undefined/g, '@react-native-community/netinfo');
16
+ const message = e.message.replace(/undefined/g, 'react-native-get-random-values');
17
17
  throw new Error(message);
18
18
  }
19
19
  };
@@ -1 +1 @@
1
- {"version":3,"file":"loadGetRandomValues.js","sourceRoot":"","sources":["../../src/moduleLoaders/loadGetRandomValues.ts"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;;;AAE/B,MAAM,mBAAmB,GAAG,GAAG,EAAE;IACvC,IAAI;QACH,2DAA2D;QAC3D,kFAAkF;QAClF,OAAO,CAAC,gCAAgC,CAAC,CAAC;KAC1C;IAAC,OAAO,CAAC,EAAE;QACX,wEAAwE;QACxE,wEAAwE;QACxE,uCAAuC;QACvC,MAAM,OAAO,GAAI,CAAW,CAAC,OAAO,CAAC,OAAO,CAC3C,YAAY,EACZ,iCAAiC,CACjC,CAAC;QACF,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC;KACzB;AACF,CAAC,CAAC;AAfW,QAAA,mBAAmB,uBAe9B"}
1
+ {"version":3,"file":"loadGetRandomValues.js","sourceRoot":"","sources":["../../src/moduleLoaders/loadGetRandomValues.ts"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;;;AAE/B,MAAM,mBAAmB,GAAG,GAAG,EAAE;IACvC,IAAI;QACH,2DAA2D;QAC3D,kFAAkF;QAClF,OAAO,CAAC,gCAAgC,CAAC,CAAC;KAC1C;IAAC,OAAO,CAAC,EAAE;QACX,wEAAwE;QACxE,wEAAwE;QACxE,uCAAuC;QACvC,MAAM,OAAO,GAAI,CAAW,CAAC,OAAO,CAAC,OAAO,CAC3C,YAAY,EACZ,gCAAgC,CAChC,CAAC;QACF,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC;KACzB;AACF,CAAC,CAAC;AAfW,QAAA,mBAAmB,uBAe9B"}
@@ -1,3 +1,3 @@
1
1
  export type { PushNotificationMessage, PushNotificationPermissions, PushNotificationPermissionStatus, } from '@aws-amplify/rtn-push-notification';
2
2
  export { computeModPow, computeS, getOperatingSystem } from './apis';
3
- export { loadAmplifyPushNotification, loadAsyncStorage, loadNetInfo, loadBuffer, loadUrlPolyfill, loadGetRandomValues, loadBase64, } from './moduleLoaders';
3
+ export { loadAmplifyPushNotification, loadAsyncStorage, loadNetInfo, loadBuffer, loadUrlPolyfill, loadGetRandomValues, loadBase64, loadAppState, } from './moduleLoaders';
package/lib-esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  export { computeModPow, computeS, getOperatingSystem } from './apis';
4
- export { loadAmplifyPushNotification, loadAsyncStorage, loadNetInfo, loadBuffer, loadUrlPolyfill, loadGetRandomValues, loadBase64, } from './moduleLoaders';
4
+ export { loadAmplifyPushNotification, loadAsyncStorage, loadNetInfo, loadBuffer, loadUrlPolyfill, loadGetRandomValues, loadBase64, loadAppState, } from './moduleLoaders';
5
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAOtC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AACrE,OAAO,EACN,2BAA2B,EAC3B,gBAAgB,EAChB,WAAW,EACX,UAAU,EACV,eAAe,EACf,mBAAmB,EACnB,UAAU,GACV,MAAM,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAOtC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AACrE,OAAO,EACN,2BAA2B,EAC3B,gBAAgB,EAChB,WAAW,EACX,UAAU,EACV,eAAe,EACf,mBAAmB,EACnB,UAAU,EACV,YAAY,GACZ,MAAM,iBAAiB,CAAC"}
@@ -5,3 +5,4 @@ export { loadBuffer } from './loadBuffer';
5
5
  export { loadUrlPolyfill } from './loadUrlPolyfill';
6
6
  export { loadGetRandomValues } from './loadGetRandomValues';
7
7
  export { loadBase64 } from './loadBase64';
8
+ export { loadAppState } from './loadAppState';
@@ -7,4 +7,5 @@ export { loadBuffer } from './loadBuffer';
7
7
  export { loadUrlPolyfill } from './loadUrlPolyfill';
8
8
  export { loadGetRandomValues } from './loadGetRandomValues';
9
9
  export { loadBase64 } from './loadBase64';
10
+ export { loadAppState } from './loadAppState';
10
11
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/moduleLoaders/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAC5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/moduleLoaders/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAC5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
@@ -0,0 +1 @@
1
+ export declare const loadAppState: () => import("react-native").AppStateStatic;
@@ -0,0 +1,5 @@
1
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ // SPDX-License-Identifier: Apache-2.0
3
+ import { AppState } from 'react-native';
4
+ export const loadAppState = () => AppState;
5
+ //# sourceMappingURL=loadAppState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loadAppState.js","sourceRoot":"","sources":["../../src/moduleLoaders/loadAppState.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,EAAE,CAAC,QAAQ,CAAC"}
@@ -10,7 +10,7 @@ export const loadGetRandomValues = () => {
10
10
  // The error parsing logic cannot be extract as with metro the `require`
11
11
  // would be confused when there is a `import` in the same file importing
12
12
  // another module and that causes error
13
- const message = e.message.replace(/undefined/g, '@react-native-community/netinfo');
13
+ const message = e.message.replace(/undefined/g, 'react-native-get-random-values');
14
14
  throw new Error(message);
15
15
  }
16
16
  };
@@ -1 +1 @@
1
- {"version":3,"file":"loadGetRandomValues.js","sourceRoot":"","sources":["../../src/moduleLoaders/loadGetRandomValues.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,EAAE;IACvC,IAAI;QACH,2DAA2D;QAC3D,kFAAkF;QAClF,OAAO,CAAC,gCAAgC,CAAC,CAAC;KAC1C;IAAC,OAAO,CAAC,EAAE;QACX,wEAAwE;QACxE,wEAAwE;QACxE,uCAAuC;QACvC,MAAM,OAAO,GAAI,CAAW,CAAC,OAAO,CAAC,OAAO,CAC3C,YAAY,EACZ,iCAAiC,CACjC,CAAC;QACF,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC;KACzB;AACF,CAAC,CAAC"}
1
+ {"version":3,"file":"loadGetRandomValues.js","sourceRoot":"","sources":["../../src/moduleLoaders/loadGetRandomValues.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,EAAE;IACvC,IAAI;QACH,2DAA2D;QAC3D,kFAAkF;QAClF,OAAO,CAAC,gCAAgC,CAAC,CAAC;KAC1C;IAAC,OAAO,CAAC,EAAE;QACX,wEAAwE;QACxE,wEAAwE;QACxE,uCAAuC;QACvC,MAAM,OAAO,GAAI,CAAW,CAAC,OAAO,CAAC,OAAO,CAC3C,YAAY,EACZ,gCAAgC,CAChC,CAAC;QACF,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC;KACzB;AACF,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/react-native",
3
- "version": "1.0.1-console-preview.8d88eef.0+8d88eef",
3
+ "version": "1.0.1-console-preview.be08038.0+be08038",
4
4
  "description": "React Native core module for aws-amplify",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib-esm/index.js",
@@ -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-console-preview.8d88eef.0+8d88eef",
37
- "@aws-amplify/rtn-web-browser": "1.0.1-console-preview.8d88eef.0+8d88eef",
36
+ "@aws-amplify/rtn-push-notification": "1.2.1-console-preview.be08038.0+be08038",
37
+ "@aws-amplify/rtn-web-browser": "1.0.1-console-preview.be08038.0+be08038",
38
38
  "@react-native-async-storage/async-storage": "^1.17.12",
39
39
  "@react-native-community/netinfo": "4.7.0",
40
40
  "@types/base-64": "1.0.0",
@@ -65,5 +65,5 @@
65
65
  "src"
66
66
  ],
67
67
  "source": "src/index",
68
- "gitHead": "8d88eef4137cef4fbe03d7d3683b5bec59feb7b8"
68
+ "gitHead": "be08038c5b37a510243f077c6d3209e5383f8866"
69
69
  }
package/src/index.ts CHANGED
@@ -15,4 +15,5 @@ export {
15
15
  loadUrlPolyfill,
16
16
  loadGetRandomValues,
17
17
  loadBase64,
18
+ loadAppState,
18
19
  } from './moduleLoaders';
@@ -8,3 +8,4 @@ export { loadBuffer } from './loadBuffer';
8
8
  export { loadUrlPolyfill } from './loadUrlPolyfill';
9
9
  export { loadGetRandomValues } from './loadGetRandomValues';
10
10
  export { loadBase64 } from './loadBase64';
11
+ export { loadAppState } from './loadAppState';
@@ -0,0 +1,6 @@
1
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ // SPDX-License-Identifier: Apache-2.0
3
+
4
+ import { AppState } from 'react-native';
5
+
6
+ export const loadAppState = () => AppState;
@@ -12,7 +12,7 @@ export const loadGetRandomValues = () => {
12
12
  // another module and that causes error
13
13
  const message = (e as Error).message.replace(
14
14
  /undefined/g,
15
- '@react-native-community/netinfo'
15
+ 'react-native-get-random-values'
16
16
  );
17
17
  throw new Error(message);
18
18
  }