cod-dicomweb-server 1.3.4 → 1.3.6

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/README.md CHANGED
@@ -46,7 +46,7 @@ yarn add cod-dicomweb-server
46
46
  2. **Use the methods of the package in any file in the target repo**:
47
47
 
48
48
  ```javaScript
49
- import { CodDicomWebServer, FetchType } from 'cod-dicomweb-server';
49
+ import { CodDicomWebServer, FetchType, clearPartialFiles } from 'cod-dicomweb-server';
50
50
 
51
51
  const server = new CodDicomWebServer();
52
52
  const wadorsUrl = "https://storage.googleapis.com/gradienthealth_cod_dicomweb_public_benchmark/v1/dicomweb/studies/1.2.826.0.1.3680043.8.498.25373200666081576206661715880670310913/series/1.2.826.0.1.3680043.8.498.17065113110917795618106606234460323040/instances/1.3.6.1.4.1.14519.5.2.1.7009.2403.109731662822930985185381565631/frames/1";
@@ -55,6 +55,9 @@ const headers = {};
55
55
  const result = await server.fetchCod( wadorsUrl, headers, { useSharedArrayBuffer: true, fetchType: FetchType.BYTES_OPTIMIZED, });
56
56
 
57
57
  console.log(result);
58
+
59
+ // This will clear the PartialFiles fetched through BYTES_OPTiMIZED mode from the OPFS.
60
+ await clearPartialFiles();
58
61
  ```
59
62
 
60
63
  ## Testing