@domql/utils 2.5.24 → 2.5.34
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/cjs/object.js +1 -1
- package/object.js +1 -1
- package/package.json +2 -2
package/dist/cjs/object.js
CHANGED
|
@@ -340,7 +340,7 @@ const makeObjectWithoutPrototype = () => /* @__PURE__ */ Object.create(null);
|
|
|
340
340
|
const deepDiff = (lhs, rhs) => {
|
|
341
341
|
if (lhs === rhs)
|
|
342
342
|
return {};
|
|
343
|
-
if (!(0, import_types.
|
|
343
|
+
if (!(0, import_types.isObjectLike)(lhs) || !(0, import_types.isObjectLike)(rhs))
|
|
344
344
|
return rhs;
|
|
345
345
|
const deletedValues = Object.keys(lhs).reduce((acc, key) => {
|
|
346
346
|
if (!hasOwnProperty(rhs, key)) {
|
package/object.js
CHANGED
|
@@ -315,7 +315,7 @@ export const makeObjectWithoutPrototype = () => Object.create(null)
|
|
|
315
315
|
export const deepDiff = (lhs, rhs) => {
|
|
316
316
|
if (lhs === rhs) return {}
|
|
317
317
|
|
|
318
|
-
if (!
|
|
318
|
+
if (!isObjectLike(lhs) || !isObjectLike(rhs)) return rhs
|
|
319
319
|
|
|
320
320
|
const deletedValues = Object.keys(lhs).reduce((acc, key) => {
|
|
321
321
|
if (!hasOwnProperty(rhs, key)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@domql/utils",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.34",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "index.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"build": "yarn build:cjs",
|
|
24
24
|
"prepublish": "rimraf -I dist && yarn build && yarn copy:package:cjs"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "a4fa65bb359c1d58cf63e3402a76d75cfcd2b727",
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@babel/core": "^7.12.0"
|
|
29
29
|
}
|