@toa.io/boot 1.0.0-alpha.52 → 1.0.0-alpha.53
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 +7 -7
- package/src/extensions/receiver.js +2 -1
- package/src/receivers.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toa.io/boot",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.53",
|
|
4
4
|
"description": "Toa Boot",
|
|
5
5
|
"author": "temich <tema.gurtovoy@gmail.com>",
|
|
6
6
|
"homepage": "https://github.com/toa-io/toa#readme",
|
|
@@ -20,13 +20,13 @@
|
|
|
20
20
|
"test": "echo \"Error: run tests from root\" && exit 1"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@toa.io/core": "1.0.0-alpha.
|
|
24
|
-
"@toa.io/filesystem": "1.0.0-alpha.
|
|
25
|
-
"@toa.io/generic": "1.0.0-alpha.
|
|
26
|
-
"@toa.io/norm": "1.0.0-alpha.
|
|
27
|
-
"@toa.io/schemas": "1.0.0-alpha.
|
|
23
|
+
"@toa.io/core": "1.0.0-alpha.53",
|
|
24
|
+
"@toa.io/filesystem": "1.0.0-alpha.53",
|
|
25
|
+
"@toa.io/generic": "1.0.0-alpha.53",
|
|
26
|
+
"@toa.io/norm": "1.0.0-alpha.53",
|
|
27
|
+
"@toa.io/schemas": "1.0.0-alpha.53",
|
|
28
28
|
"clone-deep": "4.0.1",
|
|
29
29
|
"dotenv": "16.1.1"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "2a70164c79eb52f59f1a01064580c4deb34389e1"
|
|
32
32
|
}
|
|
@@ -11,7 +11,8 @@ const receiver = (receiver, locator) => {
|
|
|
11
11
|
let decorated = receiver
|
|
12
12
|
|
|
13
13
|
for (const factory of Object.values(instances)) {
|
|
14
|
-
if (factory.receiver !== undefined)
|
|
14
|
+
if (factory.receiver !== undefined)
|
|
15
|
+
decorated = factory.receiver(decorated, locator)
|
|
15
16
|
}
|
|
16
17
|
|
|
17
18
|
return decorated
|
package/src/receivers.js
CHANGED
|
@@ -5,7 +5,7 @@ const { Receiver, Locator } = require('@toa.io/core')
|
|
|
5
5
|
const boot = require('./index')
|
|
6
6
|
const extensions = require('./extensions')
|
|
7
7
|
|
|
8
|
-
const receivers = async (manifest,
|
|
8
|
+
const receivers = async (manifest, component) => {
|
|
9
9
|
if (manifest.receivers === undefined) return []
|
|
10
10
|
|
|
11
11
|
const receivers = []
|
|
@@ -21,7 +21,7 @@ const receivers = async (manifest, runtime) => {
|
|
|
21
21
|
const source = definition.source ? Locator.parse(definition.source) : locator
|
|
22
22
|
const binding = boot.bindings.receive(transport, source, label, manifest.locator.id, decorator)
|
|
23
23
|
|
|
24
|
-
binding.depends(
|
|
24
|
+
binding.depends(component)
|
|
25
25
|
receivers.push(binding)
|
|
26
26
|
}
|
|
27
27
|
|