@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.
package/dist/index.js CHANGED
@@ -7831,7 +7831,7 @@ async function translateNASLToApp(app, frontend, config, baseDir = "./out", cont
7831
7831
  if (needCompileViews?.length > 0) {
7832
7832
  let traverseChildren2 = function(view, callback) {
7833
7833
  if (view.children?.length > 0) {
7834
- view.children.forEach((childView) => {
7834
+ [...view.children].forEach((childView) => {
7835
7835
  const deep = callback(childView);
7836
7836
  if (deep) {
7837
7837
  traverseChildren2(childView, callback);
@@ -7841,9 +7841,10 @@ async function translateNASLToApp(app, frontend, config, baseDir = "./out", cont
7841
7841
  };
7842
7842
  var traverseChildren = traverseChildren2;
7843
7843
  logger13.info("\u5F00\u59CB\u6309\u9700\u7FFB\u8BD1\u9875\u9762");
7844
- frontend.views.forEach((view) => {
7844
+ [...frontend.views].forEach((view) => {
7845
7845
  if (!needCompileViews.includes(view.nodePath)) {
7846
7846
  view.delete();
7847
+ console.log(`\u5220\u9664\u9875\u9762 ${view.nodePath}\uFF0C\u56E0\u4E3A\u5B83\u4E0D\u5728 needCompileViews \u4E2D`);
7847
7848
  } else {
7848
7849
  traverseChildren2(view, (childView) => {
7849
7850
  if (!needCompileViews.includes(childView.nodePath)) {