Socket
Socket
Sign inDemoInstall

github

Package Overview
Dependencies
Maintainers
5
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github - npm Package Compare versions

Comparing version 13.0.2 to 13.1.0

2

lib/error.js

@@ -48,2 +48,3 @@ /** section: github

var statusCodes = {
304: 'Not Modified', // See PR #673 (https://github.com/octokit/node-github/pull/673)
400: 'Bad Request',

@@ -93,3 +94,2 @@ 401: 'Unauthorized',

// XXX: Remove?
for (var status in statusCodes) {

@@ -96,0 +96,0 @@ var defaultMsg = statusCodes[status]

@@ -742,3 +742,3 @@ 'use strict'

res.on('end', function () {
if (res.statusCode >= 301 && res.statusCode <= 307) {
if (res.statusCode !== 304 && res.statusCode >= 301 && res.statusCode <= 307) {
options.path = Url.parse(res.headers.location, true).path

@@ -749,3 +749,3 @@ httpSendRequest()

if (res.statusCode >= 400 || res.statusCode < 10) {
if (res.statusCode === 304 || res.statusCode >= 400 || res.statusCode < 10) {
callCallback(new error.HttpError(data, res.statusCode, res.headers))

@@ -752,0 +752,0 @@ } else {

{
"name": "github",
"version": "13.0.2",
"version": "13.1.0",
"description": "GitHub REST API client for Node.js",

@@ -5,0 +5,0 @@ "author": "Mike de Boer <info@mikedeboer.nl>",

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