File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import fs from 'node:fs';
2
2
import path from 'node:path' ;
3
3
import got from 'got' ;
4
4
import { globby } from 'globby' ;
5
- import FormData from 'form-data ' ;
5
+ import { FormData , fileFromSync } from 'node-fetch ' ;
6
6
import allSettled from 'promise.allsettled' ;
7
7
import _ from 'lodash' ;
8
8
import Release from '../GitRelease.js' ;
@@ -232,7 +232,7 @@ class GitLab extends Release {
232
232
const endpoint = `projects/${ id } /uploads` ;
233
233
234
234
const body = new FormData ( ) ;
235
- body . append ( 'file' , fs . createReadStream ( filePath ) ) ;
235
+ body . set ( 'file' , fileFromSync ( filePath ) ) ;
236
236
const options = { body } ;
237
237
238
238
try {
Original file line number Diff line number Diff line change 65
65
"chalk" : " 5.1.2" ,
66
66
"cosmiconfig" : " 8.0.0" ,
67
67
"execa" : " 6.1.0" ,
68
- "form-data" : " 4.0.0" ,
69
68
"git-url-parse" : " 13.1.0" ,
70
69
"globby" : " 13.1.2" ,
71
70
"got" : " 12.5.3" ,
You can’t perform that action at this time.
0 commit comments