mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-15 04:32:13 +00:00
chore: remove windows-1251 dep
This commit is contained in:
parent
d454d0c00b
commit
9740726652
3 changed files with 2 additions and 8 deletions
|
@ -58,7 +58,6 @@
|
||||||
"react-router-dom": "^6.22.3",
|
"react-router-dom": "^6.22.3",
|
||||||
"typeorm": "^0.3.20",
|
"typeorm": "^0.3.20",
|
||||||
"user-agents": "^1.1.193",
|
"user-agents": "^1.1.193",
|
||||||
"windows-1251": "^3.0.4",
|
|
||||||
"winston": "^3.13.0",
|
"winston": "^3.13.0",
|
||||||
"yaml": "^2.4.1"
|
"yaml": "^2.4.1"
|
||||||
},
|
},
|
||||||
|
|
|
@ -9,7 +9,7 @@ import { JSDOM } from "jsdom";
|
||||||
|
|
||||||
import { format, parse, sub } from "date-fns";
|
import { format, parse, sub } from "date-fns";
|
||||||
import { ru } from "date-fns/locale";
|
import { ru } from "date-fns/locale";
|
||||||
import { decode } from "windows-1251";
|
|
||||||
import { onlinefixFormatter } from "@main/helpers";
|
import { onlinefixFormatter } from "@main/helpers";
|
||||||
import makeFetchCookie from "fetch-cookie";
|
import makeFetchCookie from "fetch-cookie";
|
||||||
import { QueryDeepPartialEntity } from "typeorm/query-builder/QueryPartialEntity";
|
import { QueryDeepPartialEntity } from "typeorm/query-builder/QueryPartialEntity";
|
||||||
|
@ -93,7 +93,7 @@ export const getNewRepacksFromOnlineFix = async (
|
||||||
const uploadDateText = gameDocument.querySelector("time")?.textContent;
|
const uploadDateText = gameDocument.querySelector("time")?.textContent;
|
||||||
if (!uploadDateText) return;
|
if (!uploadDateText) return;
|
||||||
|
|
||||||
let decodedDateText = decode(uploadDateText);
|
let decodedDateText = uploadDateText;
|
||||||
|
|
||||||
// "Вчера" means yesterday.
|
// "Вчера" means yesterday.
|
||||||
if (decodedDateText.includes("Вчера")) {
|
if (decodedDateText.includes("Вчера")) {
|
||||||
|
|
|
@ -5993,11 +5993,6 @@ which@^2.0.1, which@^2.0.2:
|
||||||
dependencies:
|
dependencies:
|
||||||
isexe "^2.0.0"
|
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:
|
winston-transport@^4.7.0:
|
||||||
version "4.7.0"
|
version "4.7.0"
|
||||||
resolved "https://registry.npmjs.org/winston-transport/-/winston-transport-4.7.0.tgz"
|
resolved "https://registry.npmjs.org/winston-transport/-/winston-transport-4.7.0.tgz"
|
||||||
|
|
Loading…
Reference in a new issue