narou 0.8.0 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.browser.d.ts +35 -35
- package/dist/index.browser.js +82 -82
- package/dist/index.common.d.ts +14 -14
- package/dist/index.common.js +34 -34
- package/dist/index.d.ts +42 -42
- package/dist/index.js +90 -90
- package/dist/narou-fetch.d.ts +12 -12
- package/dist/narou-fetch.js +45 -45
- package/dist/narou-jsonp.d.ts +9 -9
- package/dist/narou-jsonp.js +23 -23
- package/dist/narou-ranking-results.d.ts +9 -9
- package/dist/narou-ranking-results.js +2 -2
- package/dist/narou-search-results.d.ts +130 -130
- package/dist/narou-search-results.js +62 -62
- package/dist/narou.d.ts +25 -25
- package/dist/narou.js +29 -29
- package/dist/params.d.ts +323 -323
- package/dist/params.js +246 -246
- package/dist/ranking-history.d.ts +13 -13
- package/dist/ranking-history.js +13 -13
- package/dist/ranking.d.ts +45 -45
- package/dist/ranking.js +86 -86
- package/dist/search-builder-r18.d.ts +28 -28
- package/dist/search-builder-r18.js +44 -44
- package/dist/search-builder.d.ts +219 -219
- package/dist/search-builder.js +380 -380
- package/dist/user-search.d.ts +62 -62
- package/dist/user-search.js +93 -93
- package/dist/util/jsonp.d.ts +16 -16
- package/dist/util/jsonp.js +45 -45
- package/dist/util/type.d.ts +3 -3
- package/dist/util/type.js +2 -2
- package/dist/util/unzipp.d.ts +3 -3
- package/dist/util/unzipp.js +11 -11
- package/dist.esm/index.browser.js +86 -0
- package/dist.esm/index.browser.js.map +1 -0
- package/dist.esm/index.common.js +38 -0
- package/dist.esm/index.common.js.map +1 -0
- package/dist.esm/index.js +94 -0
- package/dist.esm/index.js.map +1 -0
- package/dist.esm/narou-fetch.js +49 -0
- package/dist.esm/narou-fetch.js.map +1 -0
- package/dist.esm/narou-jsonp.js +27 -0
- package/dist.esm/narou-jsonp.js.map +1 -0
- package/dist.esm/narou-ranking-results.js +3 -0
- package/dist.esm/narou-ranking-results.js.map +1 -0
- package/dist.esm/narou-search-results.js +63 -0
- package/dist.esm/narou-search-results.js.map +1 -0
- package/dist.esm/narou.js +33 -0
- package/dist.esm/narou.js.map +1 -0
- package/dist.esm/params.js +247 -0
- package/dist.esm/params.js.map +1 -0
- package/dist.esm/ranking-history.js +14 -0
- package/dist.esm/ranking-history.js.map +1 -0
- package/dist.esm/ranking.js +90 -0
- package/dist.esm/ranking.js.map +1 -0
- package/dist.esm/search-builder-r18.js +45 -0
- package/dist.esm/search-builder-r18.js.map +1 -0
- package/dist.esm/search-builder.js +381 -0
- package/dist.esm/search-builder.js.map +1 -0
- package/dist.esm/user-search.js +94 -0
- package/dist.esm/user-search.js.map +1 -0
- package/dist.esm/util/jsonp.js +46 -0
- package/dist.esm/util/jsonp.js.map +1 -0
- package/dist.esm/util/type.js +3 -0
- package/dist.esm/util/type.js.map +1 -0
- package/dist.esm/util/unzipp.js +12 -0
- package/dist.esm/util/unzipp.js.map +1 -0
- package/package.json +1 -1
- package/src/user-search.ts +109 -109
package/dist/narou.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const narou_search_results_1 = require("./narou-search-results");
|
|
4
|
-
/**
|
|
5
|
-
* なろう小説APIへのリクエストを実行する
|
|
6
|
-
* @class NarouNovel
|
|
7
|
-
* @private
|
|
8
|
-
*/
|
|
9
|
-
class NarouNovel {
|
|
10
|
-
async executeSearch(params, endpoint = "https://api.syosetu.com/novelapi/api/") {
|
|
11
|
-
return new narou_search_results_1.default(await this.execute(params, endpoint), params);
|
|
12
|
-
}
|
|
13
|
-
async executeNovel(params) {
|
|
14
|
-
return await this.executeSearch(params, "https://api.syosetu.com/novelapi/api/");
|
|
15
|
-
}
|
|
16
|
-
async executeNovel18(params) {
|
|
17
|
-
return await this.executeSearch(params, "https://api.syosetu.com/novel18api/api/");
|
|
18
|
-
}
|
|
19
|
-
async executeRanking(params) {
|
|
20
|
-
return await this.execute(params, "https://api.syosetu.com/rank/rankget/");
|
|
21
|
-
}
|
|
22
|
-
async executeRankingHistory(params) {
|
|
23
|
-
return await this.execute(params, "https://api.syosetu.com/rank/rankin/");
|
|
24
|
-
}
|
|
25
|
-
async executeUserSearch(params) {
|
|
26
|
-
return await this.execute(params, "https://api.syosetu.com/userapi/api/");
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
exports.default = NarouNovel;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const narou_search_results_1 = require("./narou-search-results");
|
|
4
|
+
/**
|
|
5
|
+
* なろう小説APIへのリクエストを実行する
|
|
6
|
+
* @class NarouNovel
|
|
7
|
+
* @private
|
|
8
|
+
*/
|
|
9
|
+
class NarouNovel {
|
|
10
|
+
async executeSearch(params, endpoint = "https://api.syosetu.com/novelapi/api/") {
|
|
11
|
+
return new narou_search_results_1.default(await this.execute(params, endpoint), params);
|
|
12
|
+
}
|
|
13
|
+
async executeNovel(params) {
|
|
14
|
+
return await this.executeSearch(params, "https://api.syosetu.com/novelapi/api/");
|
|
15
|
+
}
|
|
16
|
+
async executeNovel18(params) {
|
|
17
|
+
return await this.executeSearch(params, "https://api.syosetu.com/novel18api/api/");
|
|
18
|
+
}
|
|
19
|
+
async executeRanking(params) {
|
|
20
|
+
return await this.execute(params, "https://api.syosetu.com/rank/rankget/");
|
|
21
|
+
}
|
|
22
|
+
async executeRankingHistory(params) {
|
|
23
|
+
return await this.execute(params, "https://api.syosetu.com/rank/rankin/");
|
|
24
|
+
}
|
|
25
|
+
async executeUserSearch(params) {
|
|
26
|
+
return await this.execute(params, "https://api.syosetu.com/userapi/api/");
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
exports.default = NarouNovel;
|
|
30
30
|
//# sourceMappingURL=narou.js.map
|