@accordproject/concerto-metamodel
Advanced tools
Comparing version 3.6.1-20230308164531 to 3.6.1-20230309095150
@@ -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", |
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
70606
1440
+ Added@accordproject/concerto-util@3.6.1-20230309095150(transitive)
- Removed@accordproject/concerto-util@3.6.1-20230308164531(transitive)