@zip.js/zip.js 2.8.14 → 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-native.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 = () => { };
1964
1963
 
1965
1964
  class CodecWorker {
@@ -2003,6 +2002,10 @@ class CodecWorker {
2003
2002
  onTaskFinished(workerData);
2004
2003
  }
2005
2004
  });
2005
+ if (WEB_WORKERS_SUPPORTED === UNDEFINED_VALUE) {
2006
+ // deno-lint-ignore valid-typeof
2007
+ WEB_WORKERS_SUPPORTED = typeof Worker != UNDEFINED_TYPE;
2008
+ }
2006
2009
  return (useWebWorkers && WEB_WORKERS_SUPPORTED ? createWebWorkerInterface : createWorkerInterface)(workerData, config);
2007
2010
  }
2008
2011
  }