@domql/utils 2.2.0 → 2.2.1
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/object.js +2 -1
- package/package.json +2 -2
package/object.js
CHANGED
|
@@ -140,12 +140,13 @@ export const overwrite = (element, params, options) => {
|
|
|
140
140
|
export const diff = (obj, original, cache) => {
|
|
141
141
|
const changes = cache || {}
|
|
142
142
|
for (const e in obj) {
|
|
143
|
+
if (e === 'ref') continue
|
|
143
144
|
const originalProp = original[e]
|
|
144
145
|
const objProp = obj[e]
|
|
145
146
|
if (isObjectLike(originalProp) && isObjectLike(objProp)) {
|
|
146
147
|
changes[e] = {}
|
|
147
148
|
diff(originalProp, objProp, changes[e])
|
|
148
|
-
} else if (
|
|
149
|
+
} else if (objProp !== undefined) {
|
|
149
150
|
changes[e] = objProp
|
|
150
151
|
}
|
|
151
152
|
}
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@domql/utils",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.1",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@domql/tags": "latest"
|
|
8
8
|
},
|
|
9
|
-
"gitHead": "
|
|
9
|
+
"gitHead": "87a27f601df3c39a91dd199fb2068bb761f6ed4e",
|
|
10
10
|
"source": "index.js"
|
|
11
11
|
}
|