@loaders.gl/xml 4.1.0-alpha.3 → 4.1.0-alpha.4

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
@@ -3125,7 +3125,7 @@ Actual: ${this.attribValue}`);
3125
3125
  }
3126
3126
 
3127
3127
  // src/xml-loader.ts
3128
- var VERSION = true ? "4.1.0-alpha.3" : "latest";
3128
+ var VERSION = true ? "4.1.0-alpha.4" : "latest";
3129
3129
  var XMLLoader = {
3130
3130
  name: "XML",
3131
3131
  id: "xml",
@@ -3161,13 +3161,16 @@ Actual: ${this.attribValue}`);
3161
3161
  function mergeLoaderOptions(baseOptions, newOptions) {
3162
3162
  return mergeOptionsRecursively(baseOptions || {}, newOptions);
3163
3163
  }
3164
- function mergeOptionsRecursively(baseOptions, newOptions) {
3164
+ function mergeOptionsRecursively(baseOptions, newOptions, level = 0) {
3165
+ if (level > 3) {
3166
+ return newOptions;
3167
+ }
3165
3168
  const options = {
3166
3169
  ...baseOptions
3167
3170
  };
3168
3171
  for (const [key, newValue] of Object.entries(newOptions)) {
3169
3172
  if (newValue && typeof newValue === "object" && !Array.isArray(newValue)) {
3170
- options[key] = mergeOptionsRecursively(options[key] || {}, newOptions[key]);
3173
+ options[key] = mergeOptionsRecursively(options[key] || {}, newOptions[key], level + 1);
3171
3174
  } else {
3172
3175
  options[key] = newOptions[key];
3173
3176
  }
@@ -1,5 +1,5 @@
1
1
  import { parseXMLSync } from "./lib/parsers/parse-xml.js";
2
- const VERSION = typeof "4.1.0-alpha.3" !== 'undefined' ? "4.1.0-alpha.3" : 'latest';
2
+ const VERSION = typeof "4.1.0-alpha.4" !== 'undefined' ? "4.1.0-alpha.4" : 'latest';
3
3
  export const XMLLoader = {
4
4
  name: 'XML',
5
5
  id: 'xml',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loaders.gl/xml",
3
- "version": "4.1.0-alpha.3",
3
+ "version": "4.1.0-alpha.4",
4
4
  "description": "Framework-independent loaders for the XML (eXtensible Markup Language) format",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -41,9 +41,9 @@
41
41
  },
42
42
  "dependencies": {
43
43
  "@babel/runtime": "^7.3.1",
44
- "@loaders.gl/loader-utils": "4.1.0-alpha.3",
45
- "@loaders.gl/schema": "4.1.0-alpha.3",
44
+ "@loaders.gl/loader-utils": "4.1.0-alpha.4",
45
+ "@loaders.gl/schema": "4.1.0-alpha.4",
46
46
  "fast-xml-parser": "^4.2.5"
47
47
  },
48
- "gitHead": "b78075a7cb8d4ecd4aac84805ce74b8ceb400cf7"
48
+ "gitHead": "b18ba1d63be704fd021e4470e8ab84175621e62d"
49
49
  }