@domql/state
Advanced tools
Comparing version 2.5.134 to 2.5.138
@@ -47,3 +47,3 @@ 'use strict' | ||
const dependentState = applyDependentState(element, element.state) | ||
const dependentState = applyDependentState(element, element.state || parent.state || {}) | ||
if (dependentState) element.state = dependentState | ||
@@ -80,3 +80,4 @@ | ||
const checkForTypes = (element) => { | ||
const { state, __ref: ref } = element | ||
const { state: orig, props, __ref: ref } = element | ||
const state = props?.state || orig | ||
if (isFunction(state)) { | ||
@@ -83,0 +84,0 @@ ref.__state = state |
@@ -48,3 +48,3 @@ "use strict"; | ||
} | ||
const dependentState = applyDependentState(element, element.state); | ||
const dependentState = applyDependentState(element, element.state || parent.state || {}); | ||
if (dependentState) | ||
@@ -72,3 +72,4 @@ element.state = dependentState; | ||
const checkForTypes = (element) => { | ||
const { state, __ref: ref } = element; | ||
const { state: orig, props, __ref: ref } = element; | ||
const state = (props == null ? void 0 : props.state) || orig; | ||
if ((0, import_utils.isFunction)(state)) { | ||
@@ -75,0 +76,0 @@ ref.__state = state; |
{ | ||
"name": "@domql/state", | ||
"version": "2.5.134", | ||
"version": "2.5.138", | ||
"license": "MIT", | ||
@@ -30,7 +30,7 @@ "type": "module", | ||
"dependencies": { | ||
"@domql/event": "^2.5.134", | ||
"@domql/event": "^2.5.138", | ||
"@domql/report": "^2.5.0", | ||
"@domql/utils": "^2.5.134" | ||
"@domql/utils": "^2.5.138" | ||
}, | ||
"gitHead": "20e65426dc742448bd6dc85211dea3a48ed74ae0" | ||
"gitHead": "91afb60b8354f1a95c3364be94ba74612f907918" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
44250
1171
Updated@domql/event@^2.5.138
Updated@domql/utils@^2.5.138