UNPKG

narou

Version:
62 lines (61 loc) 1.8 kB
"use strict"; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __hasOwnProp = Object.prototype.hasOwnProperty; var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); // src/narou-search-results.ts var narou_search_results_exports = {}; __export(narou_search_results_exports, { End: () => End, NovelType: () => NovelType, default: () => NarouSearchResults }); module.exports = __toCommonJS(narou_search_results_exports); var NarouSearchResults = class { /** * @constractor * @private */ constructor([header, ...result], params) { const count = header.allcount; const limit = params.lim ?? 20; const start = params.st ?? 0; this.allcount = count; this.limit = limit; this.start = start; this.page = start / limit; this.length = result.length; this.values = result; } }; var NovelType = { /** 連載 */ Rensai: 1, /** 短編 */ Tanpen: 2 }; var End = { /** 短編小説と完結済小説 */ KanketsuOrTanpen: 0, /** 連載中 */ Rensai: 1 }; // Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = { End, NovelType }); //# sourceMappingURL=narou-search-results.cjs.map