Socket
Socket
Sign inDemoInstall

@octokit/webhooks

Package Overview
Dependencies
4
Maintainers
4
Versions
253
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 13.2.6 to 13.2.7

10

dist-bundle/index.js

@@ -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) => {

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc