@carbonorm/carbonreact 3.3.10 → 3.3.12

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.10",
3
+ "version": "3.3.12",
4
4
  "browser": "dist/index.umd.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "main": "dist/index.cjs.js",
@@ -1,11 +1,10 @@
1
1
  import styles from './style.module.scss';
2
2
  import OutsideClickHandler from 'react-outside-click-handler';
3
+ import CarbonReact from "../../CarbonReact";
3
4
 
4
5
  export default function BackendThrowable() {
5
6
 
6
- const CarbonORM = require('CarbonReact').default;
7
-
8
- const bootstrap = CarbonORM.instance;
7
+ const bootstrap = CarbonReact.instance;
9
8
 
10
9
  const currentThrowable = bootstrap.state.backendThrowable[0];
11
10
 
@@ -1,5 +1,3 @@
1
- import fs from "fs";
2
- import {inspect} from "util";
3
1
  import {axiosInstance, checkAllRequestsComplete, isVerbose} from "@carbonorm/carbonnode";
4
2
  import {waitFor} from "@testing-library/react";
5
3
  import ValidSQL, {validSQL} from "./validSQL";
@@ -9,6 +7,9 @@ export default function ({sqlDirectory = './logs/rest/', logsDirectory = './logs
9
7
  logsDirectory?: string
10
8
  } = {}) {
11
9
 
10
+ const fs = require("fs");
11
+ const {inspect} = require("util");
12
+
12
13
  const originalWindowLocation = window.location
13
14
 
14
15
  const consoleOriginal = console;