@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 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 1.2.2 {ee5fa0479fe2720d720ac500b1b3ead8} 2021-11-24
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
@@ -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 externalModelFiles = await fileDownloader.downloadExternalDependencies(this.getModelFiles(), options);
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.forEach((file) => {
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.1",
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.1",
67
- "@accordproject/concerto-metamodel": "2.0.0-alpha.1",
68
- "@accordproject/concerto-util": "2.0.0-alpha.1",
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",