@niivue/niivue 0.45.0 → 0.45.1

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/index.js CHANGED
@@ -95525,7 +95525,7 @@ var forEach3 = function() {
95525
95525
  }();
95526
95526
 
95527
95527
  // package.json
95528
- var version = "0.45.0";
95528
+ var version = "0.45.1";
95529
95529
 
95530
95530
  // src/logger.ts
95531
95531
  var _Log = class _Log {
@@ -122265,7 +122265,7 @@ var Niivue = class _Niivue {
122265
122265
  }
122266
122266
  async addVolumesFromUrl(imageOptionsArray) {
122267
122267
  const promises = imageOptionsArray.map(async (imageItem) => {
122268
- const ext = this.getFileExt(imageItem.url);
122268
+ const ext = this.getFileExt(imageItem.name || imageItem.url);
122269
122269
  if (this.loaders[ext]) {
122270
122270
  let itemToLoad = imageItem.url;
122271
122271
  const toExt = this.loaders[ext].toExt;
@@ -124211,7 +124211,7 @@ var Niivue = class _Niivue {
124211
124211
  */
124212
124212
  async addMeshesFromUrl(meshOptions) {
124213
124213
  const promises = meshOptions.map(async (meshItem) => {
124214
- const ext = this.getFileExt(meshItem.url);
124214
+ const ext = this.getFileExt(meshItem.name || meshItem.url);
124215
124215
  if (this.loaders[ext]) {
124216
124216
  let itemToLoad = meshItem.url;
124217
124217
  const toExt = this.loaders[ext].toExt;