changes
This commit is contained in:
@@ -32,7 +32,8 @@
|
|||||||
"react": "^17.0.1",
|
"react": "^17.0.1",
|
||||||
"react-dom": "^17.0.1",
|
"react-dom": "^17.0.1",
|
||||||
"react-hooks-worker": "^1.0.0",
|
"react-hooks-worker": "^1.0.0",
|
||||||
"sharp": "^0.28.1"
|
"sharp": "^0.28.1",
|
||||||
|
"stream-json": "^1.7.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/cli": "^7.13.10",
|
"@babel/cli": "^7.13.10",
|
||||||
|
|||||||
@@ -14,20 +14,18 @@ router.route("/getComicCovers").post(async (req: Request, res: Response) => {
|
|||||||
req.body.walkedFolders,
|
req.body.walkedFolders,
|
||||||
);
|
);
|
||||||
return res.json(foo);
|
return res.json(foo);
|
||||||
// const extractedData = await extractArchive(req.body);
|
|
||||||
// if (
|
// if (
|
||||||
// _.isArray(extractedData) &&
|
// _.isArray(foo) &&
|
||||||
// !_.isUndefined(req.body.paginationOptions.pageLimit)
|
// !_.isUndefined(req.body.extractionOptions.paginationOptions.pageLimit)
|
||||||
// ) {
|
// ) {
|
||||||
// const pageCount = Math.ceil(
|
// const pageCount = Math.ceil(
|
||||||
// extractedData.length / req.body.paginationOptions.pageLimit,
|
// foo.length / req.body.extractionOptions.paginationOptions.pageLimit,
|
||||||
// );
|
// );
|
||||||
|
|
||||||
// return res.json({
|
// return res.json({
|
||||||
// object: "list",
|
|
||||||
// has_more: paginate.hasNextPages(req)(pageCount),
|
// has_more: paginate.hasNextPages(req)(pageCount),
|
||||||
// pageCount,
|
// pageCount,
|
||||||
// itemCount: extractedData.length,
|
// itemCount: foo.length,
|
||||||
// extractedData,
|
// extractedData,
|
||||||
// });
|
// });
|
||||||
// }
|
// }
|
||||||
|
|||||||
12
yarn.lock
12
yarn.lock
@@ -11212,6 +11212,18 @@ stealthy-require@^1.1.1:
|
|||||||
resolved "https://registry.yarnpkg.com/stealthy-require/-/stealthy-require-1.1.1.tgz#35b09875b4ff49f26a777e509b3090a3226bf24b"
|
resolved "https://registry.yarnpkg.com/stealthy-require/-/stealthy-require-1.1.1.tgz#35b09875b4ff49f26a777e509b3090a3226bf24b"
|
||||||
integrity sha1-NbCYdbT/SfJqd35QmzCQoyJr8ks=
|
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:
|
streamz@~1.8.10:
|
||||||
version "1.8.12"
|
version "1.8.12"
|
||||||
resolved "https://registry.yarnpkg.com/streamz/-/streamz-1.8.12.tgz#e022bf773fb0093de81f3cd2105390bbc9231613"
|
resolved "https://registry.yarnpkg.com/streamz/-/streamz-1.8.12.tgz#e022bf773fb0093de81f3cd2105390bbc9231613"
|
||||||
|
|||||||
Reference in New Issue
Block a user