Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@octokit/request

Package Overview
Dependencies
Maintainers
4
Versions
104
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@octokit/request - npm Package Compare versions

Comparing version 8.1.4 to 8.1.5

4

dist-node/index.js

@@ -30,3 +30,3 @@ "use strict";

// pkg/dist-src/version.js
var VERSION = "8.1.4";
var VERSION = "8.1.5";

@@ -153,3 +153,3 @@ // pkg/dist-src/fetch-wrapper.js

if (/application\/json/.test(contentType)) {
return response.json();
return response.json().catch(() => response.text()).catch(() => "");
}

@@ -156,0 +156,0 @@ if (!contentType || /^text\/|charset=utf-8$/.test(contentType)) {

@@ -113,3 +113,3 @@ import { isPlainObject } from "is-plain-object";

if (/application\/json/.test(contentType)) {
return response.json();
return response.json().catch(() => response.text()).catch(() => "");
}

@@ -116,0 +116,0 @@ if (!contentType || /^text\/|charset=utf-8$/.test(contentType)) {

@@ -1,4 +0,4 @@

const VERSION = "8.1.4";
const VERSION = "8.1.5";
export {
VERSION
};

@@ -1,1 +0,1 @@

export declare const VERSION = "8.1.4";
export declare const VERSION = "8.1.5";

@@ -6,3 +6,3 @@ // pkg/dist-src/index.js

// pkg/dist-src/version.js
var VERSION = "8.1.4";
var VERSION = "8.1.5";

@@ -128,3 +128,3 @@ // pkg/dist-src/fetch-wrapper.js

if (/application\/json/.test(contentType)) {
return response.json();
return response.json().catch(() => response.text()).catch(() => "");
}

@@ -131,0 +131,0 @@ if (!contentType || /^text\/|charset=utf-8$/.test(contentType)) {

{
"name": "@octokit/request",
"version": "8.1.4",
"version": "8.1.5",
"publishConfig": {

@@ -30,3 +30,3 @@ "access": "public"

"@types/lolex": "^5.1.0",
"@types/node": "^18.0.0",
"@types/node": "^20.0.0",
"@types/once": "^1.4.0",

@@ -33,0 +33,0 @@ "esbuild": "^0.19.0",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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