summary refs log tree commit diff
path: root/patches
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-04-19 01:27:19 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-04-19 01:27:19 +1000
commit40ad7bb3af15a3658de4f9b43fbc0678d71c1dd8 (patch)
treef52c0eb6bb238d5c3082c8c1069334eb424c44c2 /patches
parentFix UserRelationsResponse schema (diff)
parentREALLY bad server testing (diff)
downloadserver-40ad7bb3af15a3658de4f9b43fbc0678d71c1dd8.tar.xz
Merge branch 'master' into openapi
Diffstat (limited to 'patches')
-rw-r--r--patches/body-parser+1.20.1.patch11
1 files changed, 10 insertions, 1 deletions
diff --git a/patches/body-parser+1.20.1.patch b/patches/body-parser+1.20.1.patch

index 054e24f7..11d1a9d1 100644 --- a/patches/body-parser+1.20.1.patch +++ b/patches/body-parser+1.20.1.patch
@@ -1,5 +1,5 @@ diff --git a/node_modules/body-parser/lib/types/json.js b/node_modules/body-parser/lib/types/json.js -index c2745be..7104cfa 100644 +index c2745be..17c2cfe 100644 --- a/node_modules/body-parser/lib/types/json.js +++ b/node_modules/body-parser/lib/types/json.js @@ -18,6 +18,7 @@ var createError = require('http-errors') @@ -28,3 +28,12 @@ index c2745be..7104cfa 100644 } catch (e) { return normalizeJsonSyntaxError(e, { message: e.message.replace('#', char), +@@ -216,7 +217,7 @@ function normalizeJsonSyntaxError (error, obj) { + } + + // replace stack before message for Node.js 0.10 and below +- error.stack = obj.stack.replace(error.message, obj.message) ++ error.stack = obj.stack?.replace(error.message, obj.message) + error.message = obj.message + + return error