update deps (MisskeyIO#833)

This commit is contained in:
あわわわとーにゅ 2024-12-19 05:35:13 +09:00 committed by GitHub
parent 7772d42d33
commit b3f73d7312
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
35 changed files with 2605 additions and 2786 deletions

View file

@ -4,7 +4,7 @@
*/
import { URL } from 'node:url';
import { toASCII } from 'punycode';
import punycode from 'punycode.js';
import { Inject, Injectable } from '@nestjs/common';
import RE2 from 're2';
import { DI } from '@/di-symbols.js';
@ -95,12 +95,12 @@ export class UtilityService {
@bindThis
public toPuny(host: string): string {
return toASCII(host.toLowerCase());
return punycode.toASCII(host.toLowerCase());
}
@bindThis
public toPunyNullable(host: string | null | undefined): string | null {
if (host == null) return null;
return toASCII(host.toLowerCase());
return punycode.toASCII(host.toLowerCase());
}
}