Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@finos/legend-application

Package Overview
Dependencies
Maintainers
4
Versions
264
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@finos/legend-application - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

13

lib/application/LegendApplication.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc