@rkmodules/rules 0.0.157 → 0.0.158
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/index.cjs.js +4 -0
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.mjs +4 -0
- package/dist/index.esm.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.mjs
CHANGED
|
@@ -632,6 +632,10 @@ function interpolateValue(value, scope) {
|
|
|
632
632
|
// then interpolate each value in the tree in case there are references
|
|
633
633
|
return mapTree(tree, function (v) { return interpolateValue(v, scope); });
|
|
634
634
|
}
|
|
635
|
+
if (value.every(Array.isArray)) {
|
|
636
|
+
// array of arrays: return a singleton with that array
|
|
637
|
+
return { 0: value };
|
|
638
|
+
}
|
|
635
639
|
else {
|
|
636
640
|
// array of other values: interpolate to an array of trees
|
|
637
641
|
var mappedValue = value.map(function (v) {
|