@finos/legend-application
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -25,15 +25,18 @@ /** | ||
} | ||
const { debug, info, warn, error } = console; | ||
export class LegendApplicationWebConsole extends LegendApplicationLogger { | ||
debug(event, ...data) { | ||
debug(`[${event.timestamp}] ${event.name} ${data.length ? ':' : ''}`, ...data); | ||
// eslint-disable-next-line no-console | ||
console.debug(`[${event.timestamp}] ${event.name} ${data.length ? ':' : ''}`, ...data); | ||
} | ||
info(event, ...data) { | ||
info(`[${event.timestamp}] ${event.name} ${data.length ? ':' : ''}`, ...data); | ||
// eslint-disable-next-line no-console | ||
console.info(`[${event.timestamp}] ${event.name} ${data.length ? ':' : ''}`, ...data); | ||
} | ||
warn(event, ...data) { | ||
warn(`[${event.timestamp}] ${event.name} ${data.length ? ':' : ''}`, ...data); | ||
// eslint-disable-next-line no-console | ||
console.warn(`[${event.timestamp}] ${event.name} ${data.length ? ':' : ''}`, ...data); | ||
} | ||
error(event, ...data) { | ||
error(`[${event.timestamp}] ${event.name} ${data.length ? ':' : ''}`, ...data); | ||
// eslint-disable-next-line no-console | ||
console.error(`[${event.timestamp}] ${event.name} ${data.length ? ':' : ''}`, ...data); | ||
} | ||
@@ -40,0 +43,0 @@ } |
@@ -49,3 +49,3 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime"; | ||
transformStringToLambda?.cancel(); | ||
return await flowResult(lambdaEditorState.convertLambdaObjectToGrammarString(pretty)).catch(applicationStore.alertUnhandledError); | ||
return flowResult(lambdaEditorState.convertLambdaObjectToGrammarString(pretty)).catch(applicationStore.alertUnhandledError); | ||
}; | ||
@@ -249,3 +249,3 @@ const discardChanges = applicationStore.guardUnhandledError(() => transformLambdaToString(isExpanded)); | ||
transformStringToLambda?.cancel(); | ||
return await flowResult(lambdaEditorState.convertLambdaObjectToGrammarString(pretty)).catch(applicationStore.alertUnhandledError); | ||
return flowResult(lambdaEditorState.convertLambdaObjectToGrammarString(pretty)).catch(applicationStore.alertUnhandledError); | ||
}; | ||
@@ -252,0 +252,0 @@ const discardChanges = applicationStore.guardUnhandledError(() => transformLambdaToString(true)); |
@@ -97,3 +97,3 @@ /** | ||
*/ | ||
notifyAndReturnAlternativeOnError: <T_1 extends SuperGenericFunction, W>(fn: T_1, alternative: W) => W | ReturnType<T_1> | undefined; | ||
notifyAndReturnAlternativeOnError: <U extends SuperGenericFunction, W>(fn: U, alternative: W) => W | ReturnType<U> | undefined; | ||
/** | ||
@@ -100,0 +100,0 @@ * When we call store/state functions from the component, we should handle error thrown at these functions instead |
{ | ||
"name": "@finos/legend-application", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "Legend application core", | ||
@@ -27,11 +27,11 @@ "keywords": [ | ||
"scripts": { | ||
"build": "yarn clean && yarn build:sass && yarn build:tsc", | ||
"build": "yarn clean && yarn build:sass && yarn build:ts", | ||
"build:sass": "cross-env INIT_CWD=$INIT_CWD node ../../scripts/workflow/buildSass.js", | ||
"build:tsc": "tsc --project ./tsconfig.build.json", | ||
"build:ts": "tsc --project ./tsconfig.build.json", | ||
"clean": "npm-run-all clean:cache clean:lib", | ||
"clean:cache": "rimraf \"build\"", | ||
"clean:lib": "rimraf \"lib\"", | ||
"dev": "npm-run-all --parallel dev:sass dev:tsc", | ||
"dev": "npm-run-all --parallel dev:sass dev:ts", | ||
"dev:sass": "sass style lib --watch --load-path=../../node_modules/@finos/legend-art/scss", | ||
"dev:tsc": "tsc --watch --preserveWatchOutput", | ||
"dev:ts": "tsc --watch --preserveWatchOutput", | ||
"lint:js": "cross-env NODE_ENV=production eslint --cache --cache-location ./build/.eslintcache --report-unused-disable-directives --parser-options=project:\"./tsconfig.json\" \"./src/**/*.{js,ts,tsx}\"", | ||
@@ -44,13 +44,13 @@ "publish:prepare": "node ../../scripts/release/preparePublishContent.js", | ||
"dependencies": { | ||
"@finos/legend-art": "0.3.8", | ||
"@finos/legend-graph": "1.2.1", | ||
"@finos/legend-shared": "1.2.3", | ||
"@finos/legend-art": "0.3.9", | ||
"@finos/legend-graph": "1.3.0", | ||
"@finos/legend-shared": "1.2.4", | ||
"@types/css-font-loading-module": "0.0.7", | ||
"@types/react": "17.0.39", | ||
"@types/react-dom": "17.0.13", | ||
"@types/react": "17.0.41", | ||
"@types/react-dom": "17.0.14", | ||
"@types/react-router-dom": "5.3.2", | ||
"history": "5.3.0", | ||
"mobx": "6.4.2", | ||
"mobx": "6.5.0", | ||
"mobx-react-lite": "3.3.0", | ||
"monaco-editor": "0.32.1", | ||
"monaco-editor": "0.33.0", | ||
"react": "17.0.2", | ||
@@ -64,5 +64,5 @@ "react-dom": "17.0.2", | ||
"devDependencies": { | ||
"@finos/legend-dev-utils": "0.3.12", | ||
"@finos/legend-dev-utils": "0.3.13", | ||
"cross-env": "7.0.3", | ||
"eslint": "8.10.0", | ||
"eslint": "8.11.0", | ||
"jest": "27.5.1", | ||
@@ -69,0 +69,0 @@ "npm-run-all": "4.1.5", |
@@ -262,6 +262,6 @@ /** | ||
*/ | ||
notifyAndReturnAlternativeOnError = <T extends SuperGenericFunction, W>( | ||
fn: T, | ||
notifyAndReturnAlternativeOnError = <U extends SuperGenericFunction, W>( | ||
fn: U, | ||
alternative: W, | ||
): ReturnType<T> | W | undefined => { | ||
): ReturnType<U> | W | undefined => { | ||
try { | ||
@@ -268,0 +268,0 @@ return fn(); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6056
360837
136
+ Added@emotion/react@11.8.2(transitive)
+ Added@finos/legend-art@0.3.9(transitive)
+ Added@finos/legend-graph@1.3.0(transitive)
+ Added@finos/legend-model-storage@0.0.22(transitive)
+ Added@finos/legend-shared@1.2.4(transitive)
+ Added@fontsource/roboto-condensed@4.5.4(transitive)
+ Added@mui/base@5.0.0-alpha.73(transitive)
+ Added@mui/material@5.5.2(transitive)
+ Added@types/react@17.0.41(transitive)
+ Added@types/react-dom@17.0.14(transitive)
+ Addedmobx@6.5.0(transitive)
+ Addedmonaco-editor@0.33.0(transitive)
- Removed@emotion/react@11.8.1(transitive)
- Removed@finos/legend-art@0.3.8(transitive)
- Removed@finos/legend-graph@1.2.1(transitive)
- Removed@finos/legend-model-storage@0.0.21(transitive)
- Removed@finos/legend-shared@1.2.3(transitive)
- Removed@fontsource/roboto-condensed@4.5.3(transitive)
- Removed@mui/base@5.0.0-alpha.71(transitive)
- Removed@mui/material@5.5.0(transitive)
- Removed@types/react@17.0.39(transitive)
- Removed@types/react-dom@17.0.13(transitive)
- Removedmobx@6.4.2(transitive)
- Removedmonaco-editor@0.32.1(transitive)
Updated@finos/legend-art@0.3.9
Updated@finos/legend-graph@1.3.0
Updated@finos/legend-shared@1.2.4
Updated@types/react@17.0.41
Updated@types/react-dom@17.0.14
Updatedmobx@6.5.0
Updatedmonaco-editor@0.33.0