animu.js
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -0,1 +1,3 @@ | ||
const { version } = require('../index'); | ||
/** | ||
@@ -13,4 +15,2 @@ * The main client to interact with. | ||
{ | ||
if (!userAgent) return; | ||
/** | ||
@@ -50,3 +50,3 @@ * The User Agent that you set in the constructor. | ||
return this._snek.get(`${this.baseURL}/anime/read.php`) | ||
.set('User-Agent', this.userAgent || null) | ||
.set('User-Agent', this.userAgent || `animu.js (v${version} https://github.com/CFCorp/animu.js)`) | ||
.then((result) => res(result.body)) | ||
@@ -62,3 +62,3 @@ .catch((err) => rej(err)); | ||
return this._snek.get(`${this.baseURL}/hentai/read.php`) | ||
.set('User-Agent', this.userAgent || null) | ||
.set('User-Agent', this.userAgent || `animu.js (v${version} https://github.com/CFCorp/animu.js)`) | ||
.then((result) => res(result.body)) | ||
@@ -65,0 +65,0 @@ .catch(err => rej(err)); |
{ | ||
"name": "animu.js", | ||
"description": "An anime API wrapper.", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"dependencies": { | ||
@@ -19,3 +19,4 @@ "snekfetch": "3.6.4" | ||
"url": "https://github.com/ohlookitsAugust/animu.js" | ||
} | ||
}, | ||
"main": "./lib/index.js" | ||
} |
@@ -22,3 +22,3 @@ # animu.js | ||
client.getAnime().then((b) => { | ||
client.getAnimu().then((b) => { | ||
console.log(`Here is your animu: ${b.url}`); | ||
@@ -33,2 +33,5 @@ }); | ||
* v0.0.1 => Initial Release | ||
* v0.0.2 => `animu.js#getHentai` function | ||
* v0.0.2 => | ||
* `CFClient#getHentai` function; | ||
* Fixed entry point after installing; | ||
* If no User Agent, uses the default `animu.js ({GITHUB} v0.0.2)` |
4977
35