nodalis-compiler 1.0.11 → 1.0.12

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/CHANGELOG.md CHANGED
@@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
- ## [1.0.11] - 2025-12-16
8
+ ## [1.0.12] - 2025-12-16
9
9
 
10
10
  - Fixed issue with copying support files for CPP and JS compilers.
11
11
  - Updated mticp
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodalis-compiler",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "description": "Compiles IEC-61131-3/10 languages into code that can be used as a PLC on multiple platforms.",
5
5
  "icon": "nodalis.png",
6
6
  "main": "src/nodalis.js",
@@ -92,11 +92,11 @@ export function convertExpression(expr, isjsfb = false, jsfbVars = [], isjs=fals
92
92
  return `resolve(${e})`;
93
93
  else return e;
94
94
  }).join(' ');
95
- if (results.indexOf("read") === -1) {
96
- results = results.replace(/\b(?!%)(([A-Za-z_]\w*)\.(\d+))\b/g, (_, full, base, bit) => {
95
+ //if (results.indexOf("read") === -1) {
96
+ results = results.replace(/\b(?<!%)(([A-Za-z_]\w*)\.(\d+))\b/g, (_, full, base, bit) => {
97
97
  return `getBit(&${base}, ${bit})`;
98
98
  });
99
- }
99
+ //}
100
100
 
101
101
  return results;
102
102
  }