@loaders.gl/tiles 4.0.0-alpha.20 → 4.0.0-alpha.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.
Files changed (2) hide show
  1. package/dist/dist.min.js +10 -10
  2. package/package.json +4 -4
package/dist/dist.min.js CHANGED
@@ -5729,7 +5729,7 @@
5729
5729
  isFunction = (x) => typeof x === "function";
5730
5730
  isObject = (x) => x !== null && typeof x === "object";
5731
5731
  isPureObject = (x) => isObject(x) && x.constructor === {}.constructor;
5732
- isIterable = (x) => x && typeof x[Symbol.iterator] === "function";
5732
+ isIterable = (x) => Boolean(x) && typeof x[Symbol.iterator] === "function";
5733
5733
  isAsyncIterable = (x) => x && typeof x[Symbol.asyncIterator] === "function";
5734
5734
  isResponse = (x) => typeof Response !== "undefined" && x instanceof Response || x && x.arrayBuffer && x.text && x.json;
5735
5735
  isBlob = (x) => typeof Blob !== "undefined" && x instanceof Blob;
@@ -7287,26 +7287,26 @@
7287
7287
  context.response = { headers, ok, redirected, status, statusText, type, url };
7288
7288
  }
7289
7289
  data = await getArrayBufferOrStringFromData(data, loader, options);
7290
- if (loader.parseTextSync && typeof data === "string") {
7291
- options.dataType = "text";
7292
- return loader.parseTextSync(data, options, context, loader);
7290
+ const loaderWithParser = loader;
7291
+ if (loaderWithParser.parseTextSync && typeof data === "string") {
7292
+ return loaderWithParser.parseTextSync(data, options, context);
7293
7293
  }
7294
7294
  if (canParseWithWorker(loader, options)) {
7295
7295
  return await parseWithWorker(loader, data, options, context, parse);
7296
7296
  }
7297
- if (loader.parseText && typeof data === "string") {
7298
- return await loader.parseText(data, options, context, loader);
7297
+ if (loaderWithParser.parseText && typeof data === "string") {
7298
+ return await loaderWithParser.parseText(data, options, context);
7299
7299
  }
7300
- if (loader.parse) {
7301
- return await loader.parse(data, options, context, loader);
7300
+ if (loaderWithParser.parse) {
7301
+ return await loaderWithParser.parse(data, options, context);
7302
7302
  }
7303
- assert3(!loader.parseSync);
7303
+ assert3(!loaderWithParser.parseSync);
7304
7304
  throw new Error(`${loader.id} loader - no parser found and worker is disabled`);
7305
7305
  }
7306
7306
  var init_parse = __esm({
7307
7307
  "../core/src/lib/api/parse.ts"() {
7308
- init_src();
7309
7308
  init_src2();
7309
+ init_src();
7310
7310
  init_normalize_loader();
7311
7311
  init_is_type();
7312
7312
  init_option_utils();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loaders.gl/tiles",
3
- "version": "4.0.0-alpha.20",
3
+ "version": "4.0.0-alpha.21",
4
4
  "description": "Common components for different tiles loaders.",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -33,8 +33,8 @@
33
33
  "build-bundle": "esbuild src/bundle.ts --bundle --outfile=dist/dist.min.js"
34
34
  },
35
35
  "dependencies": {
36
- "@loaders.gl/loader-utils": "4.0.0-alpha.20",
37
- "@loaders.gl/math": "4.0.0-alpha.20",
36
+ "@loaders.gl/loader-utils": "4.0.0-alpha.21",
37
+ "@loaders.gl/math": "4.0.0-alpha.21",
38
38
  "@math.gl/core": "^3.5.1",
39
39
  "@math.gl/culling": "^3.5.1",
40
40
  "@math.gl/geospatial": "^3.5.1",
@@ -47,5 +47,5 @@
47
47
  "devDependencies": {
48
48
  "@deck.gl/core": "^8.9.0"
49
49
  },
50
- "gitHead": "ac122e83102657c38207d59c631a5ce4e7aa46bd"
50
+ "gitHead": "df5d670b136192b26941396e944f9c46be788e83"
51
51
  }