Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ksoft.js

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ksoft.js - npm Package Compare versions

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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc