Add TopLiba (#1003)

* test

* cleanup

deleted unused `fetchFile` import
replaced fetch with `fetchApi`

* eslint

* fix

* fix multi

* Hmm, what to do next.

* test URLSearchParams

* fix
This commit is contained in:
Rider21
2024-06-30 07:28:11 +03:00
committed by GitHub
parent 938e3b16a3
commit fae73534dd
121 changed files with 10534 additions and 8079 deletions
+2 -1
View File
@@ -1,3 +1,4 @@
/* global Buffer */
import * as fs from 'fs';
import * as path from 'path';
import sizeOf from 'image-size';
@@ -83,7 +84,7 @@ const notAvailableImage = fs.readFileSync(
const exist = fs.existsSync(icon);
if (!exist) {
const dir = icon.match(/^.*[\\\/]/)[0];
const dir = path.dirname(icon);
fs.mkdirSync(dir, { recursive: true });
}