Socket
Socket
Sign inDemoInstall

ksoft.js

Package Overview
Dependencies
1
Maintainers
2
Versions
51
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.3 to 2.1.0

lib/structures/BanAPIResponse.js

2

package.json
{
"name": "ksoft.js",
"version": "2.0.3",
"version": "2.1.0",
"description": "Official Node.js Wrapper for the KSoft.Si API.",

@@ -5,0 +5,0 @@ "main": "src/index.js",

const Endpoint = require('../../../lib/Endpoint');
const Ban = require('../../../lib/structures/Ban');
const BanAPIResponse = require('../../../lib/structures/BanAPIResponse');

@@ -12,5 +13,4 @@ module.exports = class extends Endpoint {

async serialize(data) {
if (data.success) return { success: true };
return { succes: false, message: data.message };
return new BanAPIResponse(data);
}
}
SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc