Comparing version 0.1.0 to 0.1.1
/// <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", |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
67938
81
1634
0