Skip to content

Commit

Permalink
style(runPipelineNode): loadEmscriptenModuleNode consistent with export
Browse files Browse the repository at this point in the history
  • Loading branch information
thewtex committed Oct 19, 2022
1 parent a461426 commit e36ba4f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/core/internal/createWebWorkerPromise.ts
Expand Up @@ -29,7 +29,7 @@ async function createWebWorkerPromise (existingWorker: Worker | null): Promise<c
}

let worker = null
// @ts-ignore: error TS2339: Property 'webWorkersUrl' does not exist on type '{ pipelineWorkerUrl: string; imageIOUrl: string; meshIOUrl: string; pipelinesUrl: string; }
// @ts-expect-error: error TS2339: Property 'webWorkersUrl' does not exist on type '{ pipelineWorkerUrl: string; imageIOUrl: string; meshIOUrl: string; pipelinesUrl: string; }
const webWorkersUrl = config.webWorkersUrl
if (typeof webWorkersUrl !== 'undefined') {
console.warn('itkConfig webWorkersUrl is deprecated. Please use pipelineWorkerUrl with the full path to the pipeline worker.')
Expand Down
2 changes: 1 addition & 1 deletion src/core/version.ts
@@ -1,3 +1,3 @@
const version = '0.0.0-semantically-released'

export default version
export default version
4 changes: 2 additions & 2 deletions src/pipeline/runPipelineNode.ts
@@ -1,4 +1,4 @@
import loadEmscriptenModule from '../core/internal/loadEmscriptenModuleNode.js'
import loadEmscriptenModuleNode from '../core/internal/loadEmscriptenModuleNode.js'
import runPipelineEmscripten from './internal/runPipelineEmscripten.js'

import PipelineEmscriptenModule from './PipelineEmscriptenModule.js'
Expand All @@ -7,7 +7,7 @@ import PipelineInput from './PipelineInput.js'
import RunPipelineResult from './RunPipelineResult.js'

async function runPipelineNode (pipelinePath: string, args: string[], outputs: PipelineOutput[], inputs: PipelineInput[] | null): Promise<RunPipelineResult> {
const Module = await loadEmscriptenModule(pipelinePath) as PipelineEmscriptenModule
const Module = await loadEmscriptenModuleNode(pipelinePath) as PipelineEmscriptenModule
const result = runPipelineEmscripten(Module, args, outputs, inputs)
return result
}
Expand Down

0 comments on commit e36ba4f

Please sign in to comment.