Quantcast
Channel: Node.js Tools for Visual Studio
Viewing all articles
Browse latest Browse all 4630

Created Issue: http-proxy member information missing [1234]

$
0
0
```js
var httpProxy = require('http-proxy');
var proxy = httpProxy.createProxyServer({});
proxy.web
```
The type of `proxy` shows as "unknown type", and no members of it show up at all.

It seems that this is due to us improperly handling trailing slash in `require`. Here's what http-proxy.js looks like:
```js
httpProxy = require('./http-proxy/');
...
return new httpProxy.Server(options);
```
Now when I hover over `httpProxy` in that file, it says that it's exports for http-proxy.js - but that's not right, it should be exports for http-proxy/index.js.


Viewing all articles
Browse latest Browse all 4630

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>