@accordproject/concerto-core 2.0.0-alpha.1 → 2.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/changelog.txt +1 -1
- package/lib/basemodelmanager.js +5 -4
- package/package.json +4 -4
- package/umd/concerto.js +1 -1
- package/umd/concerto.js.LICENSE.txt +1 -1
package/changelog.txt
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
# Note that the latest public API is documented using JSDocs and is available in api.txt.
|
|
25
25
|
#
|
|
26
26
|
|
|
27
|
-
Version
|
|
27
|
+
Version 2.0.0-alpha.1 {ee5fa0479fe2720d720ac500b1b3ead8} 2021-11-24
|
|
28
28
|
- Remove custom instanceof and add methods to check runtime type
|
|
29
29
|
- Remove support for Node 12
|
|
30
30
|
- Generate Typescript definitions from JSDoc
|
package/lib/basemodelmanager.js
CHANGED
|
@@ -315,19 +315,20 @@ class BaseModelManager {
|
|
|
315
315
|
fileDownloader = new FileDownloader(new DefaultFileLoader(this.processFile), (file) => MetaModelUtil.getExternalImports(file.ast));
|
|
316
316
|
}
|
|
317
317
|
|
|
318
|
-
const
|
|
318
|
+
const externalModels = await fileDownloader.downloadExternalDependencies(this.getModelFiles(), options);
|
|
319
319
|
const originalModelFiles = {};
|
|
320
320
|
Object.assign(originalModelFiles, this.modelFiles);
|
|
321
321
|
|
|
322
322
|
try {
|
|
323
|
-
externalModelFiles
|
|
323
|
+
const externalModelFiles = [];
|
|
324
|
+
externalModels.forEach((file) => {
|
|
324
325
|
const mf = new ModelFile(this, file.ast, file.definitions, file.fileName);
|
|
325
326
|
const existing = this.modelFiles[mf.getNamespace()];
|
|
326
327
|
|
|
327
328
|
if (existing) {
|
|
328
|
-
this.updateModelFile(mf, mf.getName(), true); // disable validation
|
|
329
|
+
externalModelFiles.push(this.updateModelFile(mf, mf.getName(), true)); // disable validation
|
|
329
330
|
} else {
|
|
330
|
-
this.addModelFile(mf, null, mf.getName(), true); // disable validation
|
|
331
|
+
externalModelFiles.push(this.addModelFile(mf, null, mf.getName(), true)); // disable validation
|
|
331
332
|
}
|
|
332
333
|
});
|
|
333
334
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@accordproject/concerto-core",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.2",
|
|
4
4
|
"description": "Core Implementation for the Concerto Modeling Language",
|
|
5
5
|
"homepage": "https://github.com/accordproject/concerto",
|
|
6
6
|
"engines": {
|
|
@@ -63,9 +63,9 @@
|
|
|
63
63
|
"yargs": "17.3.1"
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@accordproject/concerto-cto": "2.0.0-alpha.
|
|
67
|
-
"@accordproject/concerto-metamodel": "2.0.0-alpha.
|
|
68
|
-
"@accordproject/concerto-util": "2.0.0-alpha.
|
|
66
|
+
"@accordproject/concerto-cto": "2.0.0-alpha.2",
|
|
67
|
+
"@accordproject/concerto-metamodel": "2.0.0-alpha.2",
|
|
68
|
+
"@accordproject/concerto-util": "2.0.0-alpha.2",
|
|
69
69
|
"dayjs": "1.10.8",
|
|
70
70
|
"debug": "4.3.1",
|
|
71
71
|
"lorem-ipsum": "2.0.3",
|