Comparing version 2.1.0 to 2.1.1
@@ -84,3 +84,3 @@ import * as t from './types'; | ||
*/ | ||
tmdb(query: string): Promise<t.TmdbResult>; | ||
tmdb(query: string, tmdbID?: number): Promise<t.TmdbResult>; | ||
/** | ||
@@ -97,4 +97,5 @@ * Generate Telegram quote stickers. | ||
translate(text: string, destLangCode?: string): Promise<t.TranslateResult>; | ||
pypi(query: string): Promise<t.PyPiResult>; | ||
} | ||
export declare const ARQ: typeof _ARQ; | ||
export {}; |
@@ -334,7 +334,8 @@ "use strict"; | ||
*/ | ||
_ARQ.prototype.tmdb = function (query) { | ||
_ARQ.prototype.tmdb = function (query, tmdbID) { | ||
if (tmdbID === void 0) { tmdbID = 0; } | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, this.fetch('tmdb', { query: query })]; | ||
case 0: return [4 /*yield*/, this.fetch('tmdb', { query: query, tmdbID: tmdbID })]; | ||
case 1: return [2 /*return*/, _a.sent()]; | ||
@@ -382,4 +383,14 @@ } | ||
}; | ||
_ARQ.prototype.pypi = function (query) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, this.fetch('pypi', { query: query })]; | ||
case 1: return [2 /*return*/, _a.sent()]; | ||
} | ||
}); | ||
}); | ||
}; | ||
return _ARQ; | ||
}()); | ||
exports.ARQ = _ARQ; |
@@ -162,1 +162,22 @@ export declare type LunaResult = string; | ||
} | ||
export interface PyPiResult { | ||
name: string; | ||
version: string; | ||
license: string; | ||
description: string | null; | ||
size: string; | ||
uploadTime: string; | ||
author: string; | ||
authorEmail: string; | ||
keywords: string; | ||
requirements: string[]; | ||
minPyVersion: string; | ||
homepage: string | null; | ||
bugTrackURL: string | null; | ||
docsURL: string | null; | ||
pypiURL: string; | ||
releaseURL: string; | ||
projectURLS: { | ||
[key: string]: string; | ||
}; | ||
} |
{ | ||
"name": "arq-js", | ||
"version": "2.1.0", | ||
"description": "", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"scripts": { | ||
"build": "tsc", | ||
"prepare": "npm run build" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/rojserbest/arq-js.git" | ||
}, | ||
"author": "Roj Serbest <rojserbest@gmail.com>", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/rojserbest/arq-js/issues" | ||
}, | ||
"homepage": "https://github.com/rojserbest/arq-js", | ||
"dependencies": { | ||
"node-fetch": "^2.6.1" | ||
}, | ||
"devDependencies": { | ||
"@types/node-fetch": "^2.5.10", | ||
"typescript": "^4.2.4" | ||
} | ||
"name": "arq-js", | ||
"version": "2.1.1", | ||
"description": "", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"scripts": { | ||
"build": "tsc", | ||
"prepare": "npm run build" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/rojserbest/arq-js.git" | ||
}, | ||
"author": "Roj Serbest <rojserbest@gmail.com>", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/rojserbest/arq-js/issues" | ||
}, | ||
"homepage": "https://github.com/rojserbest/arq-js", | ||
"dependencies": { | ||
"node-fetch": "^2.6.1" | ||
}, | ||
"devDependencies": { | ||
"@types/node-fetch": "^2.5.10", | ||
"typescript": "^4.2.4" | ||
} | ||
} |
@@ -184,4 +184,4 @@ import { encode } from 'querystring'; | ||
*/ | ||
async tmdb(query: string): Promise<t.TmdbResult> { | ||
return await this.fetch('tmdb', { query }); | ||
async tmdb(query: string, tmdbID: number = 0): Promise<t.TmdbResult> { | ||
return await this.fetch('tmdb', { query, tmdbID }); | ||
} | ||
@@ -213,4 +213,8 @@ | ||
} | ||
async pypi(query: string): Promise<t.PyPiResult> { | ||
return await this.fetch('pypi', { query }); | ||
} | ||
} | ||
export const ARQ = _ARQ; |
@@ -182,1 +182,21 @@ export type LunaResult = string; | ||
} | ||
export interface PyPiResult { | ||
name: string; | ||
version: string; | ||
license: string; | ||
description: string | null; | ||
size: string; | ||
uploadTime: string; | ||
author: string; | ||
authorEmail: string; | ||
keywords: string; | ||
requirements: string[]; | ||
minPyVersion: string; | ||
homepage: string | null; | ||
bugTrackURL: string | null; | ||
docsURL: string | null; | ||
pypiURL: string; | ||
releaseURL: string; | ||
projectURLS: { [key: string]: string }; | ||
} |
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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
34297
1056