fix(deps): update [backend] update dependencies (#16547)
* fix(deps): update [backend] update dependencies * chore: update typeorm.patch * fix: handle socket creation failure in HttpRequestServiceAgent --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: anatawa12 <anatawa12@icloud.com> Co-authored-by: kakkokari-gtyih <67428053+kakkokari-gtyih@users.noreply.github.com>
This commit is contained in:
parent
6c634de482
commit
a393d5a87e
|
@ -39,17 +39,17 @@
|
||||||
},
|
},
|
||||||
"optionalDependencies": {
|
"optionalDependencies": {
|
||||||
"@swc/core-android-arm64": "1.3.11",
|
"@swc/core-android-arm64": "1.3.11",
|
||||||
"@swc/core-darwin-arm64": "1.13.5",
|
"@swc/core-darwin-arm64": "1.13.19",
|
||||||
"@swc/core-darwin-x64": "1.13.5",
|
"@swc/core-darwin-x64": "1.13.19",
|
||||||
"@swc/core-freebsd-x64": "1.3.11",
|
"@swc/core-freebsd-x64": "1.3.11",
|
||||||
"@swc/core-linux-arm-gnueabihf": "1.13.5",
|
"@swc/core-linux-arm-gnueabihf": "1.13.19",
|
||||||
"@swc/core-linux-arm64-gnu": "1.13.5",
|
"@swc/core-linux-arm64-gnu": "1.13.19",
|
||||||
"@swc/core-linux-arm64-musl": "1.13.5",
|
"@swc/core-linux-arm64-musl": "1.13.19",
|
||||||
"@swc/core-linux-x64-gnu": "1.13.5",
|
"@swc/core-linux-x64-gnu": "1.13.19",
|
||||||
"@swc/core-linux-x64-musl": "1.13.5",
|
"@swc/core-linux-x64-musl": "1.13.19",
|
||||||
"@swc/core-win32-arm64-msvc": "1.13.5",
|
"@swc/core-win32-arm64-msvc": "1.13.19",
|
||||||
"@swc/core-win32-ia32-msvc": "1.13.5",
|
"@swc/core-win32-ia32-msvc": "1.13.19",
|
||||||
"@swc/core-win32-x64-msvc": "1.13.5",
|
"@swc/core-win32-x64-msvc": "1.13.19",
|
||||||
"@tensorflow/tfjs": "4.22.0",
|
"@tensorflow/tfjs": "4.22.0",
|
||||||
"@tensorflow/tfjs-node": "4.22.0",
|
"@tensorflow/tfjs-node": "4.22.0",
|
||||||
"bufferutil": "4.0.9",
|
"bufferutil": "4.0.9",
|
||||||
|
@ -69,8 +69,8 @@
|
||||||
"utf-8-validate": "6.0.5"
|
"utf-8-validate": "6.0.5"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@aws-sdk/client-s3": "3.883.0",
|
"@aws-sdk/client-s3": "3.896.0",
|
||||||
"@aws-sdk/lib-storage": "3.883.0",
|
"@aws-sdk/lib-storage": "3.895.0",
|
||||||
"@discordapp/twemoji": "16.0.1",
|
"@discordapp/twemoji": "16.0.1",
|
||||||
"@fastify/accepts": "5.0.2",
|
"@fastify/accepts": "5.0.2",
|
||||||
"@fastify/cookie": "11.0.2",
|
"@fastify/cookie": "11.0.2",
|
||||||
|
@ -82,7 +82,7 @@
|
||||||
"@fastify/view": "10.0.2",
|
"@fastify/view": "10.0.2",
|
||||||
"@misskey-dev/sharp-read-bmp": "1.2.0",
|
"@misskey-dev/sharp-read-bmp": "1.2.0",
|
||||||
"@misskey-dev/summaly": "5.2.3",
|
"@misskey-dev/summaly": "5.2.3",
|
||||||
"@napi-rs/canvas": "0.1.79",
|
"@napi-rs/canvas": "0.1.80",
|
||||||
"@nestjs/common": "11.1.6",
|
"@nestjs/common": "11.1.6",
|
||||||
"@nestjs/core": "11.1.6",
|
"@nestjs/core": "11.1.6",
|
||||||
"@nestjs/testing": "11.1.6",
|
"@nestjs/testing": "11.1.6",
|
||||||
|
@ -103,29 +103,29 @@
|
||||||
"bcryptjs": "2.4.3",
|
"bcryptjs": "2.4.3",
|
||||||
"blurhash": "2.0.5",
|
"blurhash": "2.0.5",
|
||||||
"body-parser": "1.20.3",
|
"body-parser": "1.20.3",
|
||||||
"bullmq": "5.58.5",
|
"bullmq": "5.58.8",
|
||||||
"cacheable-lookup": "7.0.0",
|
"cacheable-lookup": "7.0.0",
|
||||||
"cbor": "9.0.2",
|
"cbor": "9.0.2",
|
||||||
"chalk": "5.6.0",
|
"chalk": "5.6.2",
|
||||||
"chalk-template": "1.1.0",
|
"chalk-template": "1.1.2",
|
||||||
"chokidar": "4.0.3",
|
"chokidar": "4.0.3",
|
||||||
"cli-highlight": "2.1.11",
|
"cli-highlight": "2.1.11",
|
||||||
"color-convert": "2.0.1",
|
"color-convert": "2.0.1",
|
||||||
"content-disposition": "0.5.4",
|
"content-disposition": "0.5.4",
|
||||||
"date-fns": "2.30.0",
|
"date-fns": "2.30.0",
|
||||||
"deep-email-validator": "0.1.21",
|
"deep-email-validator": "0.1.21",
|
||||||
"fastify": "5.6.0",
|
"fastify": "5.6.1",
|
||||||
"fastify-raw-body": "5.0.0",
|
"fastify-raw-body": "5.0.0",
|
||||||
"feed": "4.2.2",
|
"feed": "4.2.2",
|
||||||
"file-type": "19.6.0",
|
"file-type": "19.6.0",
|
||||||
"fluent-ffmpeg": "2.1.3",
|
"fluent-ffmpeg": "2.1.3",
|
||||||
"form-data": "4.0.4",
|
"form-data": "4.0.4",
|
||||||
"got": "14.4.8",
|
"got": "14.4.9",
|
||||||
"happy-dom": "16.8.1",
|
"happy-dom": "16.8.1",
|
||||||
"hpagent": "1.2.0",
|
"hpagent": "1.2.0",
|
||||||
"htmlescape": "1.1.1",
|
"htmlescape": "1.1.1",
|
||||||
"http-link-header": "1.1.3",
|
"http-link-header": "1.1.3",
|
||||||
"ioredis": "5.7.0",
|
"ioredis": "5.8.0",
|
||||||
"ip-cidr": "4.0.2",
|
"ip-cidr": "4.0.2",
|
||||||
"ipaddr.js": "2.2.0",
|
"ipaddr.js": "2.2.0",
|
||||||
"is-svg": "5.1.0",
|
"is-svg": "5.1.0",
|
||||||
|
@ -135,14 +135,14 @@
|
||||||
"jsonld": "8.3.3",
|
"jsonld": "8.3.3",
|
||||||
"jsrsasign": "11.1.0",
|
"jsrsasign": "11.1.0",
|
||||||
"juice": "11.0.1",
|
"juice": "11.0.1",
|
||||||
"meilisearch": "0.52.0",
|
"meilisearch": "0.53.0",
|
||||||
"mfm-js": "0.25.0",
|
"mfm-js": "0.25.0",
|
||||||
"microformats-parser": "2.0.4",
|
"microformats-parser": "2.0.4",
|
||||||
"mime-types": "2.1.35",
|
"mime-types": "2.1.35",
|
||||||
"misskey-js": "workspace:*",
|
"misskey-js": "workspace:*",
|
||||||
"misskey-reversi": "workspace:*",
|
"misskey-reversi": "workspace:*",
|
||||||
"ms": "3.0.0-canary.202508261828",
|
"ms": "3.0.0-canary.202508261828",
|
||||||
"nanoid": "5.1.5",
|
"nanoid": "5.1.6",
|
||||||
"nested-property": "4.0.0",
|
"nested-property": "4.0.0",
|
||||||
"node-fetch": "3.3.2",
|
"node-fetch": "3.3.2",
|
||||||
"nodemailer": "6.10.1",
|
"nodemailer": "6.10.1",
|
||||||
|
@ -175,12 +175,12 @@
|
||||||
"slacc": "0.0.10",
|
"slacc": "0.0.10",
|
||||||
"strict-event-emitter-types": "2.0.0",
|
"strict-event-emitter-types": "2.0.0",
|
||||||
"stringz": "2.1.0",
|
"stringz": "2.1.0",
|
||||||
"systeminformation": "5.27.8",
|
"systeminformation": "5.27.10",
|
||||||
"tinycolor2": "1.6.0",
|
"tinycolor2": "1.6.0",
|
||||||
"tmp": "0.2.5",
|
"tmp": "0.2.5",
|
||||||
"tsc-alias": "1.8.16",
|
"tsc-alias": "1.8.16",
|
||||||
"tsconfig-paths": "4.2.0",
|
"tsconfig-paths": "4.2.0",
|
||||||
"typeorm": "0.3.26",
|
"typeorm": "0.3.27",
|
||||||
"typescript": "5.9.2",
|
"typescript": "5.9.2",
|
||||||
"ulid": "2.4.0",
|
"ulid": "2.4.0",
|
||||||
"vary": "1.1.2",
|
"vary": "1.1.2",
|
||||||
|
@ -210,7 +210,7 @@
|
||||||
"@types/jsrsasign": "10.5.15",
|
"@types/jsrsasign": "10.5.15",
|
||||||
"@types/mime-types": "2.1.4",
|
"@types/mime-types": "2.1.4",
|
||||||
"@types/ms": "0.7.34",
|
"@types/ms": "0.7.34",
|
||||||
"@types/node": "22.18.1",
|
"@types/node": "22.18.6",
|
||||||
"@types/nodemailer": "6.4.19",
|
"@types/nodemailer": "6.4.19",
|
||||||
"@types/oauth": "0.9.6",
|
"@types/oauth": "0.9.6",
|
||||||
"@types/oauth2orize": "1.11.5",
|
"@types/oauth2orize": "1.11.5",
|
||||||
|
@ -231,8 +231,8 @@
|
||||||
"@types/vary": "1.1.3",
|
"@types/vary": "1.1.3",
|
||||||
"@types/web-push": "3.6.4",
|
"@types/web-push": "3.6.4",
|
||||||
"@types/ws": "8.18.1",
|
"@types/ws": "8.18.1",
|
||||||
"@typescript-eslint/eslint-plugin": "8.42.0",
|
"@typescript-eslint/eslint-plugin": "8.44.1",
|
||||||
"@typescript-eslint/parser": "8.42.0",
|
"@typescript-eslint/parser": "8.44.1",
|
||||||
"aws-sdk-client-mock": "4.1.0",
|
"aws-sdk-client-mock": "4.1.0",
|
||||||
"cross-env": "7.0.3",
|
"cross-env": "7.0.3",
|
||||||
"eslint-plugin-import": "2.32.0",
|
"eslint-plugin-import": "2.32.0",
|
||||||
|
|
|
@ -37,17 +37,23 @@ class HttpRequestServiceAgent extends http.Agent {
|
||||||
|
|
||||||
@bindThis
|
@bindThis
|
||||||
public createConnection(options: http.ClientRequestArgs, callback?: (err: Error | null, stream: stream.Duplex) => void): stream.Duplex {
|
public createConnection(options: http.ClientRequestArgs, callback?: (err: Error | null, stream: stream.Duplex) => void): stream.Duplex {
|
||||||
const socket = super.createConnection(options, callback)
|
const socket = super.createConnection(options, callback);
|
||||||
.on('connect', () => {
|
|
||||||
if (socket instanceof net.Socket && process.env.NODE_ENV === 'production') {
|
if (socket == null) {
|
||||||
const address = socket.remoteAddress;
|
throw new Error('Failed to create socket');
|
||||||
if (address && ipaddr.isValid(address)) {
|
}
|
||||||
if (this.isPrivateIp(address)) {
|
|
||||||
socket.destroy(new Error(`Blocked address: ${address}`));
|
socket.on('connect', () => {
|
||||||
}
|
if (socket instanceof net.Socket && process.env.NODE_ENV === 'production') {
|
||||||
|
const address = socket.remoteAddress;
|
||||||
|
if (address && ipaddr.isValid(address)) {
|
||||||
|
if (this.isPrivateIp(address)) {
|
||||||
|
socket.destroy(new Error(`Blocked address: ${address}`));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
}
|
||||||
|
});
|
||||||
|
|
||||||
return socket;
|
return socket;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -76,17 +82,23 @@ class HttpsRequestServiceAgent extends https.Agent {
|
||||||
|
|
||||||
@bindThis
|
@bindThis
|
||||||
public createConnection(options: http.ClientRequestArgs, callback?: (err: Error | null, stream: stream.Duplex) => void): stream.Duplex {
|
public createConnection(options: http.ClientRequestArgs, callback?: (err: Error | null, stream: stream.Duplex) => void): stream.Duplex {
|
||||||
const socket = super.createConnection(options, callback)
|
const socket = super.createConnection(options, callback);
|
||||||
.on('connect', () => {
|
|
||||||
if (socket instanceof net.Socket && process.env.NODE_ENV === 'production') {
|
if (socket == null) {
|
||||||
const address = socket.remoteAddress;
|
throw new Error('Failed to create socket');
|
||||||
if (address && ipaddr.isValid(address)) {
|
}
|
||||||
if (this.isPrivateIp(address)) {
|
|
||||||
socket.destroy(new Error(`Blocked address: ${address}`));
|
socket.on('connect', () => {
|
||||||
}
|
if (socket instanceof net.Socket && process.env.NODE_ENV === 'production') {
|
||||||
|
const address = socket.remoteAddress;
|
||||||
|
if (address && ipaddr.isValid(address)) {
|
||||||
|
if (this.isPrivateIp(address)) {
|
||||||
|
socket.destroy(new Error(`Blocked address: ${address}`));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
}
|
||||||
|
});
|
||||||
|
|
||||||
return socket;
|
return socket;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
diff --git a/driver/postgres/PostgresDriver.js b/driver/postgres/PostgresDriver.js
|
diff --git a/driver/postgres/PostgresDriver.js b/driver/postgres/PostgresDriver.js
|
||||||
index 278f29c1f3deec4939bb4ed90e6edae167f704e0..9a84c3098dda915d6c33e24d925a8fa09af9095e 100644
|
index e13b903c73b71113bb529552e59fb4ce0ca8af0c..50de6a60120ece7ebf49009eac588a5313343f39 100644
|
||||||
--- a/driver/postgres/PostgresDriver.js
|
--- a/driver/postgres/PostgresDriver.js
|
||||||
+++ b/driver/postgres/PostgresDriver.js
|
+++ b/driver/postgres/PostgresDriver.js
|
||||||
@@ -785,10 +785,10 @@ class PostgresDriver {
|
@@ -819,10 +819,10 @@ class PostgresDriver {
|
||||||
const tableColumnDefault = typeof tableColumn.default === "string"
|
const tableColumnDefault = typeof tableColumn.default === "string"
|
||||||
? JSON.parse(tableColumn.default.substring(1, tableColumn.default.length - 1))
|
? JSON.parse(tableColumn.default.substring(1, tableColumn.default.length - 1))
|
||||||
: tableColumn.default;
|
: tableColumn.default;
|
||||||
|
|
1853
pnpm-lock.yaml
1853
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue