@ubercode/dcmtk 0.6.4 → 0.7.0

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.
package/dist/tools.d.cts CHANGED
@@ -1474,6 +1474,8 @@ interface StorescuOptions extends ToolBaseOptions {
1474
1474
  interface StorescuResult {
1475
1475
  /** Whether the store completed successfully. */
1476
1476
  readonly success: boolean;
1477
+ /** Raw stdout output for diagnostic info. */
1478
+ readonly stdout: string;
1477
1479
  /** Raw stderr output for diagnostic info. */
1478
1480
  readonly stderr: string;
1479
1481
  }
package/dist/tools.d.ts CHANGED
@@ -1474,6 +1474,8 @@ interface StorescuOptions extends ToolBaseOptions {
1474
1474
  interface StorescuResult {
1475
1475
  /** Whether the store completed successfully. */
1476
1476
  readonly success: boolean;
1477
+ /** Raw stdout output for diagnostic info. */
1478
+ readonly stdout: string;
1477
1479
  /** Raw stderr output for diagnostic info. */
1478
1480
  readonly stderr: string;
1479
1481
  }
package/dist/tools.js CHANGED
@@ -704,7 +704,7 @@ async function dcmconv(inputPath, outputPath, options) {
704
704
  }
705
705
  return ok({ outputPath });
706
706
  }
707
- var TAG_OR_PATH_PATTERN = /^\([0-9A-Fa-f]{4},[0-9A-Fa-f]{4}\)(\[\d+\])?(\.\([0-9A-Fa-f]{4},[0-9A-Fa-f]{4}\)(\[\d+\])?)*$/;
707
+ var TAG_OR_PATH_PATTERN = /^\([0-9A-Fa-f]{4},[0-9A-Fa-f]{4}\)(\[\d+\]\.\([0-9A-Fa-f]{4},[0-9A-Fa-f]{4}\))*(\[\d+\])?$/;
708
708
  var TagModificationSchema = z.object({
709
709
  tag: z.string().regex(TAG_OR_PATH_PATTERN),
710
710
  value: z.string()
@@ -2409,7 +2409,7 @@ async function storescu(options) {
2409
2409
  if (result.value.exitCode !== 0) {
2410
2410
  return err(createToolError("storescu", args, result.value.exitCode, result.value.stderr));
2411
2411
  }
2412
- return ok({ success: true, stderr: result.value.stderr });
2412
+ return ok({ success: true, stdout: result.value.stdout, stderr: result.value.stderr });
2413
2413
  }
2414
2414
  var QueryModel = {
2415
2415
  WORKLIST: "worklist",