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