animality
Advanced tools
Comparing version 1.2.9 to 1.3.0
@@ -41,3 +41,3 @@ const fetch = require('node-fetch'); | ||
fetch(`${base}/img/${type}`).then(res => res.json()), | ||
fetch(`${base}/fact/${type}`).then(res => res.json()) | ||
fetch(`${base}/facts/${type}`).then(res => res.json()) | ||
]).catch(err => { | ||
@@ -44,0 +44,0 @@ throw new Error(`Failed to get type '${type}' from API, error:\n${err}`); |
{ | ||
"name": "animality", | ||
"version": "1.2.9", | ||
"version": "1.3.0", | ||
"description": "A simple API wrapper that generates images & facts of any animal", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
3802