Move discord-protos to regular deps, update patches
This commit is contained in:
parent
b48b9304be
commit
e8e9bb722a
@ -1,3 +1,3 @@
|
|||||||
{
|
{
|
||||||
"npmDepsHash": "sha256-JolEhCK62tYUQN2ID5g3e/sKDBXAat3Ek5yg7uu7RqY="
|
"npmDepsHash": "sha256-GgNaRWT7ZD5iUgWcKqCwzBuPgJDamsPh9SLB2aiQFgY="
|
||||||
}
|
}
|
||||||
|
|||||||
BIN
package-lock.json
generated
BIN
package-lock.json
generated
Binary file not shown.
@ -62,7 +62,6 @@
|
|||||||
"@types/ws": "^8.18.1",
|
"@types/ws": "^8.18.1",
|
||||||
"@typescript-eslint/eslint-plugin": "^8.45.0",
|
"@typescript-eslint/eslint-plugin": "^8.45.0",
|
||||||
"@typescript-eslint/parser": "^8.45.0",
|
"@typescript-eslint/parser": "^8.45.0",
|
||||||
"discord-protos": "^1.2.69",
|
|
||||||
"eslint": "^9.36.0",
|
"eslint": "^9.36.0",
|
||||||
"express": "^5.1.0",
|
"express": "^5.1.0",
|
||||||
"globals": "^16.4.0",
|
"globals": "^16.4.0",
|
||||||
@ -82,6 +81,7 @@
|
|||||||
"cheerio": "^1.1.2",
|
"cheerio": "^1.1.2",
|
||||||
"cookie-parser": "^1.4.7",
|
"cookie-parser": "^1.4.7",
|
||||||
"dotenv": "^17.2.2",
|
"dotenv": "^17.2.2",
|
||||||
|
"discord-protos": "^1.2.69",
|
||||||
"email-providers": "^2.15.0",
|
"email-providers": "^2.15.0",
|
||||||
"exif-be-gone": "^1.5.1",
|
"exif-be-gone": "^1.5.1",
|
||||||
"fast-zlib": "^2.0.1",
|
"fast-zlib": "^2.0.1",
|
||||||
|
|||||||
@ -1,16 +1,16 @@
|
|||||||
diff --git a/node_modules/body-parser/lib/types/json.js b/node_modules/body-parser/lib/types/json.js
|
diff --git a/node_modules/body-parser/lib/types/json.js b/node_modules/body-parser/lib/types/json.js
|
||||||
index 59f3f7e..604f8b1 100644
|
index 078ce71..af121b3 100644
|
||||||
--- a/node_modules/body-parser/lib/types/json.js
|
--- a/node_modules/body-parser/lib/types/json.js
|
||||||
+++ b/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')
|
@@ -17,6 +17,7 @@ var debug = require('debug')('body-parser:json')
|
||||||
var debug = require('debug')('body-parser:json')
|
var isFinished = require('on-finished').isFinished
|
||||||
var read = require('../read')
|
var read = require('../read')
|
||||||
var typeis = require('type-is')
|
var typeis = require('type-is')
|
||||||
+var JSONbig = require("json-bigint");
|
+var JSONbig = require("json-bigint");
|
||||||
|
var { getCharset, normalizeOptions } = require('../utils')
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Module exports.
|
@@ -74,7 +75,7 @@ function json (options) {
|
||||||
@@ -89,7 +90,7 @@ function json (options) {
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
debug('parse json')
|
debug('parse json')
|
||||||
@ -19,7 +19,7 @@ index 59f3f7e..604f8b1 100644
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
throw normalizeJsonSyntaxError(e, {
|
throw normalizeJsonSyntaxError(e, {
|
||||||
message: e.message,
|
message: e.message,
|
||||||
@@ -166,7 +167,7 @@ function createStrictSyntaxError (str, char) {
|
@@ -153,7 +154,7 @@ function createStrictSyntaxError (str, char) {
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
@ -28,7 +28,7 @@ index 59f3f7e..604f8b1 100644
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
return normalizeJsonSyntaxError(e, {
|
return normalizeJsonSyntaxError(e, {
|
||||||
message: e.message.replace(JSON_SYNTAX_REGEXP, function (placeholder) {
|
message: e.message.replace(JSON_SYNTAX_REGEXP, function (placeholder) {
|
||||||
@@ -227,7 +228,7 @@ function normalizeJsonSyntaxError (error, obj) {
|
@@ -199,7 +200,7 @@ function normalizeJsonSyntaxError (error, obj) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// replace stack before message for Node.js 0.10 and below
|
// replace stack before message for Node.js 0.10 and below
|
||||||
@ -1,8 +1,8 @@
|
|||||||
diff --git a/node_modules/express/lib/response.js b/node_modules/express/lib/response.js
|
diff --git a/node_modules/express/lib/response.js b/node_modules/express/lib/response.js
|
||||||
index 2b654f4..f09c95e 100644
|
index 9362d0e..0f3ed6d 100644
|
||||||
--- a/node_modules/express/lib/response.js
|
--- a/node_modules/express/lib/response.js
|
||||||
+++ b/node_modules/express/lib/response.js
|
+++ b/node_modules/express/lib/response.js
|
||||||
@@ -27,7 +27,6 @@ var merge = require('utils-merge');
|
@@ -25,7 +25,6 @@ var statuses = require('statuses')
|
||||||
var sign = require('cookie-signature').sign;
|
var sign = require('cookie-signature').sign;
|
||||||
var normalizeType = require('./utils').normalizeType;
|
var normalizeType = require('./utils').normalizeType;
|
||||||
var normalizeTypes = require('./utils').normalizeTypes;
|
var normalizeTypes = require('./utils').normalizeTypes;
|
||||||
@ -10,16 +10,7 @@ index 2b654f4..f09c95e 100644
|
|||||||
var cookie = require('cookie');
|
var cookie = require('cookie');
|
||||||
var send = require('send');
|
var send = require('send');
|
||||||
var extname = path.extname;
|
var extname = path.extname;
|
||||||
@@ -54,8 +53,6 @@ module.exports = res
|
@@ -151,17 +150,6 @@ res.send = function send(body) {
|
||||||
* @private
|
|
||||||
*/
|
|
||||||
|
|
||||||
-var charsetRegExp = /;\s*charset\s*=/;
|
|
||||||
-
|
|
||||||
/**
|
|
||||||
* Set status `code`.
|
|
||||||
*
|
|
||||||
@@ -164,16 +161,6 @@ res.send = function send(body) {
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -33,10 +24,11 @@ index 2b654f4..f09c95e 100644
|
|||||||
- this.set('Content-Type', setCharset(type, 'utf-8'));
|
- this.set('Content-Type', setCharset(type, 'utf-8'));
|
||||||
- }
|
- }
|
||||||
- }
|
- }
|
||||||
|
-
|
||||||
// determine if ETag should be generated
|
// determine if ETag should be generated
|
||||||
var etagFn = app.get('etag fn')
|
var etagFn = app.get('etag fn')
|
||||||
@@ -780,17 +767,6 @@ res.header = function header(field, val) {
|
var generateETag = !this.get('ETag') && typeof etagFn === 'function'
|
||||||
|
@@ -673,14 +661,6 @@ res.header = function header(field, val) {
|
||||||
? val.map(String)
|
? val.map(String)
|
||||||
: String(val);
|
: String(val);
|
||||||
|
|
||||||
@ -45,10 +37,7 @@ index 2b654f4..f09c95e 100644
|
|||||||
- if (Array.isArray(value)) {
|
- if (Array.isArray(value)) {
|
||||||
- throw new TypeError('Content-Type cannot be set to an Array');
|
- throw new TypeError('Content-Type cannot be set to an Array');
|
||||||
- }
|
- }
|
||||||
- if (!charsetRegExp.test(value)) {
|
- value = mime.contentType(value)
|
||||||
- var charset = mime.charsets.lookup(value.split(';')[0]);
|
|
||||||
- if (charset) value += '; charset=' + charset.toLowerCase();
|
|
||||||
- }
|
|
||||||
- }
|
- }
|
||||||
-
|
-
|
||||||
this.setHeader(field, value);
|
this.setHeader(field, value);
|
||||||
@ -1,14 +1,14 @@
|
|||||||
diff --git a/node_modules/typescript-json-schema/dist/typescript-json-schema.js b/node_modules/typescript-json-schema/dist/typescript-json-schema.js
|
diff --git a/node_modules/typescript-json-schema/dist/typescript-json-schema.js b/node_modules/typescript-json-schema/dist/typescript-json-schema.js
|
||||||
index 47e1598..8397b9d 100644
|
index 3eab401..69658a4 100644
|
||||||
--- a/node_modules/typescript-json-schema/dist/typescript-json-schema.js
|
--- a/node_modules/typescript-json-schema/dist/typescript-json-schema.js
|
||||||
+++ b/node_modules/typescript-json-schema/dist/typescript-json-schema.js
|
+++ b/node_modules/typescript-json-schema/dist/typescript-json-schema.js
|
||||||
@@ -432,6 +432,9 @@ var JsonSchemaGenerator = (function () {
|
@@ -470,6 +470,9 @@ var JsonSchemaGenerator = (function () {
|
||||||
else if (flags & ts.TypeFlags.Boolean) {
|
else if (flags & ts.TypeFlags.Boolean) {
|
||||||
definition.type = "boolean";
|
definition.type = "boolean";
|
||||||
}
|
}
|
||||||
+ else if (flags & ts.TypeFlags.BigInt) {
|
+ else if (flags & ts.TypeFlags.BigInt) {
|
||||||
+ definition.type = "bigint";
|
+ definition.type = "bigint";
|
||||||
+ }
|
+ }
|
||||||
else if (flags & ts.TypeFlags.Null) {
|
else if (flags & ts.TypeFlags.ESSymbol) {
|
||||||
definition.type = "null";
|
definition.type = "object";
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user