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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "domql",
3
3
  "description": "DOM rendering Javascript framework at early stage.",
4
- "version": "1.6.13",
4
+ "version": "1.6.15",
5
5
  "repository": "https://github.com/domql/domql",
6
6
  "publishConfig": {
7
7
  "registry": "https://registry.npmjs.org"
@@ -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 { merge, overwriteDeep } from '../utils'
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, element)
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
 
@@ -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,