suyamiko-api
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "suyamiko-api", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "A suyamiko/suya.moe api client", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -20,3 +20,3 @@ <div align="center"> | ||
`npm install suyamiko-api` | ||
`npm install suyamiko-api@1.0.1` | ||
@@ -23,0 +23,0 @@ https://api.suya.moe/cdn.gif?awoo=SGs0VlhIbVBiZQ.gif |
@@ -11,3 +11,3 @@ exports.NetConstants = require('./constants/NetConstants'); | ||
const exported = require(`./endpoints/${endpoint}.moe`); | ||
if (typeof exported.run === 'function') throw new Error(`Endpoint file ${endpoint} has no run function.`); | ||
if (typeof exported.run !== 'function') throw new Error(`Endpoint file ${endpoint} has no run function.`); | ||
exports.endpoints[endpoint] = exported; | ||
@@ -14,0 +14,0 @@ } catch (err) { |
12936