@loaders.gl/zip 4.2.0-alpha.6 → 4.2.0-beta.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/dist.dev.js CHANGED
@@ -6986,6 +6986,8 @@ var __exports__ = (() => {
6986
6986
  var import_jszip = __toESM(require_jszip_min(), 1);
6987
6987
  var VERSION = typeof __VERSION__ !== "undefined" ? __VERSION__ : "latest";
6988
6988
  var ZipLoader = {
6989
+ dataType: null,
6990
+ batchType: null,
6989
6991
  id: "zip",
6990
6992
  module: "zip",
6991
6993
  name: "Zip Archive",
@@ -7305,6 +7307,13 @@ var __exports__ = (() => {
7305
7307
  var matches = typeof process !== "undefined" && process.version && /v([0-9]*)/.exec(process.version);
7306
7308
  var nodeVersion = matches && parseFloat(matches[1]) || 0;
7307
7309
 
7310
+ // ../loader-utils/src/lib/module-utils/js-module-utils.ts
7311
+ function registerJSModules(modules) {
7312
+ globalThis.loaders ||= {};
7313
+ globalThis.loaders.modules ||= {};
7314
+ Object.assign(globalThis.loaders.modules, modules);
7315
+ }
7316
+
7308
7317
  // ../loader-utils/src/lib/binary-utils/array-buffer-utils.ts
7309
7318
  function compareArrayBuffers(arrayBuffer1, arrayBuffer2, byteLength) {
7310
7319
  byteLength = byteLength || arrayBuffer1.byteLength;
@@ -9398,7 +9407,8 @@ var __exports__ = (() => {
9398
9407
  this.decompressBatches = this.decompressBatches.bind(this);
9399
9408
  }
9400
9409
  /** Preloads any dynamic libraries. May enable sync functions */
9401
- async preload() {
9410
+ async preload(modules = {}) {
9411
+ registerJSModules(modules);
9402
9412
  return;
9403
9413
  }
9404
9414
  /** Asynchronously compress data */