@superhero/http-server 4.3.0 → 4.3.2

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
@@ -230,29 +230,18 @@ await server.listen(3000);
230
230
 
231
231
  ### Custom Logging
232
232
 
233
- You can override the default logging methods to integrate with your logging system.
233
+ You can override, or hook into, the default logging method to integrate reactions with your logging requirements.
234
234
 
235
- #### Turn Off Info Logs
235
+ #### Turn of logs
236
236
 
237
- ```javascript
238
- server.log.info = () => null;
239
237
  ```
240
-
241
- #### Custom Error Logging
242
-
243
- ```javascript
244
- server.log.error = (error) => {
245
- // TODO: custom error logging logic...
246
- };
238
+ server.log.config.mute = true
247
239
  ```
248
240
 
249
- #### Turn Off Log Colors
241
+ #### Learn more
250
242
 
251
- By default, the logger renders a colored output.
243
+ Read the github page for the repository this component depend on for logging: [@superhero/log](https://github.com/superhero/log).
252
244
 
253
- ```javascript
254
- server.log.format = server.log.simple;
255
- ```
256
245
 
257
246
  ## API
258
247
 
package/index.test.js CHANGED
@@ -67,7 +67,8 @@ suite('@superhero/http-server', () =>
67
67
  test('Can be configured by the configuration file', async () =>
68
68
  {
69
69
  const config = new Config()
70
- await config.add('./config.json')
70
+ const { filepath, config: resolved } = await config.resolve('./config.json')
71
+ config.add(filepath, resolved)
71
72
 
72
73
  assert.ok(config.find('bootstrap'))
73
74
  assert.ok(config.find('locator'))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superhero/http-server",
3
- "version": "4.3.0",
3
+ "version": "4.3.2",
4
4
  "description": "HTTP(S) server component supporting both HTTP 1.1 and HTTP 2.0",
5
5
  "keywords": [
6
6
  "http server",
@@ -22,14 +22,13 @@
22
22
  "./*/*/*/*/*/*": "./*/*/*/*/*/*.js"
23
23
  },
24
24
  "dependencies": {
25
- "@superhero/router": "^4.1.1",
25
+ "@superhero/router": "^4.1.3",
26
26
  "@superhero/deep": "^4.1.0",
27
- "@superhero/log": "^4.0.0"
27
+ "@superhero/log": "^4.0.1"
28
28
  },
29
29
  "devDependencies": {
30
- "@superhero/config": "^4.1.2",
31
- "@superhero/locator": "^4.1.2",
32
- "@superhero/http-request": "^4.0.9"
30
+ "@superhero/locator": "^4.3.0",
31
+ "@superhero/http-request": "^4.0.10"
33
32
  },
34
33
  "scripts": {
35
34
  "test": "node --trace-warnings --test --experimental-test-coverage"