File tree 2 files changed +4
-7
lines changed 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " sass-embedded" ,
3
- "version" : " 1.58.0 " ,
4
- "protocol-version" : " 1.1 .0" ,
5
- "compiler-version" : " 1.58.0 " ,
3
+ "version" : " 1.58.1 " ,
4
+ "protocol-version" : " 1.2 .0" ,
5
+ "compiler-version" : " 1.58.1 " ,
6
6
"description" : " Node.js library that communicates with Embedded Dart Sass using the Embedded Sass protocol" ,
7
7
"repository" : " sass/embedded-host-node" ,
8
8
"author" : " Google Inc." ,
50
50
"@types/google-protobuf" : " ^3.7.2" ,
51
51
"@types/jest" : " ^29.4.0" ,
52
52
"@types/node" : " ^18.11.18" ,
53
- "@types/node-fetch" : " ^2.6.0" ,
54
53
"@types/shelljs" : " ^0.8.8" ,
55
54
"@types/supports-color" : " ^8.1.1" ,
56
55
"@types/tar" : " ^6.1.0" ,
60
59
"gts" : " ^4.0.0" ,
61
60
"jest" : " ^29.4.1" ,
62
61
"minipass" : " 4.0.3" ,
63
- "node-fetch" : " ^3.3.0" ,
64
62
"npm-run-all" : " ^4.1.5" ,
65
63
"path-equal" : " ^1.2.5" ,
66
64
"shelljs" : " ^0.8.4" ,
Original file line number Diff line number Diff line change 1
1
import extractZip = require( 'extract-zip' ) ;
2
2
import { promises as fs } from 'fs' ;
3
- import fetch from 'node-fetch' ;
4
3
import * as p from 'path' ;
5
4
import { extract as extractTar } from 'tar' ;
6
5
import yargs from 'yargs' ;
@@ -80,7 +79,7 @@ async function downloadRelease(options: {
80
79
`Failed to download ${ options . repo } release asset: ${ response . statusText } `
81
80
) ;
82
81
}
83
- const releaseAsset = await response . buffer ( ) ;
82
+ const releaseAsset = Buffer . from ( await response . arrayBuffer ( ) ) ;
84
83
85
84
console . log ( `Unzipping ${ options . repo } release asset to ${ options . outPath } .` ) ;
86
85
await utils . cleanDir ( p . join ( options . outPath , options . repo ) ) ;
You can’t perform that action at this time.
0 commit comments