@octokit/webhooks
Advanced tools
Comparing version 13.2.6 to 13.2.7
@@ -510,8 +510,6 @@ // pkg/dist-src/createLogger.js | ||
function getPayload(request) { | ||
if ("body" in request) { | ||
if (typeof request.body === "object" && "rawBody" in request && request.rawBody instanceof Buffer) { | ||
return Promise.resolve(request.rawBody.toString("utf8")); | ||
} else { | ||
return Promise.resolve(request.body); | ||
} | ||
if (typeof request.body === "object" && "rawBody" in request && request.rawBody instanceof Buffer) { | ||
return Promise.resolve(request.rawBody.toString("utf8")); | ||
} else if (typeof request.body === "string") { | ||
return Promise.resolve(request.body); | ||
} | ||
@@ -518,0 +516,0 @@ return new Promise((resolve, reject) => { |
import AggregateError from "aggregate-error"; | ||
function getPayload(request) { | ||
if ("body" in request) { | ||
if (typeof request.body === "object" && "rawBody" in request && request.rawBody instanceof Buffer) { | ||
return Promise.resolve(request.rawBody.toString("utf8")); | ||
} else { | ||
return Promise.resolve(request.body); | ||
} | ||
if (typeof request.body === "object" && "rawBody" in request && request.rawBody instanceof Buffer) { | ||
return Promise.resolve(request.rawBody.toString("utf8")); | ||
} else if (typeof request.body === "string") { | ||
return Promise.resolve(request.body); | ||
} | ||
@@ -10,0 +8,0 @@ return new Promise((resolve, reject) => { |
{ | ||
"name": "@octokit/webhooks", | ||
"version": "13.2.6", | ||
"version": "13.2.7", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "GitHub webhook events toolset for Node.js", |
Sorry, the diff of this file is not supported yet
157166
1622