Upgrade octokit to v4.1.2
This commit is contained in:
parent
dbbcbe019d
commit
c1745a9831
1214 changed files with 160765 additions and 0 deletions
14
node_modules/@octokit/oauth-app/dist-src/middleware/node/parse-request.js
generated
vendored
Normal file
14
node_modules/@octokit/oauth-app/dist-src/middleware/node/parse-request.js
generated
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
function parseRequest(request) {
|
||||
const { method, url, headers } = request;
|
||||
async function text() {
|
||||
const text2 = await new Promise((resolve, reject) => {
|
||||
let bodyChunks = [];
|
||||
request.on("error", reject).on("data", (chunk) => bodyChunks.push(chunk)).on("end", () => resolve(Buffer.concat(bodyChunks).toString()));
|
||||
});
|
||||
return text2;
|
||||
}
|
||||
return { method, url, headers, text };
|
||||
}
|
||||
export {
|
||||
parseRequest
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue