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:
1212
1313Other improvements:
1414- CI: Add sha256 checksum generation on the release workflow (#816 )
15+ - Replacing deprecated ` request ` by ` make-fetch-happen ` for NPM installation (#840 )
1516
1617## [ 0.20.3] - 2021-05-12
1718
Original file line number Diff line number Diff line change 11"use strict" ;
22
3- const request = require ( "request " ) ;
3+ const fetch = require ( "make-fetch-happen " ) ;
44const tar = require ( "tar" ) ;
55const version = "PACKAGE_VERSION" ;
66const platform = { win32 : "Windows" , darwin : "macOS" } [ process . platform ] || "Linux" ;
77const url = `https://github.com/purescript/spago/releases/download/${ version } /${ platform } .tar.gz`
88
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 1515 "spago" : " ./spago"
1616 },
1717 "dependencies" : {
18- "request " : " ^2.88 .0" ,
19- "tar" : " ^4.4.8 "
18+ "make-fetch-happen " : " ^9.1 .0" ,
19+ "tar" : " ^6.1.11 "
2020 },
2121 "keywords" : [
2222 " purescript" ,
You can’t perform that action at this time.
0 commit comments