Mercurial > hg > ugly-duckling
diff src/app/services/feature-extraction/FeatureExtractionWorker.ts @ 236:53ea6406d601
Generate new project with latest @angular/cli, including Angular 4.
author | Lucas Thompson <dev@lucas.im> |
---|---|
date | Tue, 25 Apr 2017 20:01:09 +0100 |
parents | efa23f33393b |
children | 7106cdd59e62 |
line wrap: on
line diff
--- a/src/app/services/feature-extraction/FeatureExtractionWorker.ts Mon Apr 24 17:05:12 2017 +0100 +++ b/src/app/services/feature-extraction/FeatureExtractionWorker.ts Tue Apr 25 20:01:09 2017 +0100 @@ -7,19 +7,18 @@ SimpleRequest } from 'piper/HigherLevelUtilities'; import { VampExamplePlugins } from 'piper/ext/VampExamplePluginsModule'; -import {AvailableLibraries} from "./feature-extraction.service"; +import {AvailableLibraries} from './feature-extraction.service'; import { DedicatedWorkerGlobalScope, WebWorkerStreamingServer -} from "piper/servers/WebWorkerStreamingServer"; +} from 'piper/servers/WebWorkerStreamingServer'; import { PiperStreamingService, StreamingResponse, StreamingService -} from "piper/StreamingService"; -import {Observable} from "rxjs/Observable"; -import {EmscriptenModule} from "piper/PiperVampService"; - +} from 'piper/StreamingService'; +import {Observable} from 'rxjs/Observable'; +import {EmscriptenModule} from 'piper/PiperVampService'; interface MessageEvent { readonly data: any; @@ -64,7 +63,7 @@ collect(request: SimpleRequest): Observable<StreamingResponse> { const key = request.key.split(':')[0]; return this.services.has(key) ? - this.services.get(key).collect(request) : Observable.throw("Invalid key"); + this.services.get(key).collect(request) : Observable.throw('Invalid key'); } } @@ -115,8 +114,8 @@ break; case 'addRemoteLibraries': // TODO rename const available: AvailableLibraries = ev.data.params; - Object.keys(available).forEach(key => { - this.remoteLibraries.set(key, available[key]); + Object.keys(available).forEach(libraryKey => { + this.remoteLibraries.set(libraryKey, available[libraryKey]); }); } };