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

@accordproject/concerto-metamodel

Package Overview
Dependencies
Maintainers
6
Versions
311
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@accordproject/concerto-metamodel - npm Package Compare versions

Comparing version 3.6.1-20230308164531 to 3.6.1-20230309095150

56

lib/metamodelutil.js

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

// First list the imported names in order (overriding as we go along)
const imports = metaModel.imports;
imports.forEach((imp) => {
(metaModel.imports || []).forEach((imp) => {
const namespace = imp.namespace;

@@ -88,4 +87,3 @@ const modelFile = findNamespace(priorModels, namespace);

} else {
const decls = modelFile.declarations;
decls.forEach((decl) => {
(modelFile.declarations || []).forEach((decl) => {
table[decl.name] = namespace;

@@ -97,7 +95,5 @@ });

// Then add the names local to this metaModel (overriding as we go along)
if (metaModel.declarations) {
metaModel.declarations.forEach((decl) => {
table[decl.name] = metaModel.namespace;
});
}
(metaModel.declarations || []).forEach((decl) => {
table[decl.name] = metaModel.namespace;
});

@@ -129,7 +125,5 @@ return table;

case `${MetaModelNamespace}.Model`: {
if (metaModel.declarations) {
metaModel.declarations.forEach((decl) => {
resolveTypeNames(decl, table);
});
}
(metaModel.declarations || []).forEach((decl) => {
resolveTypeNames(decl, table);
});
}

@@ -146,18 +140,14 @@ break;

}
metaModel.properties.forEach((property) => {
(metaModel.properties || []).forEach((property) => {
resolveTypeNames(property, table);
});
if (metaModel.decorators) {
metaModel.decorators.forEach((decorator) => {
resolveTypeNames(decorator, table);
});
}
(metaModel.decorators || []).forEach((decorator) => {
resolveTypeNames(decorator, table);
});
}
break;
case `${MetaModelNamespace}.EnumDeclaration`: {
if (metaModel.decorators) {
metaModel.decorators.forEach((decorator) => {
resolveTypeNames(decorator, table);
});
}
(metaModel.decorators || []).forEach((decorator) => {
resolveTypeNames(decorator, table);
});
}

@@ -170,15 +160,11 @@ break;

metaModel.type.namespace = resolveName(name, table);
if (metaModel.decorators) {
metaModel.decorators.forEach((decorator) => {
resolveTypeNames(decorator, table);
});
}
(metaModel.decorators || []).forEach((decorator) => {
resolveTypeNames(decorator, table);
});
}
break;
case `${MetaModelNamespace}.Decorator`: {
if (metaModel.arguments) {
metaModel.arguments.forEach((argument) => {
resolveTypeNames(argument, table);
});
}
(metaModel.arguments || []).forEach((argument) => {
resolveTypeNames(argument, table);
});
}

@@ -185,0 +171,0 @@ break;

{
"name": "@accordproject/concerto-metamodel",
"version": "3.6.1-20230308164531",
"version": "3.6.1-20230309095150",
"description": "Concerto metamodel utilities",

@@ -54,3 +54,3 @@ "homepage": "https://github.com/accordproject/concerto",

"dependencies": {
"@accordproject/concerto-util": "3.6.1-20230308164531"
"@accordproject/concerto-util": "3.6.1-20230309095150"
},

@@ -57,0 +57,0 @@ "browserslist": "> 0.25%, not dead",

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