1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-11-27 06:18:40 +09:00

update deps (MisskeyIO#775)

This commit is contained in:
あわわわとーにゅ 2024-10-23 05:48:11 +09:00 committed by GitHub
parent 6e07857b1c
commit f33e1b5e87
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
17 changed files with 3584 additions and 2046 deletions

View File

@ -52,7 +52,8 @@ const primaries = {
const clean = (text) => text.replace(new RegExp(String.fromCodePoint(0x08), 'g'), ''); const clean = (text) => text.replace(new RegExp(String.fromCodePoint(0x08), 'g'), '');
export function build() { export function build() {
const locales = languages.reduce((a, c) => (a[c] = yaml.load(clean(fs.readFileSync(new URL(`${c}.yml`, import.meta.url), 'utf-8'))) || {}, a), {}); const metaUrl = import.meta.url;
const locales = languages.reduce((a, c) => (a[c] = yaml.load(clean(fs.readFileSync(new URL(`${c}.yml`, metaUrl), 'utf-8'))) || {}, a), {});
// 空文字列が入ることがあり、フォールバックが動作しなくなるのでプロパティごと消す // 空文字列が入ることがあり、フォールバックが動作しなくなるのでプロパティごと消す
const removeEmpty = (obj) => { const removeEmpty = (obj) => {

View File

@ -46,11 +46,15 @@
"cleanall": "pnpm clean-all" "cleanall": "pnpm clean-all"
}, },
"resolutions": { "resolutions": {
"@tensorflow/tfjs-core": "4.21.0", "@tensorflow/tfjs-core": "4.22.0",
"chokidar": "4.0.1", "chokidar": "4.0.1",
"cookie": "1.0.1",
"cookie-signature": "1.2.1",
"debug": "4.3.7",
"esbuild": "0.24.0", "esbuild": "0.24.0",
"lodash": "4.17.21", "lodash": "4.17.21",
"sharp": "0.33.5" "sharp": "0.33.5",
"web-streams-polyfill": "4.0.0"
}, },
"dependencies": { "dependencies": {
"cssnano": "7.0.6", "cssnano": "7.0.6",
@ -61,7 +65,7 @@
"typescript": "5.6.3" "typescript": "5.6.3"
}, },
"devDependencies": { "devDependencies": {
"@types/node": "22.7.7", "@types/node": "22.7.8",
"@typescript-eslint/eslint-plugin": "7.10.0", "@typescript-eslint/eslint-plugin": "7.10.0",
"@typescript-eslint/parser": "7.10.0", "@typescript-eslint/parser": "7.10.0",
"cross-env": "7.0.3", "cross-env": "7.0.3",
@ -71,6 +75,6 @@
"start-server-and-test": "2.0.8" "start-server-and-test": "2.0.8"
}, },
"optionalDependencies": { "optionalDependencies": {
"@tensorflow/tfjs-core": "4.21.0" "@tensorflow/tfjs-core": "4.22.0"
} }
} }

View File

@ -34,20 +34,18 @@
"generate-api-json": "pnpm build && node ./scripts/generate_api_json.js" "generate-api-json": "pnpm build && node ./scripts/generate_api_json.js"
}, },
"optionalDependencies": { "optionalDependencies": {
"@swc/core-android-arm64": "1.3.11", "@swc/core-darwin-arm64": "1.7.39",
"@swc/core-darwin-arm64": "1.5.7", "@swc/core-darwin-x64": "1.7.39",
"@swc/core-darwin-x64": "1.5.7", "@swc/core-linux-arm-gnueabihf": "1.7.39",
"@swc/core-freebsd-x64": "1.3.11", "@swc/core-linux-arm64-gnu": "1.7.39",
"@swc/core-linux-arm-gnueabihf": "1.5.7", "@swc/core-linux-arm64-musl": "1.7.39",
"@swc/core-linux-arm64-gnu": "1.5.7", "@swc/core-linux-x64-gnu": "1.7.39",
"@swc/core-linux-arm64-musl": "1.5.7", "@swc/core-linux-x64-musl": "1.7.39",
"@swc/core-linux-x64-gnu": "1.5.7", "@swc/core-win32-arm64-msvc": "1.7.39",
"@swc/core-linux-x64-musl": "1.5.7", "@swc/core-win32-ia32-msvc": "1.7.39",
"@swc/core-win32-arm64-msvc": "1.5.7", "@swc/core-win32-x64-msvc": "1.7.39",
"@swc/core-win32-ia32-msvc": "1.5.7", "@tensorflow/tfjs": "4.22.0",
"@swc/core-win32-x64-msvc": "1.5.7", "@tensorflow/tfjs-node": "4.22.0",
"@tensorflow/tfjs": "4.21.0",
"@tensorflow/tfjs-node": "4.21.0",
"bufferutil": "4.0.8", "bufferutil": "4.0.8",
"slacc-android-arm-eabi": "0.0.10", "slacc-android-arm-eabi": "0.0.10",
"slacc-android-arm64": "0.0.10", "slacc-android-arm64": "0.0.10",
@ -66,22 +64,22 @@
}, },
"dependencies": { "dependencies": {
"@authenio/samlify-node-xmllint": "2.0.0", "@authenio/samlify-node-xmllint": "2.0.0",
"@aws-sdk/client-s3": "3.675.0", "@aws-sdk/client-s3": "3.676.0",
"@aws-sdk/lib-storage": "3.675.0", "@aws-sdk/lib-storage": "3.676.0",
"@bull-board/api": "5.23.0", "@bull-board/api": "6.2.4",
"@bull-board/fastify": "5.23.0", "@bull-board/fastify": "6.2.4",
"@bull-board/ui": "5.23.0", "@bull-board/ui": "6.2.4",
"@discordapp/twemoji": "15.1.0", "@discordapp/twemoji": "15.1.0",
"@elastic/elasticsearch": "8.15.1", "@elastic/elasticsearch": "8.15.1",
"@fastify/accepts": "4.3.0", "@fastify/accepts": "5.0.1",
"@fastify/cookie": "9.4.0", "@fastify/cookie": "11.0.1",
"@fastify/cors": "9.0.1", "@fastify/cors": "10.0.1",
"@fastify/express": "3.0.0", "@fastify/express": "4.0.1",
"@fastify/formbody": "7.4.0", "@fastify/formbody": "8.0.1",
"@fastify/http-proxy": "9.5.0", "@fastify/http-proxy": "10.0.1",
"@fastify/multipart": "8.3.0", "@fastify/multipart": "9.0.1",
"@fastify/static": "7.0.4", "@fastify/static": "8.0.2",
"@fastify/view": "9.1.0", "@fastify/view": "10.0.1",
"@misskey-dev/sharp-read-bmp": "1.2.0", "@misskey-dev/sharp-read-bmp": "1.2.0",
"@misskey-dev/summaly": "5.1.0", "@misskey-dev/summaly": "5.1.0",
"@napi-rs/canvas": "0.1.58", "@napi-rs/canvas": "0.1.58",
@ -89,11 +87,11 @@
"@nestjs/core": "10.4.5", "@nestjs/core": "10.4.5",
"@nestjs/testing": "10.4.5", "@nestjs/testing": "10.4.5",
"@peertube/http-signature": "1.7.0", "@peertube/http-signature": "1.7.0",
"@simplewebauthn/server": "10.0.1", "@simplewebauthn/server": "11.0.0",
"@sinonjs/fake-timers": "11.3.1", "@sinonjs/fake-timers": "11.3.1",
"@smithy/node-http-handler": "3.2.4", "@smithy/node-http-handler": "3.2.5",
"@swc/cli": "0.3.12", "@swc/cli": "0.4.0",
"@swc/core": "1.5.7", "@swc/core": "1.7.39",
"@twemoji/parser": "15.1.1", "@twemoji/parser": "15.1.1",
"accepts": "1.3.8", "accepts": "1.3.8",
"ajv": "8.17.1", "ajv": "8.17.1",
@ -101,8 +99,8 @@
"async-mutex": "0.5.0", "async-mutex": "0.5.0",
"bcryptjs": "2.4.3", "bcryptjs": "2.4.3",
"blurhash": "2.0.5", "blurhash": "2.0.5",
"body-parser": "1.20.2", "body-parser": "1.20.3",
"bullmq": "5.21.1", "bullmq": "5.21.2",
"cacheable-lookup": "7.0.0", "cacheable-lookup": "7.0.0",
"cbor": "9.0.2", "cbor": "9.0.2",
"chalk": "5.3.0", "chalk": "5.3.0",
@ -113,11 +111,11 @@
"content-disposition": "0.5.4", "content-disposition": "0.5.4",
"date-fns": "4.1.0", "date-fns": "4.1.0",
"deep-email-validator": "0.1.21", "deep-email-validator": "0.1.21",
"fastify": "4.28.1", "fastify": "5.0.0",
"fastify-http-errors-enhanced": "5.0.4", "fastify-http-errors-enhanced": "6.0.0",
"fastify-raw-body": "4.3.0", "fastify-raw-body": "5.0.0",
"feed": "4.2.2", "feed": "4.2.2",
"file-type": "19.4.0", "file-type": "19.6.0",
"fluent-ffmpeg": "2.1.3", "fluent-ffmpeg": "2.1.3",
"form-data": "4.0.1", "form-data": "4.0.1",
"got": "14.4.3", "got": "14.4.3",
@ -126,7 +124,7 @@
"htmlescape": "1.1.1", "htmlescape": "1.1.1",
"http-link-header": "1.1.3", "http-link-header": "1.1.3",
"ioredis": "5.4.1", "ioredis": "5.4.1",
"ip-cidr": "3.1.0", "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",
"jose": "5.9.6", "jose": "5.9.6",
@ -135,7 +133,7 @@
"json5": "2.2.3", "json5": "2.2.3",
"jsonld": "8.3.2", "jsonld": "8.3.2",
"jsrsasign": "11.1.0", "jsrsasign": "11.1.0",
"meilisearch": "0.41.0", "meilisearch": "0.44.1",
"mfm-js": "0.24.0", "mfm-js": "0.24.0",
"microformats-parser": "2.0.2", "microformats-parser": "2.0.2",
"mime-types": "2.1.35", "mime-types": "2.1.35",
@ -153,7 +151,7 @@
"oauth2orize-pkce": "0.1.2", "oauth2orize-pkce": "0.1.2",
"os-utils": "0.0.14", "os-utils": "0.0.14",
"otpauth": "9.3.4", "otpauth": "9.3.4",
"parse5": "7.1.2", "parse5": "7.2.0",
"pg": "8.13.0", "pg": "8.13.0",
"pino": "9.5.0", "pino": "9.5.0",
"pino-pretty": "11.3.0", "pino-pretty": "11.3.0",
@ -172,7 +170,7 @@
"rss-parser": "3.13.0", "rss-parser": "3.13.0",
"rxjs": "7.8.1", "rxjs": "7.8.1",
"samlify": "2.8.11", "samlify": "2.8.11",
"sanitize-html": "2.13.0", "sanitize-html": "2.13.1",
"secure-json-parse": "2.7.0", "secure-json-parse": "2.7.0",
"sharp": "0.33.5", "sharp": "0.33.5",
"slacc": "0.0.10", "slacc": "0.0.10",
@ -196,7 +194,7 @@
"@jest/globals": "29.7.0", "@jest/globals": "29.7.0",
"@misskey-dev/eslint-plugin": "1.0.0", "@misskey-dev/eslint-plugin": "1.0.0",
"@nestjs/platform-express": "10.4.5", "@nestjs/platform-express": "10.4.5",
"@simplewebauthn/types": "10.0.0", "@simplewebauthn/types": "11.0.0",
"@swc/jest": "0.2.36", "@swc/jest": "0.2.36",
"@types/accepts": "1.3.7", "@types/accepts": "1.3.7",
"@types/archiver": "6.0.2", "@types/archiver": "6.0.2",
@ -214,7 +212,7 @@
"@types/jsrsasign": "10.5.14", "@types/jsrsasign": "10.5.14",
"@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.7.7", "@types/node": "22.7.8",
"@types/node-forge": "1.3.11", "@types/node-forge": "1.3.11",
"@types/nodemailer": "6.4.16", "@types/nodemailer": "6.4.16",
"@types/oauth": "0.9.6", "@types/oauth": "0.9.6",
@ -234,7 +232,7 @@
"@types/tinycolor2": "1.4.6", "@types/tinycolor2": "1.4.6",
"@types/tmp": "0.2.6", "@types/tmp": "0.2.6",
"@types/vary": "1.1.3", "@types/vary": "1.1.3",
"@types/web-push": "3.6.3", "@types/web-push": "3.6.4",
"@types/ws": "8.5.12", "@types/ws": "8.5.12",
"@typescript-eslint/eslint-plugin": "7.10.0", "@typescript-eslint/eslint-plugin": "7.10.0",
"@typescript-eslint/parser": "7.10.0", "@typescript-eslint/parser": "7.10.0",

View File

@ -96,8 +96,8 @@ export class WebAuthnService {
@bindThis @bindThis
public async verifyRegistration(userId: MiUser['id'], response: RegistrationResponseJSON): Promise<{ public async verifyRegistration(userId: MiUser['id'], response: RegistrationResponseJSON): Promise<{
credentialID: string; id: string;
credentialPublicKey: Uint8Array; publicKey: Uint8Array;
attestationObject: Uint8Array; attestationObject: Uint8Array;
fmt: AttestationFormat; fmt: AttestationFormat;
counter: number; counter: number;
@ -139,15 +139,15 @@ export class WebAuthnService {
const { registrationInfo } = verification; const { registrationInfo } = verification;
return { return {
credentialID: registrationInfo.credentialID, id: registrationInfo.credential.id,
credentialPublicKey: registrationInfo.credentialPublicKey, publicKey: registrationInfo.credential.publicKey,
attestationObject: registrationInfo.attestationObject, attestationObject: registrationInfo.attestationObject,
fmt: registrationInfo.fmt, fmt: registrationInfo.fmt,
counter: registrationInfo.counter, counter: registrationInfo.credential.counter,
userVerified: registrationInfo.userVerified, userVerified: registrationInfo.userVerified,
credentialDeviceType: registrationInfo.credentialDeviceType, credentialDeviceType: registrationInfo.credentialDeviceType,
credentialBackedUp: registrationInfo.credentialBackedUp, credentialBackedUp: registrationInfo.credentialBackedUp,
transports: response.response.transports, transports: registrationInfo.credential.transports,
}; };
} }
@ -228,9 +228,9 @@ export class WebAuthnService {
expectedChallenge: challenge, expectedChallenge: challenge,
expectedOrigin: relyingParty.origin, expectedOrigin: relyingParty.origin,
expectedRPID: relyingParty.rpId, expectedRPID: relyingParty.rpId,
authenticator: { credential: {
credentialID: key.id, id: key.id,
credentialPublicKey: Buffer.from(key.publicKey, 'base64url'), publicKey: Buffer.from(key.publicKey, 'base64url'),
counter: key.counter, counter: key.counter,
transports: key.transports ? key.transports as AuthenticatorTransportFuture[] : undefined, transports: key.transports ? key.transports as AuthenticatorTransportFuture[] : undefined,
}, },

View File

@ -8,7 +8,7 @@ import type { onRequestHookHandler } from 'fastify';
export const handleRequestRedirectToOmitSearch: onRequestHookHandler = (request, reply, done) => { export const handleRequestRedirectToOmitSearch: onRequestHookHandler = (request, reply, done) => {
const index = request.url.indexOf('?'); const index = request.url.indexOf('?');
if (~index) { if (~index) {
reply.redirect(301, request.url.slice(0, index)); reply.redirect(request.url.slice(0, index), 301);
} }
done(); done();
}; };

View File

@ -82,7 +82,7 @@ export class FileServerService {
.catch(err => this.errorHandler(request, reply, err)); .catch(err => this.errorHandler(request, reply, err));
}); });
fastify.get<{ Params: { key: string; } }>('/files/:key/*', async (request, reply) => { fastify.get<{ Params: { key: string; } }>('/files/:key/*', async (request, reply) => {
return await reply.redirect(301, `${this.config.url}/files/${request.params.key}`); return reply.redirect(`${this.config.url}/files/${request.params.key}`, 301);
}); });
done(); done();
}); });
@ -147,12 +147,12 @@ export class FileServerService {
url.searchParams.set('static', '1'); url.searchParams.set('static', '1');
file.cleanup(); file.cleanup();
return await reply.redirect(301, url.toString()); return await reply.redirect(url.toString(), 301);
} else if (file.mime.startsWith('video/')) { } else if (file.mime.startsWith('video/')) {
const externalThumbnail = this.videoProcessingService.getExternalVideoThumbnailUrl(file.url); const externalThumbnail = this.videoProcessingService.getExternalVideoThumbnailUrl(file.url);
if (externalThumbnail) { if (externalThumbnail) {
file.cleanup(); file.cleanup();
return await reply.redirect(301, externalThumbnail); return await reply.redirect(externalThumbnail, 301);
} }
image = await this.videoProcessingService.generateVideoThumbnail(file.path); image = await this.videoProcessingService.generateVideoThumbnail(file.path);
@ -167,7 +167,7 @@ export class FileServerService {
url.searchParams.set('url', file.url); url.searchParams.set('url', file.url);
file.cleanup(); file.cleanup();
return await reply.redirect(301, url.toString()); return await reply.redirect(url.toString(), 301);
} }
} }
@ -313,9 +313,9 @@ export class FileServerService {
url.searchParams.append(key, value); url.searchParams.append(key, value);
} }
return await reply.redirect( return reply.redirect(
301,
url.toString(), url.toString(),
301,
); );
} }

View File

@ -155,7 +155,7 @@ export class ServerService implements OnApplicationShutdown {
if (emoji == null) { if (emoji == null) {
if ('fallback' in request.query) { if ('fallback' in request.query) {
return await reply.redirect('/static-assets/emoji-unknown.png'); return reply.redirect('/static-assets/emoji-unknown.png');
} else { } else {
reply.code(404); reply.code(404);
return; return;
@ -176,9 +176,9 @@ export class ServerService implements OnApplicationShutdown {
if ('static' in request.query) url.searchParams.set('static', '1'); if ('static' in request.query) url.searchParams.set('static', '1');
} }
return await reply.redirect( return reply.redirect(
301,
url.toString(), url.toString(),
301,
); );
}); });

View File

@ -96,13 +96,13 @@ export default class extends Endpoint<typeof meta, typeof paramDef> {
} }
const keyInfo = await this.webAuthnService.verifyRegistration(me.id, ps.credential); const keyInfo = await this.webAuthnService.verifyRegistration(me.id, ps.credential);
const keyId = keyInfo.credentialID; const keyId = keyInfo.id;
await this.userSecurityKeysRepository.insert({ await this.userSecurityKeysRepository.insert({
id: keyId, id: keyId,
userId: me.id, userId: me.id,
name: ps.name, name: ps.name,
publicKey: Buffer.from(keyInfo.credentialPublicKey).toString('base64url'), publicKey: Buffer.from(keyInfo.publicKey).toString('base64url'),
counter: keyInfo.counter, counter: keyInfo.counter,
credentialDeviceType: keyInfo.credentialDeviceType, credentialDeviceType: keyInfo.credentialDeviceType,
credentialBackedUp: keyInfo.credentialBackedUp, credentialBackedUp: keyInfo.credentialBackedUp,

View File

@ -211,7 +211,10 @@ export function genOpenapiSpec(config: Config, includeSelfRef = false) {
spec.paths['/' + endpoint.name] = { spec.paths['/' + endpoint.name] = {
...(endpoint.meta.allowGet ? { ...(endpoint.meta.allowGet ? {
get: info, get: {
...info,
operationId: info.operationId + '_get',
},
} : {}), } : {}),
post: info, post: info,
}; };

View File

@ -41,7 +41,7 @@
"chartjs-chart-matrix": "2.0.1", "chartjs-chart-matrix": "2.0.1",
"chartjs-plugin-gradient": "0.6.1", "chartjs-plugin-gradient": "0.6.1",
"chartjs-plugin-zoom": "2.0.1", "chartjs-plugin-zoom": "2.0.1",
"chromatic": "11.12.6", "chromatic": "11.14.0",
"compare-versions": "6.1.1", "compare-versions": "6.1.1",
"cropperjs": "2.0.0-rc.0", "cropperjs": "2.0.0-rc.0",
"date-fns": "4.1.0", "date-fns": "4.1.0",
@ -60,7 +60,7 @@
"photoswipe": "5.4.4", "photoswipe": "5.4.4",
"punycode": "2.3.1", "punycode": "2.3.1",
"rollup": "4.24.0", "rollup": "4.24.0",
"sanitize-html": "2.13.0", "sanitize-html": "2.13.1",
"sass": "1.80.3", "sass": "1.80.3",
"shiki": "1.22.0", "shiki": "1.22.0",
"strict-event-emitter-types": "2.0.0", "strict-event-emitter-types": "2.0.0",
@ -103,7 +103,7 @@
"@types/estree": "1.0.6", "@types/estree": "1.0.6",
"@types/matter-js": "0.19.7", "@types/matter-js": "0.19.7",
"@types/micromatch": "4.0.9", "@types/micromatch": "4.0.9",
"@types/node": "22.7.7", "@types/node": "22.7.8",
"@types/punycode": "2.1.4", "@types/punycode": "2.1.4",
"@types/sanitize-html": "2.13.0", "@types/sanitize-html": "2.13.0",
"@types/throttle-debounce": "5.0.2", "@types/throttle-debounce": "5.0.2",
@ -112,7 +112,7 @@
"@types/ws": "8.5.12", "@types/ws": "8.5.12",
"@typescript-eslint/eslint-plugin": "7.10.0", "@typescript-eslint/eslint-plugin": "7.10.0",
"@typescript-eslint/parser": "7.10.0", "@typescript-eslint/parser": "7.10.0",
"@vitest/coverage-v8": "0.34.6", "@vitest/coverage-v8": "2.1.3",
"@vue/runtime-core": "3.5.12", "@vue/runtime-core": "3.5.12",
"acorn": "8.13.0", "acorn": "8.13.0",
"cross-env": "7.0.3", "cross-env": "7.0.3",
@ -124,7 +124,7 @@
"happy-dom": "15.7.4", "happy-dom": "15.7.4",
"intersection-observer": "0.12.2", "intersection-observer": "0.12.2",
"micromatch": "4.0.8", "micromatch": "4.0.8",
"msw": "2.4.11", "msw": "2.5.0",
"msw-storybook-addon": "2.0.3", "msw-storybook-addon": "2.0.3",
"nodemon": "3.1.7", "nodemon": "3.1.7",
"prettier": "3.3.3", "prettier": "3.3.3",
@ -134,8 +134,8 @@
"storybook": "8.3.6", "storybook": "8.3.6",
"storybook-addon-misskey-theme": "github:misskey-dev/storybook-addon-misskey-theme", "storybook-addon-misskey-theme": "github:misskey-dev/storybook-addon-misskey-theme",
"vite-plugin-turbosnap": "1.0.3", "vite-plugin-turbosnap": "1.0.3",
"vitest": "0.34.6", "vitest": "2.1.3",
"vitest-fetch-mock": "0.2.2", "vitest-fetch-mock": "0.3.0",
"vue-component-type-helpers": "2.1.6", "vue-component-type-helpers": "2.1.6",
"vue-eslint-parser": "9.4.3", "vue-eslint-parser": "9.4.3",
"vue-tsc": "2.1.6" "vue-tsc": "2.1.6"

View File

@ -26,7 +26,7 @@
"devDependencies": { "devDependencies": {
"@misskey-dev/eslint-plugin": "1.0.0", "@misskey-dev/eslint-plugin": "1.0.0",
"@types/matter-js": "0.19.7", "@types/matter-js": "0.19.7",
"@types/node": "22.7.7", "@types/node": "22.7.8",
"@types/seedrandom": "3.0.8", "@types/seedrandom": "3.0.8",
"@typescript-eslint/eslint-plugin": "7.10.0", "@typescript-eslint/eslint-plugin": "7.10.0",
"@typescript-eslint/parser": "7.10.0", "@typescript-eslint/parser": "7.10.0",

View File

@ -9,7 +9,7 @@
"devDependencies": { "devDependencies": {
"@misskey-dev/eslint-plugin": "^1.0.0", "@misskey-dev/eslint-plugin": "^1.0.0",
"@readme/openapi-parser": "2.6.0", "@readme/openapi-parser": "2.6.0",
"@types/node": "22.7.7", "@types/node": "22.7.8",
"@typescript-eslint/eslint-plugin": "7.10.0", "@typescript-eslint/eslint-plugin": "7.10.0",
"@typescript-eslint/parser": "7.10.0", "@typescript-eslint/parser": "7.10.0",
"eslint": "8.57.1", "eslint": "8.57.1",

View File

@ -39,7 +39,7 @@
"@misskey-dev/eslint-plugin": "1.0.0", "@misskey-dev/eslint-plugin": "1.0.0",
"@swc/jest": "0.2.36", "@swc/jest": "0.2.36",
"@types/jest": "29.5.13", "@types/jest": "29.5.13",
"@types/node": "22.7.7", "@types/node": "22.7.8",
"@typescript-eslint/eslint-plugin": "7.10.0", "@typescript-eslint/eslint-plugin": "7.10.0",
"@typescript-eslint/parser": "7.10.0", "@typescript-eslint/parser": "7.10.0",
"eslint": "8.57.1", "eslint": "8.57.1",
@ -58,8 +58,8 @@
"built/dts" "built/dts"
], ],
"dependencies": { "dependencies": {
"@swc/cli": "0.3.12", "@swc/cli": "0.4.0",
"@swc/core": "1.5.7", "@swc/core": "1.7.39",
"eventemitter3": "5.0.1", "eventemitter3": "5.0.1",
"reconnecting-websocket": "4.4.0" "reconnecting-websocket": "4.4.0"
} }

View File

@ -58,7 +58,7 @@ export class APIClient {
this.fetch(`${this.origin}/api/${endpoint}`, { this.fetch(`${this.origin}/api/${endpoint}`, {
method: 'POST', method: 'POST',
body: JSON.stringify({ body: JSON.stringify({
...params, ...(params ?? {}),
i: credential !== undefined ? credential : this.credential, i: credential !== undefined ? credential : this.credential,
}), }),
headers: { headers: {

File diff suppressed because it is too large Load Diff

View File

@ -25,7 +25,7 @@
}, },
"devDependencies": { "devDependencies": {
"@misskey-dev/eslint-plugin": "1.0.0", "@misskey-dev/eslint-plugin": "1.0.0",
"@types/node": "22.7.7", "@types/node": "22.7.8",
"@typescript-eslint/eslint-plugin": "7.10.0", "@typescript-eslint/eslint-plugin": "7.10.0",
"@typescript-eslint/parser": "7.10.0", "@typescript-eslint/parser": "7.10.0",
"eslint": "8.57.1", "eslint": "8.57.1",

File diff suppressed because it is too large Load Diff