hubot 12.0.1 → 13.0.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/package.json +1 -2
- package/src/Robot.mjs +0 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hubot",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "13.0.0",
|
|
4
4
|
"author": "hubot",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"github",
|
|
@@ -43,7 +43,6 @@
|
|
|
43
43
|
"dryRun": false
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"connect-multiparty": "^2.2.0",
|
|
47
46
|
"express": "^5.1.0",
|
|
48
47
|
"express-basic-auth": "^1.2.1",
|
|
49
48
|
"pino": "^9.6.0"
|
package/src/Robot.mjs
CHANGED
|
@@ -447,7 +447,6 @@ class Robot {
|
|
|
447
447
|
|
|
448
448
|
const express = (await import('express')).default
|
|
449
449
|
const basicAuth = (await import('express-basic-auth')).default
|
|
450
|
-
const multipart = (await import('connect-multiparty')).default
|
|
451
450
|
|
|
452
451
|
const app = express()
|
|
453
452
|
|
|
@@ -464,9 +463,6 @@ class Robot {
|
|
|
464
463
|
|
|
465
464
|
app.use(express.json({ limit }))
|
|
466
465
|
app.use(express.urlencoded({ limit, parameterLimit: paramLimit, extended: true }))
|
|
467
|
-
// replacement for deprecated express.multipart/connect.multipart
|
|
468
|
-
// limit to 100mb, as per the old behavior
|
|
469
|
-
app.use(multipart({ maxFilesSize: 100 * 1024 * 1024 }))
|
|
470
466
|
|
|
471
467
|
if (stat) {
|
|
472
468
|
app.use(express.static(stat))
|