@domql/utils 2.5.17 → 2.5.18

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.
@@ -23,6 +23,7 @@ __export(object_exports, {
23
23
  deepCloneExclude: () => deepCloneExclude,
24
24
  deepContains: () => deepContains,
25
25
  deepDestringify: () => deepDestringify,
26
+ deepDiff: () => deepDiff,
26
27
  deepMerge: () => deepMerge,
27
28
  deepStringify: () => deepStringify,
28
29
  detachFunctionsFromObject: () => detachFunctionsFromObject,
@@ -48,6 +49,7 @@ var import_globals = require("./globals.js");
48
49
  var import_types = require("./types.js");
49
50
  var import_array = require("./array.js");
50
51
  var import_string = require("./string.js");
52
+ var import_deep_object_diff = require("deep-object-diff");
51
53
  const exec = (param, element, state, context) => {
52
54
  if ((0, import_types.isFunction)(param)) {
53
55
  return param(
@@ -326,6 +328,7 @@ const diff = (original, objToDiff, cache = {}) => {
326
328
  }
327
329
  return cache;
328
330
  };
331
+ const deepDiff = import_deep_object_diff.diff;
329
332
  const overwrite = (element, params, excludeFrom = []) => {
330
333
  const { ref } = element;
331
334
  const changes = {};
package/object.js CHANGED
@@ -4,6 +4,7 @@ import { window } from './globals.js'
4
4
  import { isFunction, isObjectLike, isObject, isArray, isString, is } from './types.js'
5
5
  import { mergeAndCloneIfArray, mergeArray } from './array.js'
6
6
  import { stringIncludesAny } from './string.js'
7
+ import { diff as deepObjectDiff } from 'deep-object-diff'
7
8
 
8
9
  export const exec = (param, element, state, context) => {
9
10
  if (isFunction(param)) {
@@ -301,6 +302,8 @@ export const diff = (original, objToDiff, cache = {}) => {
301
302
  return cache
302
303
  }
303
304
 
305
+ export const deepDiff = deepObjectDiff
306
+
304
307
  /**
305
308
  * Overwrites object properties with another
306
309
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@domql/utils",
3
- "version": "2.5.17",
3
+ "version": "2.5.18",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "index.js",
@@ -23,8 +23,11 @@
23
23
  "build": "yarn build:cjs",
24
24
  "prepublish": "rimraf -I dist && yarn build && yarn copy:package:cjs"
25
25
  },
26
- "gitHead": "b08d17a7f2bf1a70714ab9f1718cbf98862becf0",
26
+ "gitHead": "4aeead0b153d4cd5430694ecf45a5d3052f9f9f5",
27
27
  "devDependencies": {
28
28
  "@babel/core": "^7.12.0"
29
+ },
30
+ "dependencies": {
31
+ "deep-object-diff": "^1.1.9"
29
32
  }
30
33
  }