Socket
Socket
Sign inDemoInstall

octonode

Package Overview
Dependencies
3
Maintainers
1
Versions
67
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.3.4 to 0.3.5

13

lib/octonode/client.js

@@ -81,10 +81,13 @@ // Generated by CoffeeScript 1.4.0

uri += typeof this.token === 'object' && this.token.username ? "" + this.token.username + ":" + this.token.password + "@" : '';
uri += "api.github.com" + path;
uri += typeof this.token === 'string' ? "?access_token=" + this.token : '';
uri += typeof this.token === 'object' && this.token.id ? "?client_id=" + this.token.id + "&client_secret=" + this.token.secret : '?';
uri += "api.github.com" + path + "?";
if (typeof this.token === 'string') {
uri += "access_token=" + this.token + "&";
} else if (typeof this.token === 'object' && this.token.id) {
uri += "client_id=" + this.token.id + "&client_secret=" + this.token.secret + "&";
}
if (page != null) {
uri += "&page=" + page;
uri += "page=" + page + "&";
}
if (per_page != null) {
uri += "&per_page=" + per_page;
uri += "per_page=" + per_page + "&";
}

@@ -91,0 +94,0 @@ return uri;

{
"name": "octonode",
"version": "0.3.4",
"version": "0.3.5",
"author": "Pavan Kumar Sunkara <pavan.sss1991@gmail.com> (http://pksunkara.github.com)",

@@ -5,0 +5,0 @@ "description": "nodejs wrapper for github v3 api",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc