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.4 to 0.1.5

2

dist/objects/subreddit/small.d.ts
/// <reference types="node" />
import { Stream } from "stream";
import { FullSubreddit } from ".";
import Fetchable from "../../interfaces/fetchable";

@@ -8,3 +9,2 @@ import { GetOptions } from "../../list/get";

import { FullSubmission, Submission } from "../post";
import FullSubreddit from "./full";
import { Rule } from "./rule";

@@ -11,0 +11,0 @@ import { Style } from "./style";

@@ -11,6 +11,4 @@ "use strict";

};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const _1 = require(".");
const upload_1 = require("../../helper/upload");

@@ -20,3 +18,2 @@ const get_1 = require("../../list/get");

const post_1 = require("../post");
const full_1 = __importDefault(require("./full"));
const rule_1 = require("./rule");

@@ -42,3 +39,3 @@ class Subreddit {

});
return new full_1.default(this.r, res.data.data);
return new _1.FullSubreddit(this.r, res.data.data);
});

@@ -51,14 +48,7 @@ }

return {
upvoteInactive: s.postUpvoteIconInactive
? { native: { url: s.postUpvoteIconInactive } }
: null,
upvoteActive: s.postUpvoteIconActive
? { native: { url: s.postUpvoteIconActive } }
: null,
downvoteInactive: s.postDownvoteIconInactive
? { native: { url: s.postDownvoteIconInactive } }
: null,
downvoteActive: s.postDownvoteIconActive
? { native: { url: s.postDownvoteIconActive } }
: null,
icon: createStyleImage(s.communityIcon),
upvoteInactive: createStyleImage(s.postUpvoteIconInactive),
upvoteActive: createStyleImage(s.postUpvoteIconActive),
downvoteInactive: createStyleImage(s.postDownvoteIconInactive),
downvoteActive: createStyleImage(s.postDownvoteIconActive),
};

@@ -186,1 +176,4 @@ });

}
function createStyleImage(url) {
return url ? { native: { url } } : null;
}
import { BaseImage } from "../../media/image";
export interface Style {
icon: BaseImage | null;
upvoteInactive: BaseImage | null;

@@ -4,0 +5,0 @@ upvoteActive: BaseImage | null;

{
"name": "wholesome",
"version": "0.1.4",
"version": "0.1.5",
"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