Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c9ea424

Browse files
committedJul 6, 2022
feat: new build
1 parent 9a9f150 commit c9ea424

File tree

18 files changed

+121
-75
lines changed

18 files changed

+121
-75
lines changed
 

‎CHANGELOG.md

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,30 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
99

10-
#### 1.0.0 - 2022-06-20
10+
## [v1.0.2](https://github.com/consumet/consumet-extentions/compare/v1.0.1...v1.0.2) - 2022-07-06
1111

12+
### Commits
13+
14+
- build(deps-dev): bump ts-jest from 28.0.4 to 28.0.5 [`d9dc1b1`](https://github.com/consumet/consumet-extentions/commit/d9dc1b1eee719ed5a201907da23e57cd8e1c8471)
15+
- build(deps-dev): bump typescript from 4.6.4 to 4.7.4 [`790158c`](https://github.com/consumet/consumet-extentions/commit/790158c1fb3b87759a92df53d3b1c2c616208b3b)
16+
- new dist build [`3c94ba1`](https://github.com/consumet/consumet-extentions/commit/3c94ba11c23c0144f6c657f14c9a43e9a0965aaa)
17+
- FIX: added a package-lock.json [`6e1e2e2`](https://github.com/consumet/consumet-extentions/commit/6e1e2e276c229504b83cd79b0301e4d7d2521859)
18+
- FIX: fixed npm-publish.yml [`60fe7be`](https://github.com/consumet/consumet-extentions/commit/60fe7be235b24cfeb3a52b771fe3809a57f63498)
19+
- FIX: fixed npm-publish.yml [`e2e2150`](https://github.com/consumet/consumet-extentions/commit/e2e2150ad6cb23752e0433a8ad034264f53c698a)
20+
21+
22+
## [v1.0.1](https://github.com/consumet/consumet-extentions/compare/v1.0.0...v1.0.1) - 2022-06-22
23+
24+
### Commits
25+
26+
- [skip ci] fixed providers-list [`8cee088`](https://github.com/consumet/consumet-extentions/commit/8cee088102e31867f1084c726d74b6738f393b24)
27+
- feat [skip ci]: refactored search interface [`a7403b5`](https://github.com/consumet/consumet-extentions/commit/a7403b5d4ab7f9fb594019f7ec1f5d96d70e6886)
28+
- feat [skip ci]: added new contributing guide [`8d8fafb`](https://github.com/consumet/consumet-extentions/commit/8d8fafb2087abb003c83c8f1ac01ee98eda53fb3)
29+
30+
## v1.0.0 - 2022-06-19
31+
32+
### Commits
33+
34+
- feat: fix doc + issue template + npm init scope [`efeaee9`](https://github.com/consumet/consumet-extentions/commit/efeaee913d8a602cfb60468d4c5b1f46b24b8d26)
1235
- started zlibrary provider [`c33c055`](https://github.com/consumet/consumet-extentions/commit/c33c055b3a2065e75f4571003e0267e7c0d240a5)
13-
- added unit testing for all current providers [`1b79835`](https://github.com/consumet/consumet-extentions/commit/1b79835be747c8fbaee0656eeb0760c364cebc75)
14-
- added `readlightnovels`, `gogoanime`, `getcomics`, `libgen` and `mangadex` providers. [`33a8cd9`](https://github.com/consumet/consumet-extentions/commit/33a8cd9e8d1a909cef0ea7c32fcc696a600981fc)
36+
- 🆕 Feat: Finish Libgen & Libgen Tested [`1b79835`](https://github.com/consumet/consumet-extentions/commit/1b79835be747c8fbaee0656eeb0760c364cebc75)

‎dist/providers/books/index.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import Libgen from './libgen';
2+
import ZLibrary from './zLibrary';
23
declare const _default: {
34
Libgen: typeof Libgen;
5+
ZLibrary: typeof ZLibrary;
46
};
57
export default _default;

‎dist/providers/books/index.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎dist/providers/books/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎dist/providers/books/zLibrary.d.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1-
import { BookParser } from '../../models';
1+
import { BookParser, ZLibrary } from '../../models';
22
declare class Zlibrary extends BookParser {
33
protected readonly baseUrl = "https://3lib.net";
44
readonly name = "ZLibrary";
55
protected classPath: string;
66
protected logo: string;
77
isWorking: boolean;
8-
search: (bookUrl: string) => Promise<void>;
8+
private headers;
9+
search: (bookTitle: string, page?: number) => Promise<{
10+
containers: ZLibrary[];
11+
page: number;
12+
} | undefined>;
913
}
1014
export default Zlibrary;

‎dist/providers/books/zLibrary.js

Lines changed: 61 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎dist/providers/books/zLibrary.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎dist/utils/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { GogoCDN, StreamSB, VidCloud, MixDrop } from './extractors';
22
import { USER_AGENT, splitAuthor, floorID, formatTitle, genElement, capitalizeFirstLetter } from './utils';
33
import { parsePostInfo } from './getComics';
4-
import { getSize, splitStar } from './zLibrary';
5-
export { USER_AGENT, GogoCDN, StreamSB, splitAuthor, floorID, formatTitle, parsePostInfo, getSize, splitStar, genElement, capitalizeFirstLetter, VidCloud, MixDrop, };
4+
import { countDivs } from './zLibrary';
5+
export { USER_AGENT, GogoCDN, StreamSB, splitAuthor, floorID, formatTitle, parsePostInfo, genElement, capitalizeFirstLetter, countDivs, VidCloud, MixDrop, };

‎dist/utils/index.js

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎dist/utils/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎dist/utils/zLibrary.d.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
export declare const getSize: (s: string) => string;
2-
export declare const splitStar: (s: string) => {
3-
rating: string;
4-
quality: string;
5-
};
1+
export declare const countDivs: (s: string) => number;

‎dist/utils/zLibrary.js

Lines changed: 7 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎dist/utils/zLibrary.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎docs/guides/books.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,6 @@ const bookProvider = BOOKS.<providerName>();
1818
This list is in alphabetical order. (except the sub bullet points)
1919

2020
- [Libgen](../providers/libgen.md)
21+
- [zLibrary](../providers/zlibrary.md)
2122

2223
<p align="end">(<a href="https://github.com/consumet/extensions/blob/master/docs">back to table of contents</a>)</p>

‎docs/providers/libgen.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,6 @@ Libgen.isNSFW; // if NSFW
7171
* @type {boolean}
7272
*/
7373
Libgen.isWorking; // if provider is working
74-
```
74+
```
75+
76+
<p align="end">(<a href="https://github.com/consumet/extensions/blob/master/docs/guides/books.md#">back to book providers list</a>)</p>

‎docs/providers/zLibrary.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,6 @@ ZLibrary.isNSFW; // if NSFW
3232
* @type {boolean}
3333
*/
3434
Libgen.isWorking; // if provider is working
35-
```
35+
```
36+
37+
<p align="end">(<a href="https://github.com/consumet/extensions/blob/master/docs/guides/books.md#">back to book providers list</a>)</p>

‎package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,4 @@
5959
"test": "test",
6060
"lib": "src"
6161
}
62-
}
62+
}

‎test/books/zLibrary.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ jest.setTimeout(120000);
55
test('should not be empty', async () => {
66
const zlib = new BOOKS.ZLibrary();
77
const res = await zlib.search('Infinite Jest');
8-
expect(res.containers.length).not.toEqual(0);
8+
expect(res?.containers.length).not.toEqual(0);
99
});

0 commit comments

Comments
 (0)
Please sign in to comment.