Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

wholesome

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wholesome - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

dist/objects/post/full.d.ts

2

dist/list/list.d.ts
/// <reference types="node" />
import EventEmitter from "events";
import { EventEmitter } from "events";
import Identified from "../interfaces/identified";

@@ -4,0 +4,0 @@ import Reddit from "../reddit";

"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const events_1 = __importDefault(require("events"));
const events_1 = require("events");
const get_1 = require("./get");
const stream_1 = require("./stream");
class List extends events_1.default {
class List extends events_1.EventEmitter {
constructor(r, url, map) {

@@ -11,0 +8,0 @@ super();

import Reddit from "../../../reddit";
import { Subreddit } from "../../subreddit";
import FullPost, { DistinguishKinds } from "../full";

@@ -6,2 +7,4 @@ import Submission from "../submission/small";

export default class FullComment extends Comment implements FullPost {
subreddit: Subreddit;
score: number | null;
saved: boolean;

@@ -8,0 +11,0 @@ archived: boolean;

@@ -10,2 +10,4 @@ "use strict";

super(r, data.id, submission);
this.subreddit = r.subreddit(data.subreddit);
this.score = data.score_hidden ? null : data.score;
this.saved = data.saved;

@@ -12,0 +14,0 @@ this.archived = data.archived;

@@ -6,2 +6,3 @@ import Content from "../../../media/content";

import Reddit from "../../../reddit";
import { Subreddit } from "../../subreddit";
import FullPost, { DistinguishKinds } from "../full";

@@ -11,2 +12,5 @@ import Submission from "./small";

title: string;
subreddit: Subreddit;
score: number;
upvoteRatio: number;
oc: boolean;

@@ -13,0 +17,0 @@ spoiler: boolean;

@@ -12,2 +12,5 @@ "use strict";

this.title = data.title;
this.subreddit = r.subreddit(data.subreddit);
this.score = data.score;
this.upvoteRatio = data.upvote_ratio;
this.oc = data.is_original_content;

@@ -14,0 +17,0 @@ this.spoiler = data.spoiler;

@@ -10,2 +10,3 @@ import { AxiosInstance } from "axios";

userAgent: string;
browser?: boolean;
debug?: boolean;

@@ -12,0 +13,0 @@ }

@@ -20,7 +20,5 @@ "use strict";

headers: {
"User-Agent": data.userAgent,
"User-Agent": data.browser ? undefined : data.userAgent,
},
params: {
raw_json: 1,
},
params: { raw_json: 1 },
});

@@ -27,0 +25,0 @@ this.api.interceptors.request.use(fields_1.default);

{
"name": "wholesome",
"version": "0.1.0",
"version": "0.1.1",
"description": "A Reddit API wrapper",

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

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