@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.
@@ -9986,7 +9986,7 @@ async function translateNASLToApp(app, frontend, config2, baseDir = "./out", con
9986
9986
  if (needCompileViews?.length > 0) {
9987
9987
  let traverseChildren2 = function(view, callback) {
9988
9988
  if (view.children?.length > 0) {
9989
- view.children.forEach((childView) => {
9989
+ [...view.children].forEach((childView) => {
9990
9990
  const deep = callback(childView);
9991
9991
  if (deep) {
9992
9992
  traverseChildren2(childView, callback);
@@ -9996,9 +9996,10 @@ async function translateNASLToApp(app, frontend, config2, baseDir = "./out", con
9996
9996
  };
9997
9997
  var traverseChildren = traverseChildren2;
9998
9998
  logger15.info("\u5F00\u59CB\u6309\u9700\u7FFB\u8BD1\u9875\u9762");
9999
- frontend.views.forEach((view) => {
9999
+ [...frontend.views].forEach((view) => {
10000
10000
  if (!needCompileViews.includes(view.nodePath)) {
10001
10001
  view.delete();
10002
+ console.log(`\u5220\u9664\u9875\u9762 ${view.nodePath}\uFF0C\u56E0\u4E3A\u5B83\u4E0D\u5728 needCompileViews \u4E2D`);
10002
10003
  } else {
10003
10004
  traverseChildren2(view, (childView) => {
10004
10005
  if (!needCompileViews.includes(childView.nodePath)) {