Skip to content

Commit

Permalink
fix: reset organizer list
Browse files Browse the repository at this point in the history
  • Loading branch information
wpdas committed Mar 7, 2024
1 parent 50770e7 commit 88e1d42
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions lib/organize.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -122,7 +122,6 @@ function checkFeaturesMarker(fileBody, bundleBody) {
* @returns
*/
function replaceMarkers(bundleBody) {
// console.log("LISTAAAA:", listInstancesContent);
const completed = [];

// Varre a lista de instancias marcadas
Expand Down Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 88e1d42

Please sign in to comment.