reddit-simple-client
Advanced tools
Comparing version 1.0.5 to 1.0.6
{ | ||
"name": "reddit-simple-client", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "Simple module for interacting with Reddit, using an unauthenticated client", | ||
@@ -5,0 +5,0 @@ "main": "src/RedditClient.js", |
@@ -0,1 +1,3 @@ | ||
const RedditComment = require('./classes/RedditComment.js'); | ||
const RedditPost = require('./classes/RedditPost.js'); | ||
const https = require('https'); | ||
@@ -109,3 +111,3 @@ | ||
post = post.data; | ||
return { | ||
return new RedditPost({ | ||
body: post.selftext, | ||
@@ -123,3 +125,3 @@ subreddit: post.subreddit, | ||
permalink: post.permalink | ||
}; | ||
}); | ||
}); | ||
@@ -139,3 +141,3 @@ } | ||
comment = comment.data; | ||
return { | ||
return new RedditComment({ | ||
body: comment.body, | ||
@@ -153,3 +155,3 @@ subreddit: comment.subreddit, | ||
permalink: comment.permalink | ||
}; | ||
}); | ||
}); | ||
@@ -156,0 +158,0 @@ } |
9326
5
222