Closed polarathene closed 3 years ago
If isomorphic-fetch were used, it might even work on client-side code which would be amazing, instead of this:
error - ./node_modules/request/lib/har.js:3:0
Module not found: Can't resolve 'fs'
MEMO: https://github.com/tomas/needle looks promissing. Others has suspicious issues in tracker or lack of features.
The
request
package has been deprecated. This package only seems to use it in thehttp.js
file, the advice appears to migrate to an alternative likenode-fetch
.https://github.com/nodeca/probe-image-size/blob/7d7e4a91d232d2d6fca2339df61432e3c415b0b8/http.js#L38
https://github.com/nodeca/probe-image-size/blob/7d7e4a91d232d2d6fca2339df61432e3c415b0b8/http.js#L57
I'm not raising the issue due to any bug or vulnerabilities, just making you aware of the deprecation as it is raised as a warning during package installs:
Cheers.