dwv 0.31.1 → 0.31.2

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/dwv.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! dwv 0.31.1 2023-04-27 19:37:50 */
1
+ /*! dwv 0.31.2 2023-05-07 12:03:47 */
2
2
  // Inspired from umdjs
3
3
  // See https://github.com/umdjs/umd/blob/master/templates/returnExports.js
4
4
  (function (root, factory) {
@@ -4749,7 +4749,7 @@ dwv.dicom = dwv.dicom || {};
4749
4749
  * @returns {string} The version of the library.
4750
4750
  */
4751
4751
  dwv.getVersion = function () {
4752
- return '0.31.1';
4752
+ return '0.31.2';
4753
4753
  };
4754
4754
 
4755
4755
  /**
@@ -24031,7 +24031,10 @@ dwv.io.DicomDataLoader = function () {
24031
24031
  // call listeners
24032
24032
  self.onloadend(event);
24033
24033
  };
24034
- db2v.onerror = self.onerror;
24034
+ db2v.onerror = function (event) {
24035
+ event.source = origin;
24036
+ self.onerror(event);
24037
+ };
24035
24038
  db2v.onabort = self.onabort;
24036
24039
  }
24037
24040
 
@@ -38955,6 +38958,9 @@ dwv.utils.objectToArray = function (obj) {
38955
38958
  var keys = Object.keys(obj);
38956
38959
  for (var i = 0; i < keys.length; ++i) {
38957
38960
  var key = keys[i];
38961
+ if (obj[key] === null) {
38962
+ continue;
38963
+ }
38958
38964
  var row = {name: key};
38959
38965
  var innerKeys = Object.keys(obj[key]);
38960
38966
  for (var j = 0; j < innerKeys.length; ++j) {
@@ -39784,6 +39790,8 @@ dwv.utils.WorkerThread = function (parentPool) {
39784
39790
  this.stop = function () {
39785
39791
  // stop the worker
39786
39792
  worker.terminate();
39793
+ // force create at next run
39794
+ worker = undefined;
39787
39795
  };
39788
39796
 
39789
39797
  /**