@budibase/string-templates 2.15.0 → 2.15.2
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/bundle.mjs +1 -1
- package/package.json +2 -2
- package/src/conversion/index.js +1 -1
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@budibase/string-templates",
|
3
|
-
"version": "2.15.
|
3
|
+
"version": "2.15.2",
|
4
4
|
"description": "Handlebars wrapper for Budibase templating.",
|
5
5
|
"main": "src/index.cjs",
|
6
6
|
"module": "dist/bundle.mjs",
|
@@ -45,5 +45,5 @@
|
|
45
45
|
"rollup-plugin-terser": "^7.0.2",
|
46
46
|
"typescript": "5.2.2"
|
47
47
|
},
|
48
|
-
"gitHead": "
|
48
|
+
"gitHead": "f35b91891c75fb38eca99e4eaaafd64df5a45754"
|
49
49
|
}
|
package/src/conversion/index.js
CHANGED
@@ -112,7 +112,7 @@ module.exports.convertHBSBlock = (block, blockNumber) => {
|
|
112
112
|
const list = getHelperList()
|
113
113
|
for (let layer of layers) {
|
114
114
|
const parts = splitBySpace(layer)
|
115
|
-
if (value || parts.length > 1) {
|
115
|
+
if (value || parts.length > 1 || list[parts[0]]) {
|
116
116
|
// first of layer should always be the helper
|
117
117
|
const helper = parts.splice(0, 1)
|
118
118
|
if (list[helper]) {
|