Comparing version 1.0.2 to 1.0.3
@@ -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
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
Copyleft License
License(Experimental) Copyleft license information was found.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
75463
0
3
70