@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 +3 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/dist/playground.js +3 -2
- package/dist/playground.js.map +1 -1
- package/dist/playground.mjs +3 -2
- package/dist/playground.mjs.map +1 -1
- package/package.json +6 -6
package/dist/index.mjs
CHANGED
|
@@ -7871,7 +7871,7 @@ async function translateNASLToApp(app, frontend, config, baseDir = "./out", cont
|
|
|
7871
7871
|
if (needCompileViews?.length > 0) {
|
|
7872
7872
|
let traverseChildren2 = function(view, callback) {
|
|
7873
7873
|
if (view.children?.length > 0) {
|
|
7874
|
-
view.children.forEach((childView) => {
|
|
7874
|
+
[...view.children].forEach((childView) => {
|
|
7875
7875
|
const deep = callback(childView);
|
|
7876
7876
|
if (deep) {
|
|
7877
7877
|
traverseChildren2(childView, callback);
|
|
@@ -7881,9 +7881,10 @@ async function translateNASLToApp(app, frontend, config, baseDir = "./out", cont
|
|
|
7881
7881
|
};
|
|
7882
7882
|
var traverseChildren = traverseChildren2;
|
|
7883
7883
|
logger13.info("\u5F00\u59CB\u6309\u9700\u7FFB\u8BD1\u9875\u9762");
|
|
7884
|
-
frontend.views.forEach((view) => {
|
|
7884
|
+
[...frontend.views].forEach((view) => {
|
|
7885
7885
|
if (!needCompileViews.includes(view.nodePath)) {
|
|
7886
7886
|
view.delete();
|
|
7887
|
+
console.log(`\u5220\u9664\u9875\u9762 ${view.nodePath}\uFF0C\u56E0\u4E3A\u5B83\u4E0D\u5728 needCompileViews \u4E2D`);
|
|
7887
7888
|
} else {
|
|
7888
7889
|
traverseChildren2(view, (childView) => {
|
|
7889
7890
|
if (!needCompileViews.includes(childView.nodePath)) {
|