@superhero/eventflow-hub 4.3.0 → 4.3.3

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.
Files changed (3) hide show
  1. package/config.js +6 -13
  2. package/index.js +4 -3
  3. package/package.json +3 -3
package/config.js CHANGED
@@ -4,7 +4,11 @@
4
4
  export default
5
5
  {
6
6
  bootstrap : { '@superhero/eventflow-hub' : true },
7
- dependency : { '@superhero/eventflow-db' : true },
7
+ dependency :
8
+ {
9
+ '@superhero/eventflow-certificates' : true,
10
+ '@superhero/eventflow-db' : true
11
+ },
8
12
  locator : { '@superhero/eventflow-hub' : true },
9
13
  destroy : { '@superhero/eventflow-db' : false },
10
14
  eventflow :
@@ -21,18 +25,7 @@ export default
21
25
  TCP_SOCKET_CLIENT_OPTIONS : process.env.EVENTFLOW_HUB_TCP_SOCKET_CLIENT_OPTIONS ?? {},
22
26
  PEER_HUB_ONLINE_TIMEOUT : process.env.EVENTFLOW_HUB_PEER_HUB_ONLINE_TIMEOUT ?? 5e3,
23
27
  KEEP_ALIVE_INTERVAL : process.env.EVENTFLOW_HUB_KEEP_ALIVE_INTERVAL ?? 60e3,
24
- SHEDULED_INTERVAL_DELAY : process.env.EVENTFLOW_HUB_SHEDULED_INTERVAL_DELAY ?? 1e3,
25
-
26
- certificates:
27
- {
28
- CERT_ALGORITHM : process.env.EVENTFLOW_HUB_CERT_ALGORITHM,
29
- CERT_HASH : process.env.EVENTFLOW_HUB_CERT_HASH,
30
- CERT_PASS_CIPHER : process.env.EVENTFLOW_HUB_CERT_PASS_CIPHER,
31
- CERT_PASS_ENCRYPTION_KEY : process.env.EVENTFLOW_HUB_CERT_PASS_ENCRYPTION_KEY,
32
- CERT_PASS_PBKDF2_HASH : process.env.EVENTFLOW_HUB_CERT_PASS_PBKDF2_HASH,
33
- CERT_PASS_PBKDF2_BYTES : process.env.EVENTFLOW_HUB_CERT_PASS_PBKDF2_BYTES,
34
- CERT_PASS_PBKDF2_ITERATIONS : process.env.EVENTFLOW_HUB_CERT_PASS_PBKDF2_ITERATIONS,
35
- }
28
+ SHEDULED_INTERVAL_DELAY : process.env.EVENTFLOW_HUB_SHEDULED_INTERVAL_DELAY ?? 1e3
36
29
  }
37
30
  }
38
31
  }
package/index.js CHANGED
@@ -13,9 +13,10 @@ const sleep = (ms) => new Promise((accept) => setTimeout(accept, ms))
13
13
  export function locate(locator)
14
14
  {
15
15
  const
16
- config = locator.config.find('eventflow/hub', {}),
17
- db = locator.locate('@superhero/eventflow-db'),
18
- hub = new Hub(config, db)
16
+ certifications = locator.config.find('eventflow/certificates', {}),
17
+ config = locator.config.find('eventflow/hub', { certifications }),
18
+ db = locator.locate('@superhero/eventflow-db'),
19
+ hub = new Hub(config, db)
19
20
 
20
21
  return hub
21
22
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superhero/eventflow-hub",
3
- "version": "4.3.0",
3
+ "version": "4.3.3",
4
4
  "description": "Eventflow hub is the central server component in the eventflow ecosystem.",
5
5
  "keywords": [
6
6
  "eventflow",
@@ -16,8 +16,8 @@
16
16
  "dependencies": {
17
17
  "@superhero/id-name-generator": "^4.0.0",
18
18
  "@superhero/log": "^4.0.1",
19
- "@superhero/eventflow-certificates": "^4.3.0",
20
- "@superhero/eventflow-db": "^4.3.0",
19
+ "@superhero/eventflow-certificates": "^4.3.3",
20
+ "@superhero/eventflow-db": "^4.3.3",
21
21
  "@superhero/tcp-record-channel": "^4.2.2",
22
22
  "@superhero/deep": "^4.2.0"
23
23
  },