@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/index.cjs CHANGED
@@ -1958,8 +1958,7 @@ class ChunkStream extends TransformStream {
1958
1958
  */
1959
1959
 
1960
1960
 
1961
- // deno-lint-ignore valid-typeof
1962
- let WEB_WORKERS_SUPPORTED = typeof Worker != UNDEFINED_TYPE;
1961
+ let WEB_WORKERS_SUPPORTED;
1963
1962
  let initModule$1 = () => { };
1964
1963
 
1965
1964
  function configureWorker({ initModule: initModuleFunction }) {
@@ -2007,6 +2006,10 @@ class CodecWorker {
2007
2006
  onTaskFinished(workerData);
2008
2007
  }
2009
2008
  });
2009
+ if (WEB_WORKERS_SUPPORTED === UNDEFINED_VALUE) {
2010
+ // deno-lint-ignore valid-typeof
2011
+ WEB_WORKERS_SUPPORTED = typeof Worker != UNDEFINED_TYPE;
2012
+ }
2010
2013
  return (useWebWorkers && WEB_WORKERS_SUPPORTED ? createWebWorkerInterface : createWorkerInterface)(workerData, config);
2011
2014
  }
2012
2015
  }