@next-core/brick-utils 2.47.3 → 2.47.5
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/dist/index.bundle.js +4 -0
- package/dist/index.bundle.js.map +1 -1
- package/dist/index.esm.js +4 -0
- package/dist/index.esm.js.map +1 -1
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -17865,6 +17865,8 @@ function parseEventHandlers(handlers) {
|
|
|
17865
17865
|
return [].concat(handlers).filter(Boolean).map(handler => ({
|
|
17866
17866
|
type: "EventHandler",
|
|
17867
17867
|
callback: parseEventCallback(handler.callback),
|
|
17868
|
+
then: parseEventHandlers(handler.then),
|
|
17869
|
+
else: parseEventHandlers(handler.else),
|
|
17868
17870
|
raw: handler
|
|
17869
17871
|
}));
|
|
17870
17872
|
}
|
|
@@ -17972,6 +17974,8 @@ function traverseNode(node, callback, path) {
|
|
|
17972
17974
|
break;
|
|
17973
17975
|
case "EventHandler":
|
|
17974
17976
|
traverseNodes(node.callback, callback, childPath);
|
|
17977
|
+
traverseNodes(node.then, callback, childPath);
|
|
17978
|
+
traverseNodes(node.else, callback, childPath);
|
|
17975
17979
|
break;
|
|
17976
17980
|
case "ConditionalLifeCycle":
|
|
17977
17981
|
traverseNodes(node.events, callback, childPath);
|