@zip.js/zip.js 2.8.20 → 2.8.21

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
@@ -1963,6 +1963,11 @@ const MODULE_WORKER_OPTIONS = { type: "module" };
1963
1963
 
1964
1964
  let webWorkerSupported, webWorkerURI, webWorkerOptions;
1965
1965
  let transferStreamsSupported = true;
1966
+ try {
1967
+ transferStreamsSupported = typeof structuredClone == FUNCTION_TYPE && structuredClone(new DOMException("", "AbortError")).code !== UNDEFINED_VALUE;
1968
+ } catch {
1969
+ // ignored
1970
+ }
1966
1971
  let initModule$1 = () => { };
1967
1972
 
1968
1973
  function configureWorker({ initModule: initModuleFunction }) {