File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ Bugfixes:
12
12
13
13
Other improvements:
14
14
- CI: Add sha256 checksum generation on the release workflow (#816 )
15
+ - Replacing deprecated ` request ` by ` make-fetch-happen ` for NPM installation (#840 )
15
16
16
17
## [ 0.20.3] - 2021-05-12
17
18
Original file line number Diff line number Diff line change 1
1
"use strict" ;
2
2
3
- const request = require ( "request " ) ;
3
+ const fetch = require ( "make-fetch-happen " ) ;
4
4
const tar = require ( "tar" ) ;
5
5
const version = "PACKAGE_VERSION" ;
6
6
const platform = { win32 : "Windows" , darwin : "macOS" } [ process . platform ] || "Linux" ;
7
7
const url = `https://github.com/purescript/spago/releases/download/${ version } /${ platform } .tar.gz`
8
8
9
- request . get ( url ) . pipe ( tar . x ( { "C" : './' } ) ) ;
9
+ fetch ( url ) . then ( res => res . body . pipe ( tar . x ( { "C" : './' } ) ) ) ;
Original file line number Diff line number Diff line change 15
15
"spago" : " ./spago"
16
16
},
17
17
"dependencies" : {
18
- "request " : " ^2.88 .0" ,
19
- "tar" : " ^4.4.8 "
18
+ "make-fetch-happen " : " ^9.1 .0" ,
19
+ "tar" : " ^6.1.11 "
20
20
},
21
21
"keywords" : [
22
22
" purescript" ,
You can’t perform that action at this time.
0 commit comments