Repository URL to install this package:
|
Version:
2.0.11-7 ▾
|
notion-desktop
/
usr
/
lib
/
notion-desktop
/
resources
/
app
/
node_modules
/
node-fetch
/
CHANGELOG.md
|
|---|
(Note: 1.x will only have backported bugfix releases beyond 1.7.0)
FetchError now gives a correct trace stack (backport from v2.x relese).jest, instanceof check could fail in Headers class. This is causing some header values, such as set-cookie, to be dropped incorrectly.v1.6.2 where 204 no-content response is handled with a special case, this conflicts with browser Fetch implementation (as browsers always throw when res.json() parses an empty string). Since this is an operational error, it's wrapped in a FetchError for easier error handling.FetchError designform-data 2.x releases (requires form-data >= 2.1.0)res.body is a non-stream non-formdata object, we will call body.toString and send it as a stringcounter value is incorrectly set to follow value when wrapping Request instanceres.buffer() api for convenience, it returns body as a Node.js bufferreq.body now accepts a Node.js buffercontent-length when form-data body use streamsmanual should work even when there is no redirection or broken redirectionError (thx to @pekeler)FetchError contains err.type and err.code, allows for better error handling (thx to @pekeler)manual and error, allows for location header extraction (thx to @jimmywarting for the initial PR)clone method (thx to @kirill-konshin for the initial PR)forEach method (thx to @tricoder42)Content-Length header is set when body is string for POST/PUT/PATCH requestsContent-Encoding headerGET on subsequent request per Fetch SpecRequest and Response constructors now parse headers input using HeadersFormData spec on node.js, this is form-data specific feature)fetch.Request is exposed as wellHeaders now normalized Number value to String, prevent common mistakesHeaders should only support String and Array properties, and ignore othersHeaders instancefollow = 0, fetch should not follow redirect