Skip to content

Commit

Permalink
fix isDevelopment parser regex
Browse files Browse the repository at this point in the history
  • Loading branch information
wpdas committed Apr 9, 2024
1 parent df0443c commit aad5bae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion lib/config/parseAlemFeatures.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ const parseAlemFeatures = (bundleContent) => {
.replaceAll("useParams(", "props.alem.useParams(")
.replaceAll("createRoute(", "props.alem.createRoute(")
.replaceAll("promisify(", "props.alem.promisify(")
.replaceAll("isDevelopment", "props.alem.isDevelopment");
.replaceAll(
/(?<!\.)\bisDevelopment\b(?![:.])/g,
"props.alem.isDevelopment",
);
};

module.exports = parseAlemFeatures;
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 and friendly development.",
"version": "1.0.0-beta.12",
"version": "1.0.0-beta.13",
"main": "main.js",
"types": "index.d.ts",
"author": "Wenderson Pires - wendersonpires.near",
Expand Down

0 comments on commit aad5bae

Please sign in to comment.