@lcap/nasl-unified-frontend-generator 4.0.0-beta.8 → 4.0.0-beta.9

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.
@@ -10109,7 +10109,7 @@ async function translateNASLToApp(app, frontend, config2, baseDir = "./out", con
10109
10109
  if (needCompileViews?.length > 0) {
10110
10110
  let traverseChildren2 = function(view, callback) {
10111
10111
  if (view.children?.length > 0) {
10112
- view.children.forEach((childView) => {
10112
+ [...view.children].forEach((childView) => {
10113
10113
  const deep = callback(childView);
10114
10114
  if (deep) {
10115
10115
  traverseChildren2(childView, callback);
@@ -10119,9 +10119,10 @@ async function translateNASLToApp(app, frontend, config2, baseDir = "./out", con
10119
10119
  };
10120
10120
  var traverseChildren = traverseChildren2;
10121
10121
  logger15.info("\u5F00\u59CB\u6309\u9700\u7FFB\u8BD1\u9875\u9762");
10122
- frontend.views.forEach((view) => {
10122
+ [...frontend.views].forEach((view) => {
10123
10123
  if (!needCompileViews.includes(view.nodePath)) {
10124
10124
  view.delete();
10125
+ console.log(`\u5220\u9664\u9875\u9762 ${view.nodePath}\uFF0C\u56E0\u4E3A\u5B83\u4E0D\u5728 needCompileViews \u4E2D`);
10125
10126
  } else {
10126
10127
  traverseChildren2(view, (childView) => {
10127
10128
  if (!needCompileViews.includes(childView.nodePath)) {