From a663187192cdcfa18f3c6910ce277c175d3c2df7 Mon Sep 17 00:00:00 2001 From: Akita Noek Date: Sun, 8 Oct 2023 06:20:38 -0600 Subject: [PATCH] Fixed ts-md5 import error through different import, bumped ts-md5 library --- package.json | 2 +- src/views/SignIn/SignIn.tsx | 2 +- yarn.lock | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index b0fffb14e8..4184569182 100644 --- a/package.json +++ b/package.json @@ -136,7 +136,7 @@ "resize-observer-polyfill": "^1.5.1", "sanitize-html": "^2.3.2", "sweetalert2": "^11.4.17", - "ts-md5": "=1.2.11", + "ts-md5": "^1.3.1", "valid-url": "^1.0.9", "whatwg-fetch": "^3.0.0" }, diff --git a/src/views/SignIn/SignIn.tsx b/src/views/SignIn/SignIn.tsx index 13168eab3e..7e68879c90 100644 --- a/src/views/SignIn/SignIn.tsx +++ b/src/views/SignIn/SignIn.tsx @@ -24,7 +24,7 @@ import { Card } from "material"; import { errorAlerter, uuid } from "misc"; import { post } from "requests"; import cached from "cached"; -import { Md5 } from "ts-md5/dist/md5"; +import { Md5 } from "ts-md5/dist/esm/md5"; import { useUser } from "hooks"; import { SocialLoginButtons } from "SocialLoginButtons"; diff --git a/yarn.lock b/yarn.lock index 63198898de..201a6065cd 100644 --- a/yarn.lock +++ b/yarn.lock @@ -10263,10 +10263,10 @@ ts-loader@^9.4.2: micromatch "^4.0.0" semver "^7.3.4" -ts-md5@=1.2.11: - version "1.2.11" - resolved "https://registry.yarnpkg.com/ts-md5/-/ts-md5-1.2.11.tgz#0bbdf884eecf7da3952fe8671a109d7e55d322c6" - integrity sha512-vAwy9rEuRE6a8xa1MavIVkLFyyU0ydk4CLMFA5vOVccmQKLOuGb/BHm3oEN7XHf2FoqS+z0pSvhaad/ombd1Vg== +ts-md5@=1.3.1: + version "1.3.1" + resolved "https://registry.yarnpkg.com/ts-md5/-/ts-md5-1.3.1.tgz#f5b860c0d5241dd9bb4e909dd73991166403f511" + integrity sha512-DiwiXfwvcTeZ5wCE0z+2A9EseZsztaiZtGrtSaY5JOD7ekPnR/GoIVD5gXZAlK9Na9Kvpo9Waz5rW64WKAWApg== ts-toolbelt@^9.6.0: version "9.6.0"