Socket
Socket
Sign inDemoInstall

ksoft.js

Package Overview
Dependencies
Maintainers
2
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 2.1.0 to 2.1.1

9

lib/APIRouter.js

@@ -7,2 +7,8 @@ const centra = require('centra');

function sanitizeJSON(res) {
return JSON.parse(res.body
.toString()
.replace(/([^"])([0-9]{17,18})([^"])/g, '$1"$2"$3'));
}
function buildRoute(token) {

@@ -29,3 +35,3 @@ const route = [];

return req.send()
.then(res => res.json);
.then(res => sanitizeJSON(res));
}

@@ -36,3 +42,2 @@ }

module.exports = buildRoute;
{
"name": "ksoft.js",
"version": "2.1.0",
"version": "2.1.1",
"description": "Official Node.js Wrapper for the KSoft.Si API.",

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

const KSoftClient = require('../lib/KSoftClient');
const Ban = require('../lib/structures/Ban');
const c = new KSoftClient('d7cc9d58e4a7fa77ffd40d85eaba2ee6ea6f8a41');
(async () => {
const b = await c.bans.info('234390727113703424');
console.log(b);
})();
module.exports = {

@@ -5,0 +12,0 @@ KSoftClient,

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