@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/compileValidSQL.cjs +4 -5
- package/compileValidSQL.tsx +2 -2
- package/dist/index.cjs.js +4 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +3 -4
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Errors/BackendThrowable.tsx +2 -3
- package/src/hoc/setupTests.tsx +3 -2
package/dist/index.esm.js
CHANGED
|
@@ -7,8 +7,6 @@ import classNames from 'classnames';
|
|
|
7
7
|
import { faClose } from '@fortawesome/free-solid-svg-icons';
|
|
8
8
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
9
9
|
import Skeleton, { SkeletonTheme } from 'react-loading-skeleton';
|
|
10
|
-
import fs from 'fs';
|
|
11
|
-
import { inspect } from 'util';
|
|
12
10
|
import { waitFor } from '@testing-library/react';
|
|
13
11
|
|
|
14
12
|
function createCommonjsModule(fn, module) {
|
|
@@ -1393,8 +1391,7 @@ function hexToRgb (hex) {
|
|
|
1393
1391
|
var styles = {"maintenance-hero":"C5KSPNF","maintenanceHero":"C5KSPNF","httpStatusCode":"NhyRQts","centeredContainer":"nA4Uno6","errorTextGeneral":"yJAgaUs","errorKeys":"SRIoY4m","error-values":"xQIsoNw","errorValues":"xQIsoNw","error-pre":"C6eWpJ3","errorPre":"C6eWpJ3","line-number":"NFRyo7M","lineNumber":"NFRyo7M","cl":"vR2jbfr","slide":"OO2C-Wp"};
|
|
1394
1392
|
|
|
1395
1393
|
function BackendThrowable() {
|
|
1396
|
-
const
|
|
1397
|
-
const bootstrap = CarbonORM.instance;
|
|
1394
|
+
const bootstrap = CarbonReact.instance;
|
|
1398
1395
|
const currentThrowable = bootstrap.state.backendThrowable[0];
|
|
1399
1396
|
console.log([bootstrap.state.backendThrowable, currentThrowable]);
|
|
1400
1397
|
return jsxRuntime_2("div", { className: styles.maintenanceHero, children: [jsxRuntime_1("h1", { className: styles.httpStatusCode, children: currentThrowable?.status || 500 }), jsxRuntime_1(OutsideClickHandler, { onOutsideClick: () => bootstrap.setState(currentState => ({ backendThrowable: currentState.backendThrowable.slice(1) })), children: jsxRuntime_1("div", { className: styles.centeredContainer, children: Object.keys(currentThrowable).map((key, index) => {
|
|
@@ -4252,6 +4249,8 @@ function ValidSQL (sql) {
|
|
|
4252
4249
|
}
|
|
4253
4250
|
|
|
4254
4251
|
function setupTests ({ sqlDirectory = './logs/rest/', logsDirectory = './logs/tests/' } = {}) {
|
|
4252
|
+
const fs = require("fs");
|
|
4253
|
+
const { inspect } = require("util");
|
|
4255
4254
|
const originalWindowLocation = window.location;
|
|
4256
4255
|
const consoleOriginal = console;
|
|
4257
4256
|
const testName = () => expect.getState().currentTestName?.replaceAll(" ", "_").toLowerCase();
|