Moni
29d7556870
Move to Github Actions ( #785 )
...
* Move to Github Actions
* remove Travis in favor of GitHub Actions
Signed-off-by: Moni <40552237+NotMoni@users.noreply.github.com>
Co-authored-by: Linus Unnebäck <linus@folkdatorn.se>
Co-authored-by: Konstantin Vyatkin <tino@vtkn.io>
2020-05-22 16:35:14 -04:00
Jonathan Stewmon
63d3663466
fix: disambiguate timeout behavior for response headers and body ( #770 )
...
There is a single timeout option which applies to both the receiving of
response headers and the receiving of the entire response body. Once
the response is received, the socket timeout must be cleared to allow
the timeout to apply to the receiving of the entire response body.
Without clearing the socket timeout, if the nearing the idle timeout
when the Promise for the body is created, then the request's timeout
handler will abort the request, emitting ERR_STREAM_PREMATURE_CLOSE in
the body Promise.
By clearing the socket timeout once the response headers are received,
the timeout for the entire body can be started when the body is awaited.
Since the request will no longer be aborted by the socket timeout,
destroy is called on the body to prevent it continuing to emit data
events.
2020-05-22 15:19:05 -04:00
Richie Bendall
f62376cff7
Update copyright information
...
Fixes #812
2020-05-22 13:41:51 +12:00
Antoni Kepinski
c31e620134
Update CHANGELOG.md
2020-05-21 11:12:52 +02:00
Konstantin Vyatkin
0f97d62844
drop Babel (while keeping ESM) ( #805 )
...
* drop Babel
* fix lint
* just to trigger CI
* Update package.json
Co-authored-by: Linus Unnebäck <linus@folkdatorn.se>
* fix all imports
* coverage only from Node 14.x
* remove esm
* restore travis
* fix lint
Co-authored-by: Linus Unnebäck <linus@folkdatorn.se>
2020-05-21 02:50:31 -04:00
Paul
6e12fe22ad
Fix example using `file-type` ( #804 )
2020-05-18 16:17:14 +12:00
Antoni Kepinski
8a3d2638ae
Merge branch 'master' of https://github.com/node-fetch/node-fetch
2020-05-17 19:03:39 +02:00
Antoni Kepinski
c070ffee7e
docs: improve readability
2020-05-17 19:03:31 +02:00
Antoni Kepinski
fd62e1a204
Kb -> kB
2020-05-17 18:52:09 +02:00
Antoni Kepinski
fd53bcaee3
update beta.6 changelog
2020-05-17 18:51:24 +02:00
Antoni Kepinski
7d36f3b247
Improve coverage ( #779 )
2020-05-17 15:28:26 +02:00
Antoni Kepinski
0936a9af0a
fix: change Mb to MB
2020-05-11 12:21:57 +02:00
Moni
73b7a08974
Add link for license ( #794 )
2020-05-08 10:28:14 +12:00
Richie Bendall
a5cdc147f2
Update XO
...
Signed-off-by: Richie Bendall <richiebendall@gmail.com>
2020-05-06 23:56:49 +12:00
Richie Bendall
553bb5dc56
Export `AbortError` ( Fixes : #792 )
...
Signed-off-by: Richie Bendall <richiebendall@gmail.com>
2020-05-06 23:47:43 +12:00
Moni
3fd3da8c94
fix whitespace
2020-05-01 15:07:54 -04:00
Antoni Kepinski
2a61567ac3
link the mentioned issue
2020-04-22 11:52:33 +02:00
Antoni Kepinski
4f73c8a766
bump beta version & update devDependencies
2020-04-22 11:40:46 +02:00
Antoni Kepinski
4f69cb796d
revert change
2020-04-22 11:40:30 +02:00
Antoni Kepinski
177fc45793
add changelog for `v3.0.0-beta.5`
2020-04-22 11:40:25 +02:00
Antoni Kepinski
3cdda5baa0
lint types
2020-04-21 11:16:17 +02:00
Antoni Kepinski
605a25a3c5
remove obsolate config file
2020-04-21 11:10:02 +02:00
Antoni Kepinski
c81531d73b
Replace isomorphic-fetch with isomorphic-unfetch (no longer maintained)
2020-04-20 22:03:25 +02:00
Antoni Kepinski
631a4b2437
fix question mark stripped from url when no params are given (#7… ( #782 )
...
* fix question mark stripped from url when no params are given (#776 )
* add more tests
* whitespace
* modify the server to handle the new tests
Co-authored-by: dzek69 <git-public@dzek.eu>
2020-04-20 21:42:51 +02:00
Artem Bykov
9250a1e155
Fix the path to tests file in error handling doc ( #781 )
2020-04-20 18:04:38 +02:00
Antoni Kepinski
6e1b579ce0
lint
2020-04-15 11:11:52 +02:00
John Lees-Miller
3898eff16c
docs: Add more complete stream download example ( #645 )
...
* Add more complete stream download example
* Change header size
Co-authored-by: Antoni Kepinski <xxczaki@pm.me>
2020-04-15 11:00:15 +02:00
Antoni Kepinski
7c6031f4c1
docs: update information about cookies
2020-04-15 10:53:59 +02:00
Richie Bendall
ebbf45cc67
refactor: Use built-in AbortSignal for typings ( #747 )
...
* refactor: Use built-in AbortSignal for typings
Signed-off-by: Richie Bendall <richiebendall@gmail.com>
* lint
* chore: Update dependencies
Signed-off-by: Richie Bendall <richiebendall@gmail.com>
Co-authored-by: Antoni Kepinski <xxczaki@pm.me>
2020-04-14 14:22:40 +02:00
Richie Bendall
d15476bb5d
Compile CJS modules as a seperate set of files ( #778 )
...
* Switch to seperate babel compilation
Signed-off-by: Richie Bendall <richiebendall@gmail.com>
* resolve merge conflict
* add missing devDependency
* fix wrong name
* Specify ES version under `module` property and specify `sideEffects`
Co-authored-by: Antoni Kepinski <xxczaki@pm.me>
2020-04-14 13:03:24 +02:00
Max Dumas
736baf300b
fix: Import URL and URLSearchParams in typings ( #761 )
...
This change adds an explicit import for the URL and URLSearchParams typings from the Node standard library `'url'` module.
This was needed to prevent the TypeScript compiler from issuing errors when compiling against targets where URL and URLSearchParams are not ambiently available.
Co-authored-by: Antoni Kepinski <xxczaki@pm.me>
2020-04-14 12:20:02 +02:00
Antoni Kepinski
766204fede
update coverage badge
2020-04-14 12:03:27 +02:00
Antoni Kepinski
8f3c540794
fix coverage report & update scripts
2020-04-14 11:59:32 +02:00
Antoni Kepinski
5ecb48eec6
add @pika/plugin-build-node to @pika/pack pipeline
2020-04-13 16:48:21 +02:00
Saksama Terminal
33532c29e0
fix: Ensure search parameters are included in URL path ( #759 )
...
* fix search params missing from url path
* fix search params missing from url path
* Trigger travis ci
Co-authored-by: Antoni Kepinski <xxczaki@pm.me>
2020-04-13 16:23:26 +02:00
Antoni Kepinski
b1bd179891
update dependencies
2020-04-13 13:42:53 +02:00
Antoni Kepinski
55b6004581
lint
2020-04-13 13:42:35 +02:00
Richie Bendall
bb9c96de80
Fix indention
...
Signed-off-by: Richie Bendall <richiebendall@gmail.com>
2020-04-04 17:07:01 +13:00
Antoni Kepinski
c167190c6e
revert fix: Properly export fetch
2020-03-28 19:03:23 +01:00
Antoni Kepinski
48a9886fc5
update dependencies
2020-03-28 19:03:13 +01:00
Richie Bendall
7c66f9ce82
fix: Properly export fetch
...
Signed-off-by: Richie Bendall <richiebendall@gmail.com>
2020-03-14 23:08:36 +13:00
Richie Bendall
d75bed0da1
chore: Correctly import typings
...
Signed-off-by: Richie Bendall <richiebendall@gmail.com>
2020-03-14 11:07:56 +13:00
Richie Bendall
b44c29521d
chore: Remove unneeded build stages
...
Signed-off-by: Richie Bendall <richiebendall@gmail.com>
2020-03-14 11:06:13 +13:00
Richie Bendall
62b5f2cc86
chore: Reference the correct file
...
Signed-off-by: Richie Bendall <richiebendall@gmail.com>
2020-03-14 10:54:40 +13:00
Richie Bendall
9e1302ea98
chore: Fix publishing
...
Signed-off-by: Richie Bendall <richiebendall@gmail.com>
2020-03-14 09:59:54 +13:00
David Frank
6f2a5efbb6
Fix package.json ( #746 )
...
* fix main and remove module export
* fix types export
* 3.0.0-beta.2
* we no longer need main export in package.json, the actual export will live under dist/ folder
* adding version script per pika
2020-03-14 03:00:26 +08:00
Antoni Kepinski
e59db18432
Lint example code
2020-03-13 18:01:45 +01:00
Antoni Kepinski
3c3558e259
Update README.md
2020-03-13 17:56:12 +01:00
Antoni Kepinski
93cb0e77df
typo
2020-03-13 17:25:14 +01:00
Antoni Kepinski
47d579249e
Change release name to `3.0.0-beta.1`, remove unnecessary comment
2020-03-13 17:22:39 +01:00