@carbonorm/carbonreact 3.3.11 → 3.3.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carbonorm/carbonreact",
3
- "version": "3.3.11",
3
+ "version": "3.3.13",
4
4
  "browser": "dist/index.umd.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "main": "dist/index.cjs.js",
@@ -1,11 +1,11 @@
1
1
  import styles from './style.module.scss';
2
2
  import OutsideClickHandler from 'react-outside-click-handler';
3
+ import CarbonReact from "../../CarbonReact";
4
+ import {ReactElement} from "react";
3
5
 
4
- export default function BackendThrowable() {
6
+ export default () : ReactElement => {
5
7
 
6
- const CarbonORM = require('CarbonReact').default;
7
-
8
- const bootstrap = CarbonORM.instance;
8
+ const bootstrap = CarbonReact.instance;
9
9
 
10
10
  const currentThrowable = bootstrap.state.backendThrowable[0];
11
11
 
@@ -33,8 +33,7 @@ export default function BackendThrowable() {
33
33
  </div>
34
34
  {valueIsString
35
35
  ? ''
36
- :
37
- <pre className={styles.errorPre}>{JSON.stringify(currentThrowable[key], undefined, 4)}</pre>}
36
+ : <pre className={styles.errorPre}>{JSON.stringify(currentThrowable[key], undefined, 4)}</pre>}
38
37
  </div>;
39
38
  })}
40
39
  </div>