@toa.io/boot 1.0.0-alpha.67 → 1.0.0-alpha.73

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toa.io/boot",
3
- "version": "1.0.0-alpha.67",
3
+ "version": "1.0.0-alpha.73",
4
4
  "description": "Toa Boot",
5
5
  "author": "temich <tema.gurtovoy@gmail.com>",
6
6
  "homepage": "https://github.com/toa-io/toa#readme",
@@ -20,14 +20,14 @@
20
20
  "test": "echo \"Error: run tests from root\" && exit 1"
21
21
  },
22
22
  "dependencies": {
23
- "@toa.io/core": "1.0.0-alpha.67",
23
+ "@toa.io/core": "1.0.0-alpha.73",
24
24
  "@toa.io/filesystem": "1.0.0-alpha.63",
25
25
  "@toa.io/generic": "1.0.0-alpha.63",
26
- "@toa.io/norm": "1.0.0-alpha.67",
26
+ "@toa.io/norm": "1.0.0-alpha.73",
27
27
  "@toa.io/schemas": "1.0.0-alpha.63",
28
28
  "clone-deep": "4.0.1",
29
29
  "dotenv": "16.1.1",
30
- "openspan": "1.0.0-alpha.67"
30
+ "openspan": "1.0.0-alpha.73"
31
31
  },
32
- "gitHead": "8e94e72803ebf6835958aee34a632565181ec520"
32
+ "gitHead": "3c7d415c68324aae8f1524b2ae06b02eb5832c54"
33
33
  }
@@ -9,9 +9,13 @@ const boot = require('./index')
9
9
  async function composition (paths, options) {
10
10
  options = Object.assign({}, options)
11
11
 
12
- console.info('Starting composition', { runtime: version })
13
-
14
12
  const manifests = await Promise.all(paths.map((path) => boot.manifest(path, options)))
13
+
14
+ console.info('Starting composition', {
15
+ runtime: version,
16
+ components: manifests.map((manifest) => manifest.locator.id)
17
+ })
18
+
15
19
  const tenants = await Promise.all(manifests.map(boot.extensions.tenants))
16
20
  const expositions = await Promise.all(manifests.map(boot.discovery.expose))
17
21
  const components = await Promise.all(manifests.map(boot.component))
@@ -16,7 +16,7 @@ const tenants = (manifest) => {
16
16
 
17
17
  if (factory.tenant === undefined) continue
18
18
 
19
- const tenant = factory.tenant(manifest.locator, declaration)
19
+ const tenant = factory.tenant(manifest.locator, declaration, manifest)
20
20
 
21
21
  tenants.push(tenant)
22
22
  }
package/src/manifest.js CHANGED
@@ -5,9 +5,6 @@ const { merge } = require('@toa.io/generic')
5
5
  const { component: load } = require('@toa.io/norm')
6
6
  const { Locator } = require('@toa.io/core')
7
7
 
8
- /**
9
- * @type {toa.boot.Manifest}
10
- */
11
8
  const manifest = async (path, options = {}) => {
12
9
  options = merge(clone(options), DEFAULTS)
13
10