mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-11 13:56:16 +00:00
chore: remove windows-1251 dep
This commit is contained in:
@@ -58,7 +58,6 @@
|
||||
"react-router-dom": "^6.22.3",
|
||||
"typeorm": "^0.3.20",
|
||||
"user-agents": "^1.1.193",
|
||||
"windows-1251": "^3.0.4",
|
||||
"winston": "^3.13.0",
|
||||
"yaml": "^2.4.1"
|
||||
},
|
||||
|
||||
@@ -9,7 +9,7 @@ import { JSDOM } from "jsdom";
|
||||
|
||||
import { format, parse, sub } from "date-fns";
|
||||
import { ru } from "date-fns/locale";
|
||||
import { decode } from "windows-1251";
|
||||
|
||||
import { onlinefixFormatter } from "@main/helpers";
|
||||
import makeFetchCookie from "fetch-cookie";
|
||||
import { QueryDeepPartialEntity } from "typeorm/query-builder/QueryPartialEntity";
|
||||
@@ -93,7 +93,7 @@ export const getNewRepacksFromOnlineFix = async (
|
||||
const uploadDateText = gameDocument.querySelector("time")?.textContent;
|
||||
if (!uploadDateText) return;
|
||||
|
||||
let decodedDateText = decode(uploadDateText);
|
||||
let decodedDateText = uploadDateText;
|
||||
|
||||
// "Вчера" means yesterday.
|
||||
if (decodedDateText.includes("Вчера")) {
|
||||
|
||||
@@ -5993,11 +5993,6 @@ which@^2.0.1, which@^2.0.2:
|
||||
dependencies:
|
||||
isexe "^2.0.0"
|
||||
|
||||
windows-1251@^3.0.4:
|
||||
version "3.0.4"
|
||||
resolved "https://registry.npmjs.org/windows-1251/-/windows-1251-3.0.4.tgz"
|
||||
integrity sha512-H6W68MVertlR74xVuwa2pdQ1jR5qksk+oZX6QXFhL5OYj/ZZxViob8UyGLfXPwsCijuaV7NUYOYkK0oXSaWW5g==
|
||||
|
||||
winston-transport@^4.7.0:
|
||||
version "4.7.0"
|
||||
resolved "https://registry.npmjs.org/winston-transport/-/winston-transport-4.7.0.tgz"
|
||||
|
||||
Reference in New Issue
Block a user