@toa.io/boot 1.0.0-alpha.83 → 1.0.0-alpha.87

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.83",
3
+ "version": "1.0.0-alpha.87",
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.81",
23
+ "@toa.io/core": "1.0.0-alpha.86",
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.83",
26
+ "@toa.io/norm": "1.0.0-alpha.86",
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.79"
30
+ "openspan": "1.0.0-alpha.86"
31
31
  },
32
- "gitHead": "d050d114ada42d94aecc927b51e9be68026a3a33"
32
+ "gitHead": "fb372975085006d4a845a39eea184a7ac7a667cb"
33
33
  }
@@ -9,18 +9,19 @@ const produce = (component, operations) => group(operations, (factory, endpoints
9
9
  const group = (operations, callback) => {
10
10
  const map = {}
11
11
 
12
- for (const [endpoint, operation] of Object.entries(operations)) {
13
- // noinspection JSUnresolvedVariable
14
- const bindings = global.TOA_INTEGRATION_BINDINGS_LOOP_DISABLED
15
- ? operation.bindings
16
- : [LOOP].concat(operation.bindings)
17
-
18
- for (const binding of bindings) {
19
- if (!map[binding]) map[binding] = []
20
-
21
- map[binding].push(endpoint)
12
+ if (operations !== undefined)
13
+ for (const [endpoint, operation] of Object.entries(operations)) {
14
+ // noinspection JSUnresolvedVariable
15
+ const bindings = global.TOA_INTEGRATION_BINDINGS_LOOP_DISABLED
16
+ ? operation.bindings
17
+ : [LOOP].concat(operation.bindings)
18
+
19
+ for (const binding of bindings) {
20
+ if (!map[binding]) map[binding] = []
21
+
22
+ map[binding].push(endpoint)
23
+ }
22
24
  }
23
- }
24
25
 
25
26
  return Object.entries(map).map(([binding, endpoints]) => callback(factory(binding), endpoints))
26
27
  }