@domql/utils 2.29.46 → 2.29.48

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.
@@ -413,6 +413,7 @@ const stringToObject = (str, opts = { verbose: true }) => {
413
413
  return str ? import_globals.window.eval("(" + str + ")") : {};
414
414
  } catch (e) {
415
415
  if (opts.verbose) console.warn(e);
416
+ if (opts.errorCallback) opts.errorCallback(e);
416
417
  }
417
418
  };
418
419
  const diffObjects = (original, objToDiff, cache) => {
@@ -381,6 +381,7 @@ const stringToObject = (str, opts = { verbose: true }) => {
381
381
  return str ? window.eval("(" + str + ")") : {};
382
382
  } catch (e) {
383
383
  if (opts.verbose) console.warn(e);
384
+ if (opts.errorCallback) opts.errorCallback(e);
384
385
  }
385
386
  };
386
387
  const diffObjects = (original, objToDiff, cache) => {
package/object.js CHANGED
@@ -467,6 +467,7 @@ export const stringToObject = (str, opts = { verbose: true }) => {
467
467
  return str ? window.eval('(' + str + ')') : {} // eslint-disable-line
468
468
  } catch (e) {
469
469
  if (opts.verbose) console.warn(e)
470
+ if (opts.errorCallback) opts.errorCallback(e)
470
471
  }
471
472
  }
472
473
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@domql/utils",
3
- "version": "2.29.46",
3
+ "version": "2.29.48",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "index.js",
@@ -24,7 +24,7 @@
24
24
  "build": "npx rimraf -I dist; npm run build:cjs; npm run build:esm",
25
25
  "prepublish": "npm run build; npm run copy:package:cjs"
26
26
  },
27
- "gitHead": "fac6a87172abcf1d8b43ca45e0243fe54ae89340",
27
+ "gitHead": "dfbe4ffe3c6acf59f2097a09ba615c39880d2497",
28
28
  "devDependencies": {
29
29
  "@babel/core": "^7.27.1"
30
30
  }