domql 1.6.13 → 1.6.15
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/package.json +1 -1
- package/src/element/update.js +3 -3
- package/src/utils/object.js +1 -1
package/package.json
CHANGED
package/src/element/update.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
3
|
import { window } from '@domql/globals'
|
|
4
|
-
import { exec, isFunction, isNumber, isObject, isString } from '@domql/utils'
|
|
4
|
+
import { exec, isFunction, isNumber, isObject, isString, overwriteDeep } from '@domql/utils'
|
|
5
5
|
import { applyEvent, triggerEventOn } from '@domql/event'
|
|
6
6
|
import { isMethod } from '@domql/methods'
|
|
7
7
|
import { createSnapshotId } from '@domql/key'
|
|
8
8
|
import { updateProps } from '@domql/props'
|
|
9
9
|
import { createState } from '@domql/state'
|
|
10
10
|
|
|
11
|
-
import {
|
|
11
|
+
import { METHODS_EXL, merge } from '../utils'
|
|
12
12
|
import create from './create'
|
|
13
13
|
import { throughUpdatedDefine, throughUpdatedExec } from './iterate'
|
|
14
14
|
import { registry } from './mixins'
|
|
@@ -58,7 +58,7 @@ const update = function (params = {}, options = UPDATE_DEFAULT_OPTIONS) {
|
|
|
58
58
|
if (initUpdateReturns === false) return element
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
const overwriteChanges = overwriteDeep(params,
|
|
61
|
+
const overwriteChanges = overwriteDeep(element, params, METHODS_EXL)
|
|
62
62
|
const execChanges = throughUpdatedExec(element, UPDATE_DEFAULT_OPTIONS)
|
|
63
63
|
const definedChanges = throughUpdatedDefine(element)
|
|
64
64
|
|
package/src/utils/object.js
CHANGED
|
@@ -5,7 +5,7 @@ import { IGNORE_STATE_PARAMS } from '@domql/state'
|
|
|
5
5
|
import { IGNORE_PROPS_PARAMS } from '@domql/props'
|
|
6
6
|
import { METHODS } from '@domql/methods'
|
|
7
7
|
|
|
8
|
-
const METHODS_EXL = joinArrays(
|
|
8
|
+
export const METHODS_EXL = joinArrays(
|
|
9
9
|
['node', 'state', 'context', 'extend'],
|
|
10
10
|
METHODS,
|
|
11
11
|
IGNORE_STATE_PARAMS,
|