web-sniffer
web-sniffer copied to clipboard
Disappointed - Didn't work
While this may be my lack of understanding... the example is flawed.
The typescript type says the function should return a promise -
At a min - it should be: return Promise.resolve(request);
To satisfy the typing.
The typing also states that the intercept expects options, so the HTTPS example needs merging with the first. After getting through all this... It would not intercept anything for me. Sigh - expected too much from an abandoned project.