diff --git a/package.json b/package.json index c61127de7..b1a75f147 100644 --- a/package.json +++ b/package.json @@ -36,9 +36,9 @@ "build:webpack": "webpack --mode production --progress --color && webpack --mode development --progress --color", "build:emscripten": "node ./src/build-emscripten.js", "build:emscripten:compress-stringify": "node ./src/itk-wasm-cli.js -s packages/compress-stringify -b emscripten-build build ", - "build:bindgen:typescript:compress-stringify": "./src/itk-wasm-cli.js -s packages/compress-stringify -b emscripten-build bindgen --package-version 0.6.0 --package-name @itk-wasm/compress-stringify --package-description \"Zstandard compression and decompression and base64 encoding and decoding in WebAssembly.\" --repository 'https://github.com/InsightSoftwareConsortium/itk-wasm'", - "build:bindgen:python:compress-stringify": "./src/itk-wasm-cli.js -s packages/compress-stringify -b wasi-build bindgen --interface python --package-name itkwasm-compress-stringify --package-description \"Zstandard compression and decompression and base64 encoding and decoding in WebAssembly.\" --package-version 0.6.0 --repository 'https://github.com/InsightSoftwareConsortium/itk-wasm'", - "build:bindgen:python-web-demo:compress-stringify": "./src/itk-wasm-cli.js -s packages/compress-stringify -b emscripten-build bindgen --interface python-web-demo --package-name itkwasm-compress-stringify --package-description \"Zstandard compression and decompression and base64 encoding and decoding in WebAssembly.\" --package-version 0.6.0 --repository 'https://github.com/InsightSoftwareConsortium/itk-wasm'", + "build:bindgen:typescript:compress-stringify": "./src/itk-wasm-cli.js -s packages/compress-stringify -b emscripten-build bindgen --package-version 0.6.1 --package-name @itk-wasm/compress-stringify --package-description \"Zstandard compression and decompression and base64 encoding and decoding in WebAssembly.\" --repository 'https://github.com/InsightSoftwareConsortium/itk-wasm'", + "build:bindgen:python:compress-stringify": "./src/itk-wasm-cli.js -s packages/compress-stringify -b wasi-build bindgen --interface python --package-name itkwasm-compress-stringify --package-description \"Zstandard compression and decompression and base64 encoding and decoding in WebAssembly.\" --package-version 0.6.1 --repository 'https://github.com/InsightSoftwareConsortium/itk-wasm'", + "build:bindgen:python-web-demo:compress-stringify": "./src/itk-wasm-cli.js -s packages/compress-stringify -b emscripten-build bindgen --interface python-web-demo --package-name itkwasm-compress-stringify --package-description \"Zstandard compression and decompression and base64 encoding and decoding in WebAssembly.\" --package-version 0.6.1 --repository 'https://github.com/InsightSoftwareConsortium/itk-wasm'", "build:emscripten:dicom": "node ./src/itk-wasm-cli.js -s packages/dicom -b emscripten-build build", "build:bindgen:typescript:dicom": "./src/itk-wasm-cli.js -s packages/dicom -b emscripten-build bindgen --package-version 3.3.0 --package-name @itk-wasm/dicom --package-description \"Read files and images related to DICOM file format.\" --repository 'https://github.com/InsightSoftwareConsortium/itk-wasm'", "build:bindgen:python:dicom": "./src/itk-wasm-cli.js -s packages/dicom -b wasi-build bindgen --package-version 3.3.0 --interface python --package-name itkwasm-dicom --package-description \"Read files and images related to DICOM file format.\" --repository 'https://github.com/InsightSoftwareConsortium/itk-wasm'", diff --git a/packages/compress-stringify/python/itkwasm-compress-stringify-emscripten/itkwasm_compress_stringify_emscripten/_version.py b/packages/compress-stringify/python/itkwasm-compress-stringify-emscripten/itkwasm_compress_stringify_emscripten/_version.py index 906d362f7..43c4ab005 100644 --- a/packages/compress-stringify/python/itkwasm-compress-stringify-emscripten/itkwasm_compress_stringify_emscripten/_version.py +++ b/packages/compress-stringify/python/itkwasm-compress-stringify-emscripten/itkwasm_compress_stringify_emscripten/_version.py @@ -1 +1 @@ -__version__ = "0.6.0" +__version__ = "0.6.1" diff --git a/packages/compress-stringify/python/itkwasm-compress-stringify-wasi/itkwasm_compress_stringify_wasi/_version.py b/packages/compress-stringify/python/itkwasm-compress-stringify-wasi/itkwasm_compress_stringify_wasi/_version.py index 906d362f7..43c4ab005 100644 --- a/packages/compress-stringify/python/itkwasm-compress-stringify-wasi/itkwasm_compress_stringify_wasi/_version.py +++ b/packages/compress-stringify/python/itkwasm-compress-stringify-wasi/itkwasm_compress_stringify_wasi/_version.py @@ -1 +1 @@ -__version__ = "0.6.0" +__version__ = "0.6.1" diff --git a/packages/compress-stringify/python/itkwasm-compress-stringify/itkwasm_compress_stringify/_version.py b/packages/compress-stringify/python/itkwasm-compress-stringify/itkwasm_compress_stringify/_version.py index 906d362f7..43c4ab005 100644 --- a/packages/compress-stringify/python/itkwasm-compress-stringify/itkwasm_compress_stringify/_version.py +++ b/packages/compress-stringify/python/itkwasm-compress-stringify/itkwasm_compress_stringify/_version.py @@ -1 +1 @@ -__version__ = "0.6.0" +__version__ = "0.6.1" diff --git a/packages/compress-stringify/typescript/package-lock.json b/packages/compress-stringify/typescript/package-lock.json index e6fdbce8c..7aad8ff82 100644 --- a/packages/compress-stringify/typescript/package-lock.json +++ b/packages/compress-stringify/typescript/package-lock.json @@ -1,15 +1,15 @@ { "name": "@itk-wasm/compress-stringify", - "version": "0.6.0", + "version": "0.6.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@itk-wasm/compress-stringify", - "version": "0.6.0", + "version": "0.6.1", "license": "Apache-2.0", "dependencies": { - "itk-wasm": "^1.0.0-b.138" + "itk-wasm": "^1.0.0-b.142" }, "devDependencies": { "@rollup/plugin-commonjs": "^24.0.0", @@ -3024,9 +3024,9 @@ "dev": true }, "node_modules/itk-wasm": { - "version": "1.0.0-b.138", - "resolved": "https://registry.npmjs.org/itk-wasm/-/itk-wasm-1.0.0-b.138.tgz", - "integrity": "sha512-LRU62u+KznDMeopAQzVB+aatVmZ1D8owm3htOHe6QRYRv3mkZJpvFTkdw+4lgpHpFf2Zcvnz2XgjDOv3c+ggcw==", + "version": "1.0.0-b.142", + "resolved": "https://registry.npmjs.org/itk-wasm/-/itk-wasm-1.0.0-b.142.tgz", + "integrity": "sha512-EMtl91UuG1GhPgPDhHVKsc404OIAevAk0LnglLS4VqSt5cGozgyx6Kx9wdZxw6b0+pTKjJjOiCZsElUCoUzn4Q==", "dependencies": { "@babel/runtime": "^7.15.4", "@thewtex/zstddec": "^0.1.2", diff --git a/packages/compress-stringify/typescript/package.json b/packages/compress-stringify/typescript/package.json index a3a0f949c..79e3e9500 100644 --- a/packages/compress-stringify/typescript/package.json +++ b/packages/compress-stringify/typescript/package.json @@ -1,6 +1,6 @@ { "name": "@itk-wasm/compress-stringify", - "version": "0.6.0", + "version": "0.6.1", "description": "Zstandard compression and decompression and base64 encoding and decoding in WebAssembly.", "type": "module", "module": "./dist/bundles/compress-stringify.js", @@ -39,7 +39,7 @@ "author": "", "license": "Apache-2.0", "dependencies": { - "itk-wasm": "^1.0.0-b.138" + "itk-wasm": "^1.0.0-b.142" }, "devDependencies": { "@rollup/plugin-commonjs": "^24.0.0", diff --git a/packages/dicom/typescript/src/apply-presentation-state-to-image-node.ts b/packages/dicom/typescript/src/apply-presentation-state-to-image-node.ts index 1ec54ea88..2c4649c27 100644 --- a/packages/dicom/typescript/src/apply-presentation-state-to-image-node.ts +++ b/packages/dicom/typescript/src/apply-presentation-state-to-image-node.ts @@ -37,8 +37,8 @@ async function applyPresentationStateToImageNode( { type: InterfaceTypes.Image }, ] - mountDirs.add(path.dirname(value as string)) - mountDirs.add(path.dirname(value as string)) + mountDirs.add(path.dirname(imageIn as string)) + mountDirs.add(path.dirname(presentationStateFile as string)) const inputs: Array = [ ] diff --git a/packages/dicom/typescript/src/read-dicom-encapsulated-pdf-node.ts b/packages/dicom/typescript/src/read-dicom-encapsulated-pdf-node.ts index 34711c764..cbbf03508 100644 --- a/packages/dicom/typescript/src/read-dicom-encapsulated-pdf-node.ts +++ b/packages/dicom/typescript/src/read-dicom-encapsulated-pdf-node.ts @@ -33,7 +33,7 @@ async function readDicomEncapsulatedPdfNode( { type: InterfaceTypes.BinaryStream }, ] - mountDirs.add(path.dirname(value as string)) + mountDirs.add(path.dirname(dicomFile as string)) const inputs: Array = [ ] diff --git a/packages/dicom/typescript/src/structured-report-to-html-node.ts b/packages/dicom/typescript/src/structured-report-to-html-node.ts index b8598613c..44603d164 100644 --- a/packages/dicom/typescript/src/structured-report-to-html-node.ts +++ b/packages/dicom/typescript/src/structured-report-to-html-node.ts @@ -33,7 +33,7 @@ async function structuredReportToHtmlNode( { type: InterfaceTypes.TextStream }, ] - mountDirs.add(path.dirname(value as string)) + mountDirs.add(path.dirname(dicomFile as string)) const inputs: Array = [ ] @@ -127,7 +127,7 @@ async function structuredReportToHtmlNode( } if (typeof options.cssFile !== "undefined") { const cssFile = options.cssFile - mountDirs.add(path.dirname(value as string)) + mountDirs.add(path.dirname(cssFile as string)) args.push('--css-file') const name = cssFile as string diff --git a/packages/dicom/typescript/src/structured-report-to-text-node.ts b/packages/dicom/typescript/src/structured-report-to-text-node.ts index 2c93962c1..a6e9c2cc9 100644 --- a/packages/dicom/typescript/src/structured-report-to-text-node.ts +++ b/packages/dicom/typescript/src/structured-report-to-text-node.ts @@ -33,7 +33,7 @@ async function structuredReportToTextNode( { type: InterfaceTypes.TextStream }, ] - mountDirs.add(path.dirname(value as string)) + mountDirs.add(path.dirname(dicomFile as string)) const inputs: Array = [ ] diff --git a/src/bindgen/typescript/function-module.js b/src/bindgen/typescript/function-module.js index f497bd6d6..83dfb8974 100644 --- a/src/bindgen/typescript/function-module.js +++ b/src/bindgen/typescript/function-module.js @@ -12,7 +12,7 @@ function readFileIfNotInterfaceType(forNode, interfaceType, varName, indent, isA if (isArray) { return `${indent}value.forEach((p) => mountDirs.add(path.dirname(p) as string))\n` } else { - return `${indent}mountDirs.add(path.dirname(value as string))\n` + return `${indent}mountDirs.add(path.dirname(${varName} as string))\n` } } else { @@ -363,7 +363,7 @@ function functionModule (srcOutputDir, forNode, interfaceJson, modulePascalCase, if (interfaceType.includes('File')) { // for files if (forNode) { - functionContent += ' mountDirs.add(path.dirname(value as string))\n' + functionContent += ` mountDirs.add(path.dirname(value as string))\n` functionContent += ' args.push(value as string)\n' } else { functionContent += readFileIfNotInterfaceType(forNode, interfaceType, 'value', ' ', false)