Update some patches, switch to node-fetch-commonjs, more updates

This commit is contained in:
Emma [it/its]@Rory&
2024-10-28 00:32:15 +01:00
committed by Rory&
parent a2ffc536aa
commit 168758924c
17 changed files with 52787 additions and 522 deletions
@@ -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..17c2cfe 100644
index 59f3f7e..604f8b1 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')
@@ -10,7 +10,7 @@ index c2745be..17c2cfe 100644
/**
* Module exports.
@@ -86,7 +87,7 @@ function json (options) {
@@ -89,7 +90,7 @@ function json (options) {
try {
debug('parse json')
@@ -19,16 +19,16 @@ index c2745be..17c2cfe 100644
} catch (e) {
throw normalizeJsonSyntaxError(e, {
message: e.message,
@@ -157,7 +158,7 @@ function createStrictSyntaxError (str, char) {
: ''
@@ -166,7 +167,7 @@ function createStrictSyntaxError (str, char) {
}
try {
- JSON.parse(partial); /* istanbul ignore next */ throw new SyntaxError('strict violation')
+ JSONbig.parse(partial); /* istanbul ignore next */ throw new SyntaxError('strict violation')
} catch (e) {
return normalizeJsonSyntaxError(e, {
message: e.message.replace('#', char),
@@ -216,7 +217,7 @@ function normalizeJsonSyntaxError (error, obj) {
message: e.message.replace(JSON_SYNTAX_REGEXP, function (placeholder) {
@@ -227,7 +228,7 @@ function normalizeJsonSyntaxError (error, obj) {
}
// replace stack before message for Node.js 0.10 and below
@@ -1,5 +1,5 @@
diff --git a/node_modules/express/lib/response.js b/node_modules/express/lib/response.js
index dd7b3c8..a339896 100644
index 2b654f4..60592b0 100644
--- a/node_modules/express/lib/response.js
+++ b/node_modules/express/lib/response.js
@@ -27,7 +27,6 @@ var merge = require('utils-merge');
@@ -10,15 +10,16 @@ index dd7b3c8..a339896 100644
var cookie = require('cookie');
var send = require('send');
var extname = path.extname;
@@ -54,7 +53,6 @@ module.exports = res
@@ -54,8 +53,6 @@ module.exports = res
* @private
*/
-var charsetRegExp = /;\s*charset\s*=/;
var schemaAndHostRegExp = /^(?:[a-zA-Z][a-zA-Z0-9+.-]*:)?\/\/[^\\\/\?]+/;
-
/**
@@ -165,16 +163,6 @@ res.send = function send(body) {
* Set status `code`.
*
@@ -164,16 +161,6 @@ res.send = function send(body) {
break;
}
@@ -35,7 +36,7 @@ index dd7b3c8..a339896 100644
// determine if ETag should be generated
var etagFn = app.get('etag fn')
@@ -781,17 +769,6 @@ res.header = function header(field, val) {
@@ -780,17 +767,6 @@ res.header = function header(field, val) {
? val.map(String)
: String(val);