@aws-amplify/rtn-web-browser 1.0.1 → 1.0.2-unstable.51ed7b4.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.
@@ -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.nativeEventEmitter = exports.nativeModule = void 0;
6
+ exports.nativeModule = void 0;
7
7
  const react_native_1 = require("react-native");
8
8
  const constants_1 = require("./constants");
9
9
  exports.nativeModule = react_native_1.NativeModules.AmplifyRTNWebBrowser
@@ -13,5 +13,4 @@ exports.nativeModule = react_native_1.NativeModules.AmplifyRTNWebBrowser
13
13
  throw new Error(constants_1.LINKING_ERROR);
14
14
  },
15
15
  });
16
- exports.nativeEventEmitter = new react_native_1.NativeEventEmitter(exports.nativeModule);
17
16
  //# sourceMappingURL=nativeModule.js.map
@@ -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.nativeEventEmitter = exports.nativeModule = void 0;\nconst react_native_1 = require(\"react-native\");\nconst constants_1 = require(\"./constants\");\nexports.nativeModule = react_native_1.NativeModules.AmplifyRTNWebBrowser\n ? react_native_1.NativeModules.AmplifyRTNWebBrowser\n : new Proxy({}, {\n get() {\n throw new Error(constants_1.LINKING_ERROR);\n },\n });\nexports.nativeEventEmitter = new react_native_1.NativeEventEmitter(exports.nativeModule);\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,kBAAkB,GAAG,OAAO,CAAC,YAAY,GAAG,KAAK,CAAC,CAAC;AAC3D,MAAM,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;AAC/C,MAAM,WAAW,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;AAC3C,OAAO,CAAC,YAAY,GAAG,cAAc,CAAC,aAAa,CAAC,oBAAoB;AACxE,MAAM,cAAc,CAAC,aAAa,CAAC,oBAAoB;AACvD,MAAM,IAAI,KAAK,CAAC,EAAE,EAAE;AACpB,QAAQ,GAAG,GAAG;AACd,YAAY,MAAM,IAAI,KAAK,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC;AACvD,SAAS;AACT,KAAK,CAAC,CAAC;AACP,OAAO,CAAC,kBAAkB,GAAG,IAAI,cAAc,CAAC,kBAAkB,CAAC,OAAO,CAAC,YAAY,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 constants_1 = require(\"./constants\");\nexports.nativeModule = react_native_1.NativeModules.AmplifyRTNWebBrowser\n ? react_native_1.NativeModules.AmplifyRTNWebBrowser\n : new Proxy({}, {\n get() {\n throw new Error(constants_1.LINKING_ERROR);\n },\n });\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,YAAY,GAAG,KAAK,CAAC,CAAC;AAC9B,MAAM,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;AAC/C,MAAM,WAAW,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;AAC3C,OAAO,CAAC,YAAY,GAAG,cAAc,CAAC,aAAa,CAAC,oBAAoB;AACxE,MAAM,cAAc,CAAC,aAAa,CAAC,oBAAoB;AACvD,MAAM,IAAI,KAAK,CAAC,EAAE,EAAE;AACpB,QAAQ,GAAG,GAAG;AACd,YAAY,MAAM,IAAI,KAAK,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC;AACvD,SAAS;AACT,KAAK,CAAC;;"}
@@ -1,4 +1,2 @@
1
- import { NativeEventEmitter } from 'react-native';
2
1
  import { WebBrowserNativeModule } from './types';
3
2
  export declare const nativeModule: WebBrowserNativeModule;
4
- export declare const nativeEventEmitter: NativeEventEmitter;
@@ -1,4 +1,4 @@
1
- import { NativeModules, NativeEventEmitter } from 'react-native';
1
+ import { NativeModules } from 'react-native';
2
2
  import { LINKING_ERROR } from './constants.mjs';
3
3
 
4
4
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
@@ -10,7 +10,6 @@ const nativeModule = NativeModules.AmplifyRTNWebBrowser
10
10
  throw new Error(LINKING_ERROR);
11
11
  },
12
12
  });
13
- const nativeEventEmitter = new NativeEventEmitter(nativeModule);
14
13
 
15
- export { nativeEventEmitter, nativeModule };
14
+ export { nativeModule };
16
15
  //# sourceMappingURL=nativeModule.mjs.map
@@ -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, NativeEventEmitter } from 'react-native';\nimport { LINKING_ERROR } from './constants';\nexport const nativeModule = NativeModules.AmplifyRTNWebBrowser\n ? NativeModules.AmplifyRTNWebBrowser\n : new Proxy({}, {\n get() {\n throw new Error(LINKING_ERROR);\n },\n });\nexport const nativeEventEmitter = new NativeEventEmitter(nativeModule);\n"],"names":[],"mappings":";;;AAAA;AACA;AAGY,MAAC,YAAY,GAAG,aAAa,CAAC,oBAAoB;AAC9D,MAAM,aAAa,CAAC,oBAAoB;AACxC,MAAM,IAAI,KAAK,CAAC,EAAE,EAAE;AACpB,QAAQ,GAAG,GAAG;AACd,YAAY,MAAM,IAAI,KAAK,CAAC,aAAa,CAAC,CAAC;AAC3C,SAAS;AACT,KAAK,EAAE;AACK,MAAC,kBAAkB,GAAG,IAAI,kBAAkB,CAAC,YAAY;;;;"}
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 } from 'react-native';\nimport { LINKING_ERROR } from './constants';\nexport const nativeModule = NativeModules.AmplifyRTNWebBrowser\n ? NativeModules.AmplifyRTNWebBrowser\n : new Proxy({}, {\n get() {\n throw new Error(LINKING_ERROR);\n },\n });\n"],"names":[],"mappings":";;;AAAA;AACA;AAGY,MAAC,YAAY,GAAG,aAAa,CAAC,oBAAoB;AAC9D,MAAM,aAAa,CAAC,oBAAoB;AACxC,MAAM,IAAI,KAAK,CAAC,EAAE,EAAE;AACpB,QAAQ,GAAG,GAAG;AACd,YAAY,MAAM,IAAI,KAAK,CAAC,aAAa,CAAC,CAAC;AAC3C,SAAS;AACT,KAAK;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/rtn-web-browser",
3
- "version": "1.0.1",
3
+ "version": "1.0.2-unstable.51ed7b4.0+51ed7b4",
4
4
  "description": "React Native module for aws-amplify web browser",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.mjs",
@@ -48,5 +48,5 @@
48
48
  "dist/esm",
49
49
  "src"
50
50
  ],
51
- "gitHead": "f1408db3f570c4a18ada40cecbe7e68a0b31f1fe"
51
+ "gitHead": "51ed7b4ecb1a47b6a17635011169056bec518df9"
52
52
  }
@@ -1,7 +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
- import { NativeModules, NativeEventEmitter } from 'react-native';
4
+ import { NativeModules } from 'react-native';
5
5
  import { LINKING_ERROR } from './constants';
6
6
  import { WebBrowserNativeModule } from './types';
7
7
 
@@ -16,5 +16,3 @@ export const nativeModule: WebBrowserNativeModule =
16
16
  },
17
17
  }
18
18
  );
19
-
20
- export const nativeEventEmitter = new NativeEventEmitter(nativeModule);