You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch timed-out@4.0.1 for the project I'm working on.
._headers access function has been deprecated since Node v12. v14 being the current LTS, while v16 is active, it would be nice to upgrade the used method in order to avoid deprecation warnings/errors on builds (in my case building my gatsby website)
A related issue (#25) was opened then closed by its author without any real solution (I'm not using npm-name)
Here is the diff that solved my problem:
diff --git a/node_modules/timed-out/index.js b/node_modules/timed-out/index.js
index 94007a4..fc40d52 100644
--- a/node_modules/timed-out/index.js+++ b/node_modules/timed-out/index.js@@ -6,7 +6,7 @@ module.exports = function (req, time) {
}
var delays = isNaN(time) ? time : {socket: time, connect: time};
- var host = req._headers ? (' to ' + req._headers.host) : '';+ var host = req.getHeaders() ? (' to ' + req.getHeaders().host) : '';
if (delays.connect !== undefined) {
req.timeoutTimer = setTimeout(function timeoutHandler() {
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch
timed-out@4.0.1
for the project I'm working on.._headers
access function has been deprecated since Node v12. v14 being the current LTS, while v16 is active, it would be nice to upgrade the used method in order to avoid deprecation warnings/errors on builds (in my case building my gatsby website)A related issue (#25) was opened then closed by its author without any real solution (I'm not using
npm-name
)Here is the diff that solved my problem:
This issue body was partially generated by patch-package.
The text was updated successfully, but these errors were encountered: