New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

reddit

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reddit - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

6

index.js

@@ -97,3 +97,3 @@ /*! reddit. See LICENSE.md License. Feross Aboukhadijeh <https://feross.org/opensource> */

if (tokenType == null || accessToken == null) {
return reject(new Error(`Cannot obtain token for username ${this.username}. ${body.error}.`))
return reject(new Error(`Cannot obtain token for username ${this.username}. ${body.error}. ${body.error_description}.`))
}

@@ -109,7 +109,7 @@

return reject(
new Error(`Cannot obtain token for username ${this.username}. Did you give ${this.username} access in your Reddit App Preferences? ${body.error}. Status code: ${res.statusCode}`)
new Error(`Cannot obtain token for username ${this.username}. Did you give ${this.username} access in your Reddit App Preferences? ${body.error}. ${body.error_description}. Status code: ${res.statusCode}`)
)
} else {
return reject(
new Error(`Cannot obtain token for username ${this.username}. ${body.error}. Status code: ${res.statusCode}`)
new Error(`Cannot obtain token for username ${this.username}. ${body.error}. ${body.error_description}. Status code: ${res.statusCode}`)
)

@@ -116,0 +116,0 @@ }

{
"name": "reddit",
"description": "Simple Reddit API client",
"version": "1.2.0",
"version": "1.2.1",
"author": {

@@ -6,0 +6,0 @@ "name": "Feross Aboukhadijeh",

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