From 88e1d42be87f45f84c8cf453ba39eb476eba137d Mon Sep 17 00:00:00 2001 From: Wenderson Pires Date: Thu, 7 Mar 2024 03:47:03 -0300 Subject: [PATCH] fix: reset organizer list --- lib/organize.js | 6 ++++-- package.json | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/organize.js b/lib/organize.js index a01621e..571300b 100644 --- a/lib/organize.js +++ b/lib/organize.js @@ -76,7 +76,7 @@ function checkImportFeatures(file, fileBundleBody) { return markers; } -const listInstancesContent = []; +let listInstancesContent = []; /** * Verifica sem tem marcadores pendentes para as instancias dentro do corpo @@ -122,7 +122,6 @@ function checkFeaturesMarker(fileBody, bundleBody) { * @returns */ function replaceMarkers(bundleBody) { - // console.log("LISTAAAA:", listInstancesContent); const completed = []; // Varre a lista de instancias marcadas @@ -162,6 +161,9 @@ function replaceMarkers(bundleBody) { // de biblitecas, nao de arquivos do projeto bundleBody = bundleBody.replaceAll(/(:::SM:::)(.*?)(:::SM:::)/g, ""); + // Reset the markers organizer list + listInstancesContent = []; + return bundleBody; } diff --git a/package.json b/package.json index ad168cd..bbe1586 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "alem", "description": "Create web3 applications for NEAR BOS with a focus on performance while using concepts that are based on ReactJS.", - "version": "0.0.1-alpha.7", + "version": "0.0.1-alpha.8", "main": "main.js", "author": "Wenderson Pires - wendersonpires.near", "license": "MIT",