Fixed upload export
All checks were successful
Build / Build NPM Project (push) Successful in 15s
Build / Tag Version (push) Successful in 5s
Build / Publish (push) Successful in 7s

This commit is contained in:
Zakary Timson 2024-04-24 07:01:36 -04:00
parent 2fe8cdb96a
commit 7cd717fc7d
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@ztimson/utils",
"version": "0.8.0",
"version": "0.8.1",
"description": "Utility library",
"author": "Zak Timson",
"license": "MIT",

View File

@ -6,7 +6,7 @@ export type UploadEvents = TypedEvents & {
progress: (progress: number) => any;
}
function uploadProgress(files : File | FileList, url: string) {
export function uploadProgress(files : File | FileList, url: string) {
const xhr = new XMLHttpRequest();
const progress = new TypedEmitter<UploadEvents>();
const formData = new FormData();