New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@r/api-client

Package Overview
Dependencies
Maintainers
11
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@r/api-client - npm Package Compare versions

Comparing version
3.34.0
to
3.35.0
models/comment.es6.js.orig

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

+1
-1
{
"name": "@r/api-client",
"version": "3.34.0",
"version": "3.35.0",
"description": "A wrapper for Reddit's API",

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

@@ -57,2 +57,38 @@ import apiRequest from '../apiBase/apiRequest';

const markNSFW = (apiOptions, id) => {
// Mark a link as NSFW
const body = { id };
return apiRequest(apiOptions, 'POST', 'api/marknsfw', { body, type: 'form' });
}
const unmarkNSFW = (apiOptions, id) => {
// Unmark a link as NSFW
const body = { id };
return apiRequest(apiOptions, 'POST', 'api/unmarknsfw', { body, type: 'form' });
}
const lock = (apiOptions, id) => {
// Lock a link
const body = { id };
return apiRequest(apiOptions, 'POST', 'api/lock', { body, type: 'form' });
}
const unlock = (apiOptions, id) => {
// Unlock a link
const body = { id };
return apiRequest(apiOptions, 'POST', 'api/unlock', { body, type: 'form' });
}
const spoiler = (apiOptions, id) => {
// Spoiler a post
const body = { id };
return apiRequest(apiOptions, 'POST', 'api/spoiler', { body, type: 'form' });
}
const unspoiler = (apiOptions, id) => {
// Unspoiler a post
const body = { id };
return apiRequest(apiOptions, 'POST', 'api/unspoiler', { body, type: 'form' });
}
/**

@@ -101,2 +137,8 @@ * Set or unset a stickied post (AKA an "Annoucement").

distinguish,
markNSFW,
unmarkNSFW,
lock,
unlock,
spoiler,
unspoiler,
setStickyComment,

@@ -103,0 +145,0 @@ setSubredditSticky,

Sorry, the diff of this file is too big to display