hubot 3.5.0 → 4.1.0

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
@@ -18,4 +18,3 @@ are building your own bot. But if you do, check out [CONTRIBUTING.md](CONTRIBUTI
18
18
  ## License
19
19
 
20
20
  See the [LICENSE](LICENSE.md) file for license rights and limitations (MIT).
21
- `
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hubot",
3
- "version": "3.5.0",
3
+ "version": "4.1.0",
4
4
  "author": "hubot",
5
5
  "keywords": [
6
6
  "github",
@@ -21,8 +21,8 @@
21
21
  "connect-multiparty": "^2.2.0",
22
22
  "express": "^4.18.2",
23
23
  "express-basic-auth": "^1.2.1",
24
- "log": "1.4.0",
25
- "optparse": "^1.0.5"
24
+ "optparse": "^1.0.5",
25
+ "pino": "^8.11.0"
26
26
  },
27
27
  "devDependencies": {
28
28
  "chai": "^4.3.7",
package/src/robot.js CHANGED
@@ -1,11 +1,10 @@
1
1
  'use strict'
2
-
3
2
  const EventEmitter = require('events').EventEmitter
4
3
  const fs = require('fs')
5
4
  const path = require('path')
6
5
 
7
6
  const async = require('async')
8
- const Log = require('log')
7
+ const pino = require('pino')
9
8
  const HttpClient = require('./httpclient')
10
9
 
11
10
  const Brain = require('./brain')
@@ -49,7 +48,16 @@ class Robot {
49
48
  response: new Middleware(this),
50
49
  receive: new Middleware(this)
51
50
  }
52
- this.logger = new Log(process.env.HUBOT_LOG_LEVEL || 'info')
51
+ this.logger = pino({
52
+ name,
53
+ level: process.env.HUBOT_LOG_LEVEL || 'info'
54
+ })
55
+ Reflect.defineProperty(this.logger, 'warning', {
56
+ value: this.logger.warn,
57
+ enumerable: true,
58
+ configurable: true
59
+ })
60
+
53
61
  this.pingIntervalId = null
54
62
  this.globalHttpOptions = {}
55
63
 
package/.node-version DELETED
@@ -1 +0,0 @@
1
- 18.16.0