@next-core/brick-utils 2.47.2 → 2.47.4

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.esm.js CHANGED
@@ -1010,7 +1010,7 @@ function sanitize(cooked) {
1010
1010
  throw new TypeError("Cannot access reserved objects such as `Function`.");
1011
1011
  }
1012
1012
  }
1013
- var allowedConstructors = new WeakSet([Array, Map, Set, URLSearchParams, WeakMap, WeakSet]);
1013
+ var allowedConstructors = new WeakSet([Array, Map, Set, URLSearchParams, WeakMap, WeakSet, RegExp]);
1014
1014
  function isAllowedConstructor(constructor) {
1015
1015
  // `Date` maybe mocked when running tests for storyboard functions.
1016
1016
  return allowedConstructors.has(constructor) || constructor === Date;
@@ -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
  }