@next-core/brick-utils 2.32.3 → 2.33.0

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
@@ -2206,7 +2206,19 @@ function cook(rootAst, codeSource) {
2206
2206
  getRunningContext().LexicalEnvironment = oldEnv;
2207
2207
 
2208
2208
  if (!LoopContinues(result)) {
2209
- return UpdateEmpty(result, V);
2209
+ var status = UpdateEmpty(result, V);
2210
+
2211
+ if (!(iterationKind === "enumerate" || iteratorRecord.return === undefined)) {
2212
+ // Perform *IteratorClose*
2213
+ // https://tc39.es/ecma262/#sec-iteratorclose
2214
+ var innerResult = iteratorRecord.return();
2215
+
2216
+ if (!innerResult || !["object", "function"].includes(typeof innerResult)) {
2217
+ throw new TypeError("Iterator result is not an object");
2218
+ }
2219
+ }
2220
+
2221
+ return status;
2210
2222
  }
2211
2223
 
2212
2224
  if (result.Value !== Empty) {
@@ -21232,7 +21244,7 @@ function safeYamlParse(value) {
21232
21244
  }
21233
21245
 
21234
21246
  var fieldsToKeepInMenu = ["menuId", "title", "icon", "titleDataSource", "defaultCollapsed", "defaultCollapsedBreakpoint", "link", "type", "injectMenuGroupId", "dynamicItems", "itemsResolve"];
21235
- var fieldsToKeepInMenuItem = ["text", "to", "target", "icon", "exact", "key", "activeIncludes", "activeExcludes", "activeMatchSearch", "type", "sort", "defaultExpanded", "if", "groupId"];
21247
+ var fieldsToKeepInMenuItem = ["text", "to", "href", "target", "icon", "exact", "key", "activeIncludes", "activeExcludes", "activeMatchSearch", "type", "sort", "defaultExpanded", "if", "groupId"];
21236
21248
  function normalizeMenu(node) {
21237
21249
  return _objectSpread(_objectSpread({}, keep(node, fieldsToKeepInMenu)), {}, {
21238
21250
  items: keepItems(node.items, fieldsToKeepInMenuItem)