Comparing version 2.0.1 to 2.0.2
@@ -42,3 +42,3 @@ import * as t from './types'; | ||
*/ | ||
ph(query: string): Promise<t.PhDlResult>; | ||
ph(query: string, page?: number, thumbSize?: string): Promise<t.PhDlResult>; | ||
/** | ||
@@ -45,0 +45,0 @@ * Download a PH video. |
@@ -189,7 +189,9 @@ "use strict"; | ||
*/ | ||
_ARQ.prototype.ph = function (query) { | ||
_ARQ.prototype.ph = function (query, page, thumbSize) { | ||
if (page === void 0) { page = 1; } | ||
if (thumbSize === void 0) { thumbSize = 'small'; } | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, this.fetch('ph', { query: query })]; | ||
case 0: return [4 /*yield*/, this.fetch('ph', { query: query, page: page, thumbSize: thumbSize })]; | ||
case 1: return [2 /*return*/, _a.sent()]; | ||
@@ -196,0 +198,0 @@ } |
{ | ||
"name": "arq-js", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -27,18 +27,2 @@ # ARQJS | ||
## Features as of now | ||
1. Deezer | ||
2. Jiosaavn | ||
3. Youtube | ||
4. PH | ||
5. Reddit | ||
6. Torrent | ||
7. Wallpapers | ||
8. Urban dictionary | ||
9. Luna chat AI | ||
10. Lyrics | ||
11. Wikipedia | ||
12. NSFW image classification | ||
13. Optical Character Recognition (OCR) | ||
## List of projects using this lib | ||
@@ -45,0 +29,0 @@ |
@@ -96,4 +96,8 @@ import { encode } from 'querystring'; | ||
*/ | ||
async ph(query: string): Promise<t.PhDlResult> { | ||
return await this.fetch('ph', { query }); | ||
async ph( | ||
query: string, | ||
page: number = 1, | ||
thumbSize: string = 'small', | ||
): Promise<t.PhDlResult> { | ||
return await this.fetch('ph', { query, page, thumbSize }); | ||
} | ||
@@ -100,0 +104,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28662
1
862
35