@zip.js/zip.js 2.8.15 → 2.8.16

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/zip-fs.js CHANGED
@@ -1964,8 +1964,7 @@
1964
1964
  */
1965
1965
 
1966
1966
 
1967
- // deno-lint-ignore valid-typeof
1968
- let WEB_WORKERS_SUPPORTED = typeof Worker != UNDEFINED_TYPE;
1967
+ let WEB_WORKERS_SUPPORTED;
1969
1968
  let initModule$1 = () => { };
1970
1969
 
1971
1970
  function configureWorker({ initModule: initModuleFunction }) {
@@ -2013,6 +2012,10 @@
2013
2012
  onTaskFinished(workerData);
2014
2013
  }
2015
2014
  });
2015
+ if (WEB_WORKERS_SUPPORTED === UNDEFINED_VALUE) {
2016
+ // deno-lint-ignore valid-typeof
2017
+ WEB_WORKERS_SUPPORTED = typeof Worker != UNDEFINED_TYPE;
2018
+ }
2016
2019
  return (useWebWorkers && WEB_WORKERS_SUPPORTED ? createWebWorkerInterface : createWorkerInterface)(workerData, config);
2017
2020
  }
2018
2021
  }