diff --git a/package.json b/package.json index d2ddbd0..ae95a0f 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "apollo-server": "^3.5.0", "axios": "^1.6.7", "cron": "^3.1.6", - "date-fns": "^2.21.1", + "date-fns": "^3.3.1", "deep-object-diff": "^1.1.0", "discord.js": "^14.14.1", "form-data": "^4.0.0", diff --git a/src/modules/ModerationModule.ts b/src/modules/ModerationModule.ts index bc09cbb..cab833a 100644 --- a/src/modules/ModerationModule.ts +++ b/src/modules/ModerationModule.ts @@ -23,7 +23,7 @@ import emitter, { ModerationEventType } from "../emitter"; import { Command } from "../internal/command"; import { EventHandler, Module } from "../internal/types"; import parseDuration from "parse-duration"; -import { intervalToDuration } from "date-fns"; +import { intervalToDuration, Duration } from "date-fns"; import { bold, userMention } from "@discordjs/builders"; import { CronJob } from "cron"; import { getGeneralMessageChannelForGuild } from "../utils/guilds"; diff --git a/src/mutes.ts b/src/mutes.ts index 4a55f40..2c1b24f 100644 --- a/src/mutes.ts +++ b/src/mutes.ts @@ -1,5 +1,5 @@ import { userMention } from "@discordjs/builders"; -import { add, formatDuration } from "date-fns"; +import { Duration, add, formatDuration } from "date-fns"; import { CommandInteraction, DiscordAPIError, diff --git a/yarn.lock b/yarn.lock index d234f42..89d5ad0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -129,13 +129,6 @@ dependencies: xss "^1.0.8" -"@babel/runtime@^7.21.0": - version "7.24.0" - resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.24.0.tgz#584c450063ffda59697021430cb47101b085951e" - integrity sha512-Chk32uHMg6TnQdvw2e9IlqPpFX/6NLuK0Ys2PqLb7/gL5uFn9mXvK715FGLlOLQrcO4qIkNHkvPGktzzXexsFw== - dependencies: - regenerator-runtime "^0.14.0" - "@cspotcode/source-map-support@^0.8.0": version "0.8.1" resolved "https://registry.yarnpkg.com/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz#00629c35a688e05a88b1cda684fb9d5e73f000a1" @@ -1211,12 +1204,10 @@ dashdash@^1.12.0: dependencies: assert-plus "^1.0.0" -date-fns@^2.21.1: - version "2.30.0" - resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-2.30.0.tgz#f367e644839ff57894ec6ac480de40cae4b0f4d0" - integrity sha512-fnULvOpxnC5/Vg3NCiWelDsLiUc9bRwAPs/+LfTLNvetFCtCTN+yQz15C/fs4AwX1R9K5GLtLfn8QW+dWisaAw== - dependencies: - "@babel/runtime" "^7.21.0" +date-fns@^3.3.1: + version "3.3.1" + resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-3.3.1.tgz#7581daca0892d139736697717a168afbb908cfed" + integrity sha512-y8e109LYGgoQDveiEBD3DYXKba1jWf5BA8YU1FL5Tvm0BTdEfy54WLCwnuYWZNnzzvALy/QQ4Hov+Q9RVRv+Zw== dateformat@^4.6.3: version "4.6.3" @@ -2458,11 +2449,6 @@ rechoir@^0.6.2: dependencies: resolve "^1.1.6" -regenerator-runtime@^0.14.0: - version "0.14.1" - resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz#356ade10263f685dda125100cd862c1db895327f" - integrity sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw== - request@^2.88.0, request@^2.88.2: version "2.88.2" resolved "https://registry.yarnpkg.com/request/-/request-2.88.2.tgz#d73c918731cb5a87da047e207234146f664d12b3"