@octokit/request
Advanced tools
Comparing version 9.1.4 to 9.2.0
@@ -136,3 +136,3 @@ // pkg/dist-src/index.js | ||
const mimetype = safeParse(contentType); | ||
if (mimetype.type === "application/json") { | ||
if (isJSONResponse(mimetype)) { | ||
let text = ""; | ||
@@ -151,2 +151,5 @@ try { | ||
} | ||
function isJSONResponse(mimetype) { | ||
return mimetype.type === "application/json" || mimetype.type === "application/scim+json"; | ||
} | ||
function toErrorMessage(data) { | ||
@@ -153,0 +156,0 @@ if (typeof data === "string") { |
@@ -108,3 +108,3 @@ import { safeParse } from "fast-content-type-parse"; | ||
const mimetype = safeParse(contentType); | ||
if (mimetype.type === "application/json") { | ||
if (isJSONResponse(mimetype)) { | ||
let text = ""; | ||
@@ -123,2 +123,5 @@ try { | ||
} | ||
function isJSONResponse(mimetype) { | ||
return mimetype.type === "application/json" || mimetype.type === "application/scim+json"; | ||
} | ||
function toErrorMessage(data) { | ||
@@ -125,0 +128,0 @@ if (typeof data === "string") { |
@@ -1,4 +0,4 @@ | ||
const VERSION = "9.1.4"; | ||
const VERSION = "9.2.0"; | ||
export { | ||
VERSION | ||
}; |
@@ -1,1 +0,1 @@ | ||
export declare const VERSION = "9.1.4"; | ||
export declare const VERSION = "9.2.0"; |
{ | ||
"name": "@octokit/request", | ||
"version": "9.1.4", | ||
"version": "9.2.0", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "publishConfig": { |
Sorry, the diff of this file is not supported yet
45516
400