@octokit/request
Advanced tools
Comparing version 8.1.4 to 8.1.5
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
57574