style: usun em-dashe z calego repo (zamiana na zwykly mylnik)
All checks were successful
deploy / deploy (push) Successful in 1m3s
All checks were successful
deploy / deploy (push) Successful in 1m3s
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "vsd-api",
|
||||
"version": "6.5.6",
|
||||
"description": "Video & Sound Downloader Pro — API (NestJS)",
|
||||
"description": "Video & Sound Downloader Pro - API (NestJS)",
|
||||
"license": "UNLICENSED",
|
||||
"scripts": {
|
||||
"build": "nest build",
|
||||
|
||||
@@ -30,7 +30,7 @@ export class JobsController {
|
||||
|
||||
@Sse(':id/events')
|
||||
events(@Param('id') id: string): Observable<MessageEvent> {
|
||||
// Bez pola `type` — inaczej Nest emituje nazwane zdarzenia (event: <kind>),
|
||||
// Bez pola `type` - inaczej Nest emituje nazwane zdarzenia (event: <kind>),
|
||||
// a przeglądarkowy EventSource.onmessage reaguje tylko na domyślne „message”.
|
||||
return this.jobs.events(id).pipe(
|
||||
map((ev) => ({ data: JSON.stringify(ev) }) as MessageEvent),
|
||||
|
||||
@@ -129,7 +129,7 @@ export class JobsService {
|
||||
if (entries.length === 1) {
|
||||
const p = path.join(job.workDir, entries[0]);
|
||||
const st = await fs.stat(p);
|
||||
this.emit(job, { kind: 'log', line: `OK: gotowy plik — ${entries[0]} (${fmtSize(st.size)})` });
|
||||
this.emit(job, { kind: 'log', line: `OK: gotowy plik - ${entries[0]} (${fmtSize(st.size)})` });
|
||||
return { path: p, name: entries[0], size: st.size };
|
||||
}
|
||||
|
||||
@@ -147,7 +147,7 @@ export class JobsService {
|
||||
void archive.finalize();
|
||||
});
|
||||
const st = await fs.stat(zipPath);
|
||||
this.emit(job, { kind: 'log', line: `OK: gotowe archiwum — ${zipName} (${fmtSize(st.size)})` });
|
||||
this.emit(job, { kind: 'log', line: `OK: gotowe archiwum - ${zipName} (${fmtSize(st.size)})` });
|
||||
return { path: zipPath, name: zipName, size: st.size };
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user