@ejnshtein/nyaasi
Advanced tools
Comparing version 2.1.3 to 2.2.0
import { RequestOptions, RequestResult } from '@ejnshtein/smol-request'; | ||
import { AgentOptions, Cookie, NyaaApiRequestResult, NyaaRequestOptions } from './types'; | ||
import { AgentOptions, Cookie, NyaaApiRequestResult, NyaaRequestOptions } from '../types'; | ||
export declare class Agent { | ||
@@ -4,0 +4,0 @@ host: string; |
@@ -1,4 +0,5 @@ | ||
export { Agent } from './Agent'; | ||
export { Nyaa } from './Nyaa'; | ||
export { NyaaRss } from './NyaaRss'; | ||
export * from './Agent'; | ||
export * from './Nyaa'; | ||
export * from './NyaaRss'; | ||
export * as Scraper from './Scraper'; | ||
export * from '../types/index'; |
@@ -14,2 +14,5 @@ "use strict"; | ||
}); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
@@ -23,9 +26,7 @@ if (mod && mod.__esModule) return mod; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Scraper = exports.NyaaRss = exports.Nyaa = exports.Agent = void 0; | ||
var Agent_1 = require("./Agent"); | ||
Object.defineProperty(exports, "Agent", { enumerable: true, get: function () { return Agent_1.Agent; } }); | ||
var Nyaa_1 = require("./Nyaa"); | ||
Object.defineProperty(exports, "Nyaa", { enumerable: true, get: function () { return Nyaa_1.Nyaa; } }); | ||
var NyaaRss_1 = require("./NyaaRss"); | ||
Object.defineProperty(exports, "NyaaRss", { enumerable: true, get: function () { return NyaaRss_1.NyaaRss; } }); | ||
exports.Scraper = void 0; | ||
__exportStar(require("./Agent"), exports); | ||
__exportStar(require("./Nyaa"), exports); | ||
__exportStar(require("./NyaaRss"), exports); | ||
exports.Scraper = __importStar(require("./Scraper")); | ||
__exportStar(require("../types/index"), exports); |
@@ -1,4 +0,4 @@ | ||
import { AgentOptions, GetTorrentOptions, NyaaApiRequestResult, NyaaRequestOptions, SearchOptions } from './types'; | ||
import { AgentOptions, GetTorrentOptions, NyaaApiRequestResult, NyaaRequestOptions, SearchOptions } from '../types'; | ||
import { Agent } from './Agent'; | ||
import { Profile, SearchResult, ViewTorrent } from './types/nyaa'; | ||
import { Profile, SearchResult, ViewTorrent } from '../types/nyaa'; | ||
export declare class Nyaa { | ||
@@ -5,0 +5,0 @@ options: AgentOptions; |
@@ -1,2 +0,2 @@ | ||
import { Comment, Profile, SearchResult, ViewTorrent } from './types/nyaa'; | ||
import { Comment, Entry, Profile, SearchResult, ViewTorrent } from '../types/nyaa'; | ||
export declare const getCSRFToken: (html: string) => string; | ||
@@ -7,1 +7,2 @@ export declare const parseProfile: (html: string) => Profile; | ||
export declare const parseTorrent: (id: number, html: string, host?: string) => ViewTorrent; | ||
export declare function getEntry(entry: string): Entry; |
@@ -6,3 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.parseTorrent = exports.parseSearch = exports.parseComments = exports.parseProfile = exports.getCSRFToken = void 0; | ||
exports.getEntry = exports.parseTorrent = exports.parseSearch = exports.parseComments = exports.parseProfile = exports.getCSRFToken = void 0; | ||
const cheerio_1 = __importDefault(require("cheerio")); | ||
@@ -158,1 +158,2 @@ const bytes_iec_1 = __importDefault(require("bytes-iec")); | ||
} | ||
exports.getEntry = getEntry; |
{ | ||
"name": "@ejnshtein/nyaasi", | ||
"version": "2.1.3", | ||
"version": "2.2.0", | ||
"description": "Nyaa.si api wrapper for Node written in Typescript", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
30002
599
0