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

@finos/legend-extension-dsl-data-space

Package Overview
Dependencies
Maintainers
4
Versions
409
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@finos/legend-extension-dsl-data-space - npm Package Compare versions

Comparing version 1.1.15 to 1.1.16

3

lib/graphManager/DSLDataSpace_GraphManagerHelper.d.ts

@@ -16,5 +16,6 @@ /**

*/
import type { PureModel } from '@finos/legend-graph';
import type { BasicModel, PureModel } from '@finos/legend-graph';
import { DataSpace } from '../models/metamodels/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace';
export declare const getDataSpace: (path: string, graph: PureModel) => DataSpace;
export declare const getOwnDataSpace: (path: string, graph: BasicModel) => DataSpace;
//# sourceMappingURL=DSLDataSpace_GraphManagerHelper.d.ts.map

@@ -16,4 +16,6 @@ /**

*/
import { guaranteeNonNullable } from '@finos/legend-shared';
import { DataSpace } from '../models/metamodels/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace';
export const getDataSpace = (path, graph) => graph.getExtensionElement(path, DataSpace, `Can't find data space '${path}'`);
export const getOwnDataSpace = (path, graph) => guaranteeNonNullable(graph.getOwnNullableExtensionElement(path, DataSpace), `Can't find data space '${path}'`);
//# sourceMappingURL=DSLDataSpace_GraphManagerHelper.js.map

@@ -20,3 +20,3 @@ /**

import { type Mapping, type PackageableElementReference, type PackageableRuntime, type PureModel, type V1_ElementProtocolClassifierPathGetter, type V1_ElementProtocolDeserializer, type V1_ElementProtocolSerializer, type V1_ElementTransformer, type V1_PackageableElement, type V1_PureModelContextData, PureProtocolProcessorPlugin, V1_ElementBuilder } from '@finos/legend-graph';
import { Diagram } from '@finos/legend-extension-dsl-diagram';
import { type Diagram } from '@finos/legend-extension-dsl-diagram';
export declare const DATA_SPACE_ELEMENT_CLASSIFIER_PATH = "meta::pure::metamodel::dataSpace::DataSpace";

@@ -23,0 +23,0 @@ export declare class DSLDataSpace_PureProtocolProcessorPlugin extends PureProtocolProcessorPlugin {

@@ -22,6 +22,6 @@ /**

import { V1_dataSpaceModelSchema, V1_DATA_SPACE_ELEMENT_PROTOCOL_TYPE, } from './v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper';
import { getDataSpace } from '../../../graphManager/DSLDataSpace_GraphManagerHelper';
import { getOwnDataSpace } from '../../../graphManager/DSLDataSpace_GraphManagerHelper';
import { DataSpace, DataSpaceExecutionContext, DataSpaceSupportEmail, } from '../../metamodels/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace';
import { V1_taggedValueSchema, PackageableElementExplicitReference, V1_PackageableElementPointer, V1_PackageableElementPointerType, V1_buildTaggedValue, V1_transformStereotype, V1_transformTaggedValue, PureProtocolProcessorPlugin, V1_ElementBuilder, V1_initPackageableElement, V1_StereotypePtr, } from '@finos/legend-graph';
import { Diagram, V1_DSLDiagram_PackageableElementPointerType, } from '@finos/legend-extension-dsl-diagram';
import { V1_taggedValueSchema, PackageableElementExplicitReference, V1_PackageableElementPointer, V1_PackageableElementPointerType, V1_buildTaggedValue, V1_transformStereotype, V1_transformTaggedValue, PureProtocolProcessorPlugin, V1_ElementBuilder, V1_initPackageableElement, V1_StereotypePtr, V1_buildFullPath, } from '@finos/legend-graph';
import { V1_DSLDiagram_PackageableElementPointerType, getDiagram, } from '@finos/legend-extension-dsl-diagram';
export const DATA_SPACE_ELEMENT_CLASSIFIER_PATH = 'meta::pure::metamodel::dataSpace::DataSpace';

@@ -40,3 +40,3 @@ export class DSLDataSpace_PureProtocolProcessorPlugin extends PureProtocolProcessorPlugin {

const element = new DataSpace(elementProtocol.name);
const path = context.currentSubGraph.buildPath(elementProtocol.package, elementProtocol.name);
const path = V1_buildFullPath(elementProtocol.package, elementProtocol.name);
context.currentSubGraph.setOwnElementInExtension(path, element, DataSpace);

@@ -47,4 +47,4 @@ return element;

assertType(elementProtocol, V1_DataSpace);
const path = context.graph.buildPath(elementProtocol.package, elementProtocol.name);
const element = getDataSpace(path, context.graph);
const path = V1_buildFullPath(elementProtocol.package, elementProtocol.name);
const element = getOwnDataSpace(path, context.currentSubGraph);
element.stereotypes = elementProtocol.stereotypes

@@ -223,3 +223,3 @@ .map((stereotype) => context.resolveStereotype(stereotype))

if (protocol.featuredDiagrams) {
dataSpace.featuredDiagrams = protocol.featuredDiagrams.map((pointer) => PackageableElementExplicitReference.create(graph.getExtensionElement(pointer.path, Diagram)));
dataSpace.featuredDiagrams = protocol.featuredDiagrams.map((pointer) => PackageableElementExplicitReference.create(getDiagram(pointer.path, graph)));
}

@@ -226,0 +226,0 @@ if (protocol.supportInfo) {

{
"name": "@finos/legend-extension-dsl-data-space",
"version": "1.1.15",
"version": "1.1.16",
"description": "Legend extension for Data Space DSL",

@@ -53,11 +53,7 @@ "keywords": [

"@types/react": "17.0.43",
"@types/react-router-dom": "5.3.2",
"mobx": "6.5.0",
"mobx-react-lite": "3.3.0",
"monaco-editor": "0.33.0",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-resize-detector": "7.0.0",
"react-router": "5.2.1",
"react-router-dom": "5.3.0",
"serializr": "2.0.5"

@@ -72,3 +68,3 @@ },

"rimraf": "3.0.2",
"sass": "1.50.0",
"sass": "1.50.1",
"typescript": "4.6.3"

@@ -75,0 +71,0 @@ },

{
"name": "@finos/legend-extension-dsl-data-space",
"version": "1.1.15",
"version": "1.1.16",
"description": "Legend extension for Data Space DSL",

@@ -43,25 +43,21 @@ "keywords": [

"dependencies": {
"@finos/legend-application": "2.0.13",
"@finos/legend-art": "0.3.17",
"@finos/legend-extension-dsl-diagram": "1.0.35",
"@finos/legend-graph": "4.0.3",
"@finos/legend-model-storage": "0.0.29",
"@finos/legend-query": "1.3.11",
"@finos/legend-server-depot": "0.0.32",
"@finos/legend-shared": "1.3.0",
"@finos/legend-studio": "7.0.2",
"@finos/legend-application": "2.0.14",
"@finos/legend-art": "0.3.18",
"@finos/legend-extension-dsl-diagram": "1.0.36",
"@finos/legend-graph": "5.0.0",
"@finos/legend-model-storage": "0.0.30",
"@finos/legend-query": "1.3.12",
"@finos/legend-server-depot": "0.0.33",
"@finos/legend-shared": "1.3.1",
"@finos/legend-studio": "8.0.0",
"@types/react": "17.0.43",
"@types/react-router-dom": "5.3.2",
"mobx": "6.5.0",
"mobx-react-lite": "3.3.0",
"monaco-editor": "0.33.0",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-resize-detector": "7.0.0",
"react-router": "5.2.1",
"react-router-dom": "5.3.0",
"serializr": "2.0.5"
},
"devDependencies": {
"@finos/legend-dev-utils": "0.3.20",
"@finos/legend-dev-utils": "0.3.21",
"cross-env": "7.0.3",

@@ -72,3 +68,3 @@ "eslint": "8.13.0",

"rimraf": "3.0.2",
"sass": "1.50.0",
"sass": "1.50.1",
"typescript": "4.6.3"

@@ -75,0 +71,0 @@ },

@@ -17,3 +17,4 @@ /**

import type { PureModel } from '@finos/legend-graph';
import type { BasicModel, PureModel } from '@finos/legend-graph';
import { guaranteeNonNullable } from '@finos/legend-shared';
import { DataSpace } from '../models/metamodels/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace';

@@ -23,1 +24,7 @@

graph.getExtensionElement(path, DataSpace, `Can't find data space '${path}'`);
export const getOwnDataSpace = (path: string, graph: BasicModel): DataSpace =>
guaranteeNonNullable(
graph.getOwnNullableExtensionElement(path, DataSpace),
`Can't find data space '${path}'`,
);

@@ -38,3 +38,3 @@ /**

} from './v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper';
import { getDataSpace } from '../../../graphManager/DSLDataSpace_GraphManagerHelper';
import { getOwnDataSpace } from '../../../graphManager/DSLDataSpace_GraphManagerHelper';
import {

@@ -72,6 +72,8 @@ type DataSpaceSupportInfo,

V1_StereotypePtr,
V1_buildFullPath,
} from '@finos/legend-graph';
import {
Diagram,
type Diagram,
V1_DSLDiagram_PackageableElementPointerType,
getDiagram,
} from '@finos/legend-extension-dsl-diagram';

@@ -101,3 +103,3 @@

const element = new DataSpace(elementProtocol.name);
const path = context.currentSubGraph.buildPath(
const path = V1_buildFullPath(
elementProtocol.package,

@@ -118,7 +120,7 @@ elementProtocol.name,

assertType(elementProtocol, V1_DataSpace);
const path = context.graph.buildPath(
const path = V1_buildFullPath(
elementProtocol.package,
elementProtocol.name,
);
const element = getDataSpace(path, context.graph);
const element = getOwnDataSpace(path, context.currentSubGraph);
element.stereotypes = elementProtocol.stereotypes

@@ -418,3 +420,3 @@ .map((stereotype) => context.resolveStereotype(stereotype))

PackageableElementExplicitReference.create(
graph.getExtensionElement(pointer.path, Diagram),
getDiagram(pointer.path, graph),
),

@@ -421,0 +423,0 @@ );

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