domql 1.6.21 → 1.6.22

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.21",
4
+ "version": "1.6.22",
5
5
  "repository": "https://github.com/domql/domql",
6
6
  "publishConfig": {
7
7
  "registry": "https://registry.npmjs.org"
@@ -38,7 +38,7 @@
38
38
  "@domql/state": "latest",
39
39
  "@domql/event": "latest",
40
40
  "@domql/report": "latest",
41
- "@domql/emotion": "latest",
41
+ "@domql/emotion": "2.3.82",
42
42
  "@domql/utils": "latest",
43
43
  "@domql/classlist": "latest"
44
44
  },
@@ -100,7 +100,7 @@ const create = (element, parent, key, options = OPTIONS.create || {}) => {
100
100
  element.key = assignedKey
101
101
 
102
102
  // Only resolve extends, skip everything else
103
- if (options.onlyResolveExtends) return resolveExtends(element, parent, options)
103
+ if (options.onlyResolveExtends) { return resolveExtends(element, parent, options) }
104
104
 
105
105
  if (Object.keys(options).length) {
106
106
  registry.defaultOptions = options
@@ -258,7 +258,7 @@ const resolveExtends = (element, parent, options) => {
258
258
  element = createProps(element, parent)
259
259
  createState(element, parent, { skip: true })
260
260
 
261
- throughInitialExec(element)
261
+ throughInitialExec(element, options.propsExcludedFromExec)
262
262
 
263
263
  for (const param in element) {
264
264
  const prop = element[param]
@@ -4,9 +4,10 @@ import { isObject, exec, isFunction, isNumber, isString } from '@domql/utils'
4
4
  import { METHODS_EXL, overwrite } from './utils'
5
5
  import { isMethod } from '@domql/methods'
6
6
 
7
- export const throughInitialExec = element => {
7
+ export const throughInitialExec = (element, exclude = {}) => {
8
8
  const { __ref: ref } = element
9
9
  for (const param in element) {
10
+ if (exclude[param]) continue
10
11
  const prop = element[param]
11
12
  if (isFunction(prop) && !isMethod(param)) {
12
13
  ref.__exec[param] = prop