Socket
Socket
Sign inDemoInstall

hubkit

Package Overview
Dependencies
7
Maintainers
1
Versions
121
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.1 to 2.0.2

2

bower.json
{
"name": "hubkit",
"version": "2.0.1",
"version": "2.0.2",
"homepage": "https://github.com/pkaminski/hubkit",

@@ -5,0 +5,0 @@ "authors": [

@@ -126,3 +126,3 @@ if (typeof require !== 'undefined') {

function handleError(error, res) {
error.request = {method: options.method, url: path, headers: res && res.config.headers};
error.request = {method: options.method, url: path, headers: res && res.headers};
if (error.request.headers) delete error.request.headers.authorization;

@@ -430,4 +430,7 @@ if (cacheable && res && res.status) {

if (nextUrl || result) {
throw new Error(formatError(
var error = new Error(formatError(
'Hubkit', 'unable to find array in paginated response'));
error.nextUrl = nextUrl;
error.accumulatedResult = result;
throw error;
}

@@ -558,6 +561,4 @@ if (options.boolean) {

if (!isNode && options.responseType) config.responseType = options.responseType;
// Work around Firefox bug that forces caching. We can't use Cache-Control because it's not
// allowed by Github's cross-domain request headers, and because we want to keep our requests
// simple to avoid CORS preflight whenever possible.
// https://bugzilla.mozilla.org/show_bug.cgi?id=428916
// We can't use Cache-Control because it's not
// allowed by Github's cross-domain request headers
if (!isNode && (options.method === 'GET' || options.method === 'HEAD')) {

@@ -564,0 +565,0 @@ config.params['_nocache'] = Math.round(Math.random() * 1000000);

{
"name": "hubkit",
"version": "2.0.1",
"version": "2.0.2",
"description": "GitHub API library for JavaScript, promise-based, for both NodeJS and the browser",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc