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 3.1.2 to 3.1.3

4

.eslintrc.json
{
"extends": "aero",
"extends": "@aero/lint",
"rules": {

@@ -11,2 +11,2 @@ "lines-around-comment": "off",

}
}
}

@@ -1,2 +0,2 @@

const centra = require('centra-aero');
const centra = require('@aero/centra');
const { join } = require('path').posix;

@@ -3,0 +3,0 @@ const { noop, reflectors, methods } = require('./util');

@@ -0,2 +1,19 @@

/**
* Used for representing a music album for the lyrics or album endpoints
* @property {string} name - The name of the artist
* @property {string} id - Unique identifier
* @property {number} year - Release year
* @property {Artist} [artist] - Artist of this album
* @property {Track[]} [tracks] - Tracks in this album
*/
class Album {
/**
*
* @param {string} name
* @param {string} id
* @param {string|number} year
* @param {Artist} artist
* @param {Track[]} tracks
*/
constructor(name, id, year, artist, tracks) {

@@ -3,0 +20,0 @@ this.name = name;

{
"name": "ksoft.js",
"description": "Official Node.js Wrapper for the KSoft.Si API.",
"version": "3.1.2",
"version": "3.1.3",
"main": "src/index.js",

@@ -25,8 +25,8 @@ "types": "typings/index.d.ts",

"dependencies": {
"centra-aero": "^1.0.0",
"@aero/centra": "^1.0.0",
"flatted": "^2.0.1"
},
"devDependencies": {
"eslint": "^5.6.0",
"eslint-config-aero": "git+https://git.farfrom.earth/aero/forks/eslint-config-aero.git"
"@aero/lint": "^1.0.0",
"eslint": "^5.6.0"
},

@@ -33,0 +33,0 @@ "engines": {

@@ -7,2 +7,7 @@ const Endpoint = require('../../../lib/Endpoint');

/**
* Report or add a ban to KSoft.Si
* @param {Ban} Ban - The Ban to add
* @returns {Promise<BanAPIResponse>} The response
*/
async run(ban) {

@@ -16,2 +21,2 @@ if (!(ban instanceof Ban)) throw new SyntaxError('Please use the ban builder');

}
}
}

@@ -5,2 +5,7 @@ const Endpoint = require('../../../lib/Endpoint');

/**
* Check if a user is banned on KSoft
* @param {string|string[]} user - ID or Array of IDs of users to check
* @returns {Promise<boolean>|Promise<string[]>} Boolean if checking one user, array of banned ids for bulk check
*/
async run(user) {

@@ -7,0 +12,0 @@ return Array.isArray(user)

@@ -6,2 +6,7 @@ const Endpoint = require('../../../lib/Endpoint');

/**
* Get information about bans on KSoft
* @param {string|string[]} user - The user or users to get ban information about
* @returns {Promise<Ban>|Promise<Ban[]>}
*/
async run(user) {

@@ -8,0 +13,0 @@ return Array.isArray(user)

@@ -15,2 +15,2 @@ const Endpoint = require('../../../lib/Endpoint');

}
}
}

@@ -6,2 +6,9 @@ const Endpoint = require('../../../lib/Endpoint');

/**
* Convert one currency to another
* @param {number} value - The currency amount
* @param {string} from - The currency you're converting from
* @param {string} to - The currency you're converting to
* @returns {Conversion}
*/
async run(value, from, to) {

@@ -8,0 +15,0 @@ return this.client.api.kumo.currency.get({ value, from, to });

@@ -6,2 +6,7 @@ const Endpoint = require('../../../lib/Endpoint');

/**
* Performs a GeoIP lookup
* @param {string} ip - The IP to look up
* @returns {IPReport}
*/
async run(ip) {

@@ -8,0 +13,0 @@ return this.client.api.kumo.geoip.get({ ip });

@@ -6,2 +6,10 @@ const Endpoint = require('../../../lib/Endpoint');

/**
* Get current weather of a place
* @param {string} query - Place or Coordinates
* @param {Object} options
* @param {string} options.units - The set of units to use in the report
* @param {string} options.lang - The language to send the report in
* @returns {WeatherReport}
*/
async run(query, options = {}) {

@@ -8,0 +16,0 @@ const reg = /[0-9.]+, [0-9.]+/;

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