This commit is contained in:
2021-05-06 13:00:36 -07:00
parent 13c029a123
commit f5823eb616
3 changed files with 18 additions and 7 deletions

View File

@@ -32,7 +32,8 @@
"react": "^17.0.1",
"react-dom": "^17.0.1",
"react-hooks-worker": "^1.0.0",
"sharp": "^0.28.1"
"sharp": "^0.28.1",
"stream-json": "^1.7.1"
},
"devDependencies": {
"@babel/cli": "^7.13.10",

View File

@@ -14,20 +14,18 @@ router.route("/getComicCovers").post(async (req: Request, res: Response) => {
req.body.walkedFolders,
);
return res.json(foo);
// const extractedData = await extractArchive(req.body);
// if (
// _.isArray(extractedData) &&
// !_.isUndefined(req.body.paginationOptions.pageLimit)
// _.isArray(foo) &&
// !_.isUndefined(req.body.extractionOptions.paginationOptions.pageLimit)
// ) {
// const pageCount = Math.ceil(
// extractedData.length / req.body.paginationOptions.pageLimit,
// foo.length / req.body.extractionOptions.paginationOptions.pageLimit,
// );
// return res.json({
// object: "list",
// has_more: paginate.hasNextPages(req)(pageCount),
// pageCount,
// itemCount: extractedData.length,
// itemCount: foo.length,
// extractedData,
// });
// }

View File

@@ -11212,6 +11212,18 @@ stealthy-require@^1.1.1:
resolved "https://registry.yarnpkg.com/stealthy-require/-/stealthy-require-1.1.1.tgz#35b09875b4ff49f26a777e509b3090a3226bf24b"
integrity sha1-NbCYdbT/SfJqd35QmzCQoyJr8ks=
stream-chain@^2.2.3:
version "2.2.4"
resolved "https://registry.yarnpkg.com/stream-chain/-/stream-chain-2.2.4.tgz#2e5e9858e00d25ebaf7e4339e8328ddcab5facad"
integrity sha512-9lsl3YM53V5N/I1C2uJtc3Kavyi3kNYN83VkKb/bMWRk7D9imiFyUPYa0PoZbLohSVOX1mYE9YsmwObZUsth6Q==
stream-json@^1.7.1:
version "1.7.1"
resolved "https://registry.yarnpkg.com/stream-json/-/stream-json-1.7.1.tgz#ec7e414c2eba456c89a4b4e5223794eabc3860c4"
integrity sha512-I7g0IDqvdJXbJ279/D3ZoTx0VMhmKnEF7u38CffeWdF8bfpMPsLo+5fWnkNjO2GU/JjWaRjdH+zmH03q+XGXFw==
dependencies:
stream-chain "^2.2.3"
streamz@~1.8.10:
version "1.8.12"
resolved "https://registry.yarnpkg.com/streamz/-/streamz-1.8.12.tgz#e022bf773fb0093de81f3cd2105390bbc9231613"