New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

jsrwrap

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsrwrap - npm Package Compare versions

Comparing version 0.1.16-beta.16 to 0.1.16-beta.17

26

lib/user.d.ts

@@ -23,9 +23,21 @@ import { Jsrwrap } from './jsrwrap.js';

getAbout(): Promise<RedditUser>;
getOverview(options?: GetOptions): Promise<((SubmissionData & {
type: "post";
}) | (Comment & {
type: "comment";
}))[]>;
getSubmitted(options?: GetOptions): Promise<SubmissionData[]>;
getComments(options?: GetOptions): Promise<Comment[]>;
getOverview(options?: GetOptions): Promise<{
data: ((SubmissionData & {
type: "post";
}) | (Comment & {
type: "comment";
}))[];
before: string | null;
after: string | null;
}>;
getSubmitted(options?: GetOptions): Promise<{
data: SubmissionData[];
before: string | null;
after: string | null;
}>;
getComments(options?: GetOptions): Promise<{
data: Comment[];
before: string | null;
after: string | null;
}>;
getGilded(options?: GetOptions): Promise<((SubmissionData & {

@@ -32,0 +44,0 @@ type: "post";

@@ -40,5 +40,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

const res = yield this._reddit.get(`user/${this.username}/overview`, Object.assign({}, options));
res.data.before;
res.data.after;
return extractOverviewData(res);
return {
data: extractOverviewData(res),
before: res.data.before,
after: res.data.after
};
});

@@ -49,3 +51,7 @@ }

const res = yield this._reddit.get(`user/${this.username}/submitted`, Object.assign({}, options));
return extractData(res);
return {
data: extractData(res),
before: res.data.before,
after: res.data.after
};
});

@@ -56,5 +62,10 @@ }

const res = yield this._reddit.get(`user/${this.username}/comments`, Object.assign({}, options));
return extractData(res);
return {
data: extractData(res),
before: res.data.before,
after: res.data.after
};
});
}
// Does not work anymore since Reddit removed gold
getGilded(options) {

@@ -61,0 +72,0 @@ return __awaiter(this, void 0, void 0, function* () {

{
"name": "jsrwrap",
"version": "0.1.16-beta.16",
"version": "0.1.16-beta.17",
"description": "API wrapper for Reddit",

@@ -5,0 +5,0 @@ "repository": {

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