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';
22import path from 'node:path' ;
33import got from 'got' ;
44import { globby } from 'globby' ;
5- import FormData from 'form-data ' ;
5+ import { FormData , fileFromSync } from 'node-fetch ' ;
66import allSettled from 'promise.allsettled' ;
77import _ from 'lodash' ;
88import Release from '../GitRelease.js' ;
@@ -232,7 +232,7 @@ class GitLab extends Release {
232232 const endpoint = `projects/${ id } /uploads` ;
233233
234234 const body = new FormData ( ) ;
235- body . append ( 'file' , fs . createReadStream ( filePath ) ) ;
235+ body . set ( 'file' , fileFromSync ( filePath ) ) ;
236236 const options = { body } ;
237237
238238 try {
Original file line number Diff line number Diff line change 6565 "chalk" : " 5.1.2" ,
6666 "cosmiconfig" : " 8.0.0" ,
6767 "execa" : " 6.1.0" ,
68- "form-data" : " 4.0.0" ,
6968 "git-url-parse" : " 13.1.0" ,
7069 "globby" : " 13.1.2" ,
7170 "got" : " 12.5.3" ,
You can’t perform that action at this time.
0 commit comments