@superhero/eventflow-certificates 4.0.3 → 4.0.4

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/README.md CHANGED
@@ -183,14 +183,14 @@ tests 7
183
183
  suites 1
184
184
  pass 7
185
185
 
186
- ----------------------------------------------------------------------------------------
186
+ ------------------------------------------------------------------------
187
187
  file | line % | branch % | funcs % | uncovered lines
188
- ----------------------------------------------------------------------------------------
189
- index.js | 85.91 | 87.50 | 88.24 | 137-140 154-158 198-204 208-217 220-235
188
+ ------------------------------------------------------------------------
189
+ index.js | 94.63 | 88.00 | 88.24 | 137-140 154-158 198-204
190
190
  index.test.js | 100.00 | 100.00 | 100.00 |
191
- ----------------------------------------------------------------------------------------
192
- all files | 89.83 | 91.67 | 92.86 |
193
- ----------------------------------------------------------------------------------------
191
+ ------------------------------------------------------------------------
192
+ all files | 96.11 | 91.89 | 100.00 |
193
+ ------------------------------------------------------------------------
194
194
  ```
195
195
 
196
196
  ---
package/index.test.js CHANGED
@@ -1,4 +1,3 @@
1
- import Config from '@superhero/config'
2
1
  import Locator from '@superhero/locator'
3
2
  import Certificates from '@superhero/eventflow-certificates'
4
3
  import assert from 'node:assert/strict'
@@ -8,11 +7,10 @@ import { suite, test, before, after } from 'node:test'
8
7
  suite('@superhero/eventflow-certificates', async () =>
9
8
  {
10
9
  const
11
- config = new Config(),
12
- locator = new Locator()
10
+ locator = new Locator(),
11
+ config = locator.config
13
12
 
14
13
  await config.add('@superhero/eventflow-db')
15
- locator.set('@superhero/config', config)
16
14
  const db = await locator.lazyload('@superhero/eventflow-db')
17
15
 
18
16
  let conf, manager, icaUID = 'INTERMEDIATE-CERT-ID', leafUID = 'LEAF-CERT-ID'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superhero/eventflow-certificates",
3
- "version": "4.0.3",
3
+ "version": "4.0.4",
4
4
  "description": "Eventflow certificates is common tls certificates logic used in the eventflow ecosystem.",
5
5
  "keywords": [
6
6
  "eventflow"
@@ -11,14 +11,13 @@
11
11
  ".": "./index.js"
12
12
  },
13
13
  "dependencies": {
14
- "@superhero/eventflow-db": "^4.1.1",
14
+ "@superhero/eventflow-db": "^4.1.3",
15
15
  "@superhero/log": "^4.0.0",
16
16
  "@superhero/openssl": "^4.0.2",
17
17
  "@superhero/deep": "^4.2.0"
18
18
  },
19
19
  "devDependencies": {
20
- "@superhero/config": "^4.1.3",
21
- "@superhero/locator": "^4.2.1"
20
+ "@superhero/locator": "^4.2.2"
22
21
  },
23
22
  "scripts": {
24
23
  "test-build": "npm explore @superhero/eventflow-db -- npm run test-build",