From c1ac076123d839ec5209b50d35ed6e73ab4cf866 Mon Sep 17 00:00:00 2001 From: Superchupu <53496941+SuperchupuDev@users.noreply.github.com> Date: Mon, 9 Sep 2024 21:57:29 +0200 Subject: [PATCH] chore: bump typescript to 5.6.2 --- package.json | 4 ++-- pnpm-lock.yaml | 42 ++++++++++++++++++++--------------------- src/classes/Detector.ts | 2 +- 3 files changed, 24 insertions(+), 24 deletions(-) diff --git a/package.json b/package.json index 6784b4a..edc8a31 100644 --- a/package.json +++ b/package.json @@ -40,10 +40,10 @@ "prisma": "^5.19.1", "standard-changelog": "^6.0.0", "tsx": "^4.19.0", - "typescript": "^5.5.4" + "typescript": "^5.6.2" }, "engines": { "node": ">=22.0.0" }, - "packageManager": "pnpm@9.4.0" + "packageManager": "pnpm@9.10.0" } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 455702f..67a0fa6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -49,8 +49,8 @@ importers: specifier: ^4.19.0 version: 4.19.0 typescript: - specifier: ^5.5.4 - version: 5.5.4 + specifier: ^5.6.2 + version: 5.6.2 packages: @@ -347,8 +347,8 @@ packages: resolution: {integrity: sha512-jjmJywLAFoWeBi1W7994zZyiNWPIiqRRNAmSERxyg93xRGzNYvGjlZ0gR6x0F4gPRi2+0O6S71kOZYyr3cxaIQ==} engines: {node: '>=v14.0.0', npm: '>=7.0.0'} - '@types/node@22.5.2': - resolution: {integrity: sha512-acJsPTEqYqulZS/Yp/S3GgeE6GZ0qYODUR8aVr/DkhHQ8l9nd4j5x1/ZJy9/gHrRlFMqkO6i0I3E27Alu4jjPg==} + '@types/node@22.5.4': + resolution: {integrity: sha512-FDuKUJQm/ju9fT/SeX/6+gBzoPzlVCzfzmGkwKvRHQVxi4BntVbyIwf6a4Xn62mrvndLiml6z/UBXIdEVjQLXg==} '@types/normalize-package-data@2.4.4': resolution: {integrity: sha512-37i+OaWTh9qeK4LSHPsyRC7NahnGotNuZvjLSgcPzblpHB3rrCJxAOgI5gCdKm7coonsaX1Of0ILiTcnZjbfxA==} @@ -576,8 +576,8 @@ packages: resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==} engines: {node: '>=8'} - picocolors@1.0.1: - resolution: {integrity: sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==} + picocolors@1.1.0: + resolution: {integrity: sha512-TQ92mBOW0l3LeMeyLV6mzy/kWr8lkd/hp3mTg7wYK7zJhuBStmGMBG0BdeDZS/dZx1IukaX6Bk11zcln25o1Aw==} picomatch@4.0.2: resolution: {integrity: sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==} @@ -648,12 +648,12 @@ packages: engines: {node: '>=18.0.0'} hasBin: true - type-fest@4.26.0: - resolution: {integrity: sha512-OduNjVJsFbifKb57UqZ2EMP1i4u64Xwow3NYXUtBbD4vIwJdQd4+xl8YDou1dlm4DVrtwT/7Ky8z8WyCULVfxw==} + type-fest@4.26.1: + resolution: {integrity: sha512-yOGpmOAL7CkKe/91I5O3gPICmJNLJ1G4zFYVAsRHg7M64biSnPtRj0WNQt++bRkjYOqjWXrhnUw1utzmVErAdg==} engines: {node: '>=16'} - typescript@5.5.4: - resolution: {integrity: sha512-Mtq29sKDAEYP7aljRgtPOpTvOfbwRWlS6dPRzwjdE+C0R4brX/GUyhHSecbHMFLNBLcJIPt9nl9yG5TZ1weH+Q==} + typescript@5.6.2: + resolution: {integrity: sha512-NW8ByodCSNCwZeghjN3o+JX5OFH0Ojg6sadjEKY4huZ52TqbJTJnDo5+Tw98lSy63NZvi4n+ez5m2u5d4PkZyw==} engines: {node: '>=14.17'} hasBin: true @@ -707,7 +707,7 @@ snapshots: '@babel/code-frame@7.24.7': dependencies: '@babel/highlight': 7.24.7 - picocolors: 1.0.1 + picocolors: 1.1.0 '@babel/helper-validator-identifier@7.24.7': {} @@ -716,7 +716,7 @@ snapshots: '@babel/helper-validator-identifier': 7.24.7 chalk: 2.4.2 js-tokens: 4.0.0 - picocolors: 1.0.1 + picocolors: 1.1.0 '@biomejs/biome@1.8.3': optionalDependencies: @@ -925,7 +925,7 @@ snapshots: '@sapphire/snowflake@3.5.3': {} - '@types/node@22.5.2': + '@types/node@22.5.4': dependencies: undici-types: 6.19.8 @@ -935,7 +935,7 @@ snapshots: '@types/ws@8.5.12': dependencies: - '@types/node': 22.5.2 + '@types/node': 22.5.4 '@vladfrangu/async_event_emitter@2.4.6': {} @@ -1162,11 +1162,11 @@ snapshots: dependencies: '@babel/code-frame': 7.24.7 index-to-position: 0.1.2 - type-fest: 4.26.0 + type-fest: 4.26.1 path-key@3.1.1: {} - picocolors@1.0.1: {} + picocolors@1.1.0: {} picomatch@4.0.2: {} @@ -1180,14 +1180,14 @@ snapshots: dependencies: find-up-simple: 1.0.0 read-pkg: 9.0.1 - type-fest: 4.26.0 + type-fest: 4.26.1 read-pkg@9.0.1: dependencies: '@types/normalize-package-data': 2.4.4 normalize-package-data: 6.0.2 parse-json: 8.1.0 - type-fest: 4.26.0 + type-fest: 4.26.1 unicorn-magic: 0.1.0 resolve-pkg-maps@1.0.0: {} @@ -1221,7 +1221,7 @@ snapshots: conventional-changelog-angular: 8.0.0 conventional-changelog-core: 8.0.0(conventional-commits-filter@5.0.0) meow: 13.2.0 - picocolors: 1.0.1 + picocolors: 1.1.0 transitivePeerDependencies: - conventional-commits-filter @@ -1240,9 +1240,9 @@ snapshots: optionalDependencies: fsevents: 2.3.3 - type-fest@4.26.0: {} + type-fest@4.26.1: {} - typescript@5.5.4: {} + typescript@5.6.2: {} uglify-js@3.19.3: optional: true diff --git a/src/classes/Detector.ts b/src/classes/Detector.ts index 2e79317..ae6eb46 100644 --- a/src/classes/Detector.ts +++ b/src/classes/Detector.ts @@ -102,7 +102,7 @@ export class Detector { static nicknameRegexp = RegExp(`[${blocklist}]`, 'giu'); async detectNickname(member: GuildMember) { const cleanNickname = member.displayName.replaceAll(/[.\-_ /\\()[\]]/giu, ''); - const result = [...cleanNickname.matchAll(Detector.nicknameRegexp)]; + const result = Detector.nicknameRegexp.exec(cleanNickname) ?? []; const clientMember = await member.guild.members.fetchMe(); if (