Comparing version 1.2.9 to 1.3.0
13
index.js
@@ -6,3 +6,3 @@ const { images } = require('./lib/apis/images'); | ||
const music = require('./lib/apis/music'); | ||
const banCreator = require('./lib/util/banCreator'); | ||
const BanCreator = require('./lib/util/banCreator'); | ||
const Webhook = require('./lib/webhook/server'); | ||
@@ -15,8 +15,7 @@ /** | ||
*/ | ||
class ksoftAPI { | ||
class KsoftAPI { | ||
/** | ||
* @constructor | ||
* @param {number} token Your ksoft api token | ||
* @param {boolean} useWebhooks Whether you want to use the webhook feature | ||
* @param {webhookOptions} webhookOptions webhook options | ||
* @param {String} token Your ksoft api token | ||
* @param {webhookOptions} [webhookOptions] Only needed if you are using webhooks | ||
*/ | ||
@@ -39,6 +38,6 @@ constructor(token, webhookOptions) { | ||
this.music = new music(token); | ||
this.CreateBan = banCreator; | ||
this.CreateBan = BanCreator; | ||
} | ||
} | ||
module.exports = ksoftAPI; | ||
module.exports = KsoftAPI; |
@@ -88,3 +88,3 @@ /** | ||
timeout: 2000, | ||
headers: { Authorization: `NANI ${this.token}` }, | ||
headers: { Authorization: `NANI ${this.token}` } | ||
}); | ||
@@ -97,2 +97,7 @@ } | ||
async getRandomMeme() { | ||
// if (callback) { | ||
// const { data } = await this.http.get('/images/random-meme'); | ||
// callback(data); | ||
// } | ||
try { | ||
@@ -256,3 +261,3 @@ const { data } = await this.http.get('/images/random-meme'); | ||
module.exports = { | ||
images, | ||
images | ||
}; |
{ | ||
"name": "ksoft.js", | ||
"version": "1.2.9", | ||
"version": "1.3.0", | ||
"description": "Official API Wrapper for KSoft.Si API, written in Node.js", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
89598
1170