@cornerstonejs/core 2.18.3 → 2.18.5

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.
@@ -10,5 +10,5 @@ declare function resetInitialization(): void;
10
10
  declare function getConfiguration(): Cornerstone3DConfig;
11
11
  declare function setConfiguration(c: Cornerstone3DConfig): void;
12
12
  declare function getWebWorkerManager(): any;
13
- declare function peerImport(moduleId: string): any;
13
+ declare function peerImport(moduleId: string): Promise<any>;
14
14
  export { init, getShouldUseCPURendering, isCornerstoneInitialized, setUseCPURendering, setPreferSizeOverAccuracy, resetUseCPURendering, getConfiguration, setConfiguration, getWebWorkerManager, canRenderFloatTextures, peerImport, resetInitialization, };
package/dist/esm/init.js CHANGED
@@ -126,7 +126,7 @@ function getWebWorkerManager() {
126
126
  }
127
127
  return webWorkerManager;
128
128
  }
129
- function peerImport(moduleId) {
129
+ async function peerImport(moduleId) {
130
130
  return config.peerImport(moduleId);
131
131
  }
132
132
  export { init, getShouldUseCPURendering, isCornerstoneInitialized, setUseCPURendering, setPreferSizeOverAccuracy, resetUseCPURendering, getConfiguration, setConfiguration, getWebWorkerManager, canRenderFloatTextures, peerImport, resetInitialization, };
@@ -8,6 +8,6 @@ interface Cornerstone3DConfig {
8
8
  useCPURendering: boolean;
9
9
  strictZSpacingForVolumeViewport: boolean;
10
10
  };
11
- peerImport?: (moduleId: string) => any;
11
+ peerImport?: (moduleId: string) => Promise<any>;
12
12
  }
13
13
  export type { Cornerstone3DConfig as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cornerstonejs/core",
3
- "version": "2.18.3",
3
+ "version": "2.18.5",
4
4
  "description": "Cornerstone3D Core",
5
5
  "module": "./dist/esm/index.js",
6
6
  "types": "./dist/esm/index.d.ts",
@@ -82,5 +82,5 @@
82
82
  "type": "individual",
83
83
  "url": "https://ohif.org/donate"
84
84
  },
85
- "gitHead": "cc92461656c37883686759ab4b495219046f4be7"
85
+ "gitHead": "be8bb617be050ca5aa5a9d2d61013a9c674efa5d"
86
86
  }