node-http-proxy
node-http-proxy copied to clipboard
The `util._extend` API is deprecated. Please use Object.assign() instead.
trafficstars
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch [email protected] for the project I'm working on.
Here is the diff that solved my problem:
diff --git a/node_modules/http-proxy/lib/http-proxy/index.js b/node_modules/http-proxy/lib/http-proxy/index.js
index 977a4b3..739409c 100644
--- a/node_modules/http-proxy/lib/http-proxy/index.js
+++ b/node_modules/http-proxy/lib/http-proxy/index.js
@@ -1,5 +1,5 @@
var httpProxy = module.exports,
- extend = require('util')._extend,
+ extend = Object.assign,
parse_url = require('url').parse,
EE3 = require('eventemitter3'),
http = require('http'),
This issue body was partially generated by patch-package.