Comparing version 0.1.4 to 0.1.5
/// <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", |
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
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
96395
2340