Socket
Socket
Sign inDemoInstall

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.0.2 to 1.0.3

4

lib/apis/images.js

@@ -211,7 +211,7 @@ /**

* @param {String} subReddit Specified subreddit
* @param {String} span Default: "day", select range from which to get the images. Can be one of the following: "hour", "day", "week", "month", "year", "all"
* @param {Boolean} removeNSFW Whether to remove nsfw content or not
* @param {String} span Default: "day", select range from which to get the images. Can be one of the following: "hour", "day", "week", "month", "year", "all"
* @returns {Promise<getRandomRedditResponse>}
*/
async getRandomReddit(subReddit,removeNSFW,span){
async getRandomReddit(subReddit, span, removeNSFW){
if(!subReddit) throw new Error("Please specify a subreddit")

@@ -218,0 +218,0 @@ if(removeNSFW && span){

@@ -139,3 +139,3 @@ /**

*/
async search(q,fast,more,mapZoom,includeMap){
async search(q, {fast,more,mapZoom,includeMap}){
if(!q) throw new Error("[Ksoft API] Please define a search query")

@@ -142,0 +142,0 @@ const params = { q };

@@ -71,3 +71,3 @@ /**

*/
async search(q,textOnly,limit){
async search(q, {textOnly,limit}){
if(!q) throw new Error("[Ksoft API] Please define a search query")

@@ -74,0 +74,0 @@ const params = { q };

{
"name": "ksoft.js",
"version": "1.0.2",
"version": "1.0.3",
"description": "Official API Wrapper for KSoft.Si API, written in Node.js",

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

Sorry, the diff of this file is not supported yet

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