@stemy/ngx-utils 19.4.14 → 19.4.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -7604,13 +7604,13 @@ class UploadComponent {
|
|
|
7604
7604
|
}
|
|
7605
7605
|
const request = this.http.post(baseUrl, makeUpload(p.file), {
|
|
7606
7606
|
headers, observe: "events", reportProgress: true
|
|
7607
|
-
})
|
|
7608
|
-
request.subscribe(value => {
|
|
7607
|
+
}).pipe(map(value => {
|
|
7609
7608
|
if (value.type === HttpEventType.UploadProgress) {
|
|
7610
7609
|
p.progress = Math.round(value.loaded / value.total * 100);
|
|
7611
7610
|
this.cdr.detectChanges();
|
|
7612
7611
|
}
|
|
7613
|
-
|
|
7612
|
+
return value;
|
|
7613
|
+
}));
|
|
7614
7614
|
return lastValueFrom(request)
|
|
7615
7615
|
.then((res) => {
|
|
7616
7616
|
const body = res.body;
|