build: use @octokit/request v6.2.4 (#38346)
This commit is contained in:
parent
2acb97aa85
commit
826c29abcc
2 changed files with 2 additions and 29 deletions
|
@ -58,7 +58,6 @@
|
|||
"lint-staged": "^10.2.11",
|
||||
"minimist": "^1.2.6",
|
||||
"null-loader": "^4.0.0",
|
||||
"patch-package": "^7.0.0",
|
||||
"pre-flight": "^1.1.0",
|
||||
"process": "^0.11.10",
|
||||
"remark-cli": "^10.0.0",
|
||||
|
@ -104,7 +103,7 @@
|
|||
"preinstall": "node -e 'process.exit(0)'",
|
||||
"pretest": "npm run create-typescript-definitions",
|
||||
"prepack": "check-for-leaks",
|
||||
"prepare": "husky install && patch-package --patch-dir patches_npm",
|
||||
"prepare": "husky install",
|
||||
"repl": "node ./script/start.js --interactive",
|
||||
"start": "node ./script/start.js",
|
||||
"test": "node ./script/spec-runner.js",
|
||||
|
@ -152,6 +151,6 @@
|
|||
},
|
||||
"resolutions": {
|
||||
"nan": "nodejs/nan#16fa32231e2ccd89d2804b3f765319128b20c4ac",
|
||||
"@octokit/request": "6.2.3"
|
||||
"@octokit/request": "6.2.4"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,26 +0,0 @@
|
|||
diff --git a/node_modules/@octokit/request/dist-node/index.js b/node_modules/@octokit/request/dist-node/index.js
|
||||
index 11ac3f4..c4d9331 100644
|
||||
--- a/node_modules/@octokit/request/dist-node/index.js
|
||||
+++ b/node_modules/@octokit/request/dist-node/index.js
|
||||
@@ -29,7 +29,8 @@ function fetchWrapper(requestOptions) {
|
||||
method: requestOptions.method,
|
||||
body: requestOptions.body,
|
||||
headers: requestOptions.headers,
|
||||
- redirect: requestOptions.redirect
|
||||
+ redirect: requestOptions.redirect,
|
||||
+ ...(requestOptions.body && { duplex: "half" }),
|
||||
},
|
||||
// `requestOptions.request.agent` type is incompatible
|
||||
// see https://github.com/octokit/types.ts/pull/264
|
||||
diff --git a/node_modules/@octokit/request/dist-src/fetch-wrapper.js b/node_modules/@octokit/request/dist-src/fetch-wrapper.js
|
||||
index 223307a..15114d5 100644
|
||||
--- a/node_modules/@octokit/request/dist-src/fetch-wrapper.js
|
||||
+++ b/node_modules/@octokit/request/dist-src/fetch-wrapper.js
|
||||
@@ -21,6 +21,7 @@ export default function fetchWrapper(requestOptions) {
|
||||
body: requestOptions.body,
|
||||
headers: requestOptions.headers,
|
||||
redirect: requestOptions.redirect,
|
||||
+ ...(requestOptions.body && { duplex: "half" }),
|
||||
},
|
||||
// `requestOptions.request.agent` type is incompatible
|
||||
// see https://github.com/octokit/types.ts/pull/264
|
Loading…
Add table
Add a link
Reference in a new issue