Comparing version 2.1.0 to 2.1.1
@@ -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, |
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
22467
563