@rkmodules/rules 0.0.96 → 0.0.97

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.esm.js CHANGED
@@ -255,6 +255,9 @@ function broadCast(value) {
255
255
  function getBranch(tree, path) {
256
256
  return tree[path];
257
257
  }
258
+ function getBranches(tree) {
259
+ return Object.values(tree);
260
+ }
258
261
  function getPaths(tree) {
259
262
  return Object.keys(tree);
260
263
  }
@@ -1558,7 +1561,9 @@ var listInput = {
1558
1561
  tree: mapTreeBranch(inputs.list || {}, function (branch) {
1559
1562
  if (!branch || branch.length === 0)
1560
1563
  return DISCARD;
1561
- var allLines = branch.flatMap(function (text) { return text.split("\n"); });
1564
+ var allLines = branch.flatMap(function (text) {
1565
+ return text.replace(/(^[\n\r]+)|([\n\r]+$)/, "").split("\n");
1566
+ });
1562
1567
  if (allLines.every(function (line) { return isBoolStr(line); })) {
1563
1568
  allLines = allLines.map(function (line) { return line.toLowerCase() === "true"; });
1564
1569
  }
@@ -7239,5 +7244,5 @@ function DDContext(_a) {
7239
7244
  return React.createElement(DndProvider, { backend: HTML5Backend }, children);
7240
7245
  }
7241
7246
 
7242
- export { DDContext, DISCARD, Engine, Flow, Lib, binaryOnTree, binaryOnTreeBranch, broadCast, expandTree, getBranch, getPaths, getPositions, getReferences, getValue$1 as getValue, getVariable, graftTree, hasReference, interpolate, isReference, isSingleTon, isTree, mapTree, mapTreeBranch, nAryOnTree, nAryOnTreeBranch, normalizeVarDef, parseReference, primitives, sameShape, simplifyTree$1 as simplifyTree, toArray, topSort, treeSize, trimTree, uid$1 as uid, useDraggableNode, useFlow, useFunction, usePositions, useUpdatePositions, useVariable, variableStore };
7247
+ export { DDContext, DISCARD, Engine, Flow, Lib, binaryOnTree, binaryOnTreeBranch, broadCast, expandTree, getBranch, getBranches, getPaths, getPositions, getReferences, getValue$1 as getValue, getVariable, graftTree, hasReference, interpolate, isReference, isSingleTon, isTree, mapTree, mapTreeBranch, nAryOnTree, nAryOnTreeBranch, normalizeVarDef, parseReference, primitives, sameShape, simplifyTree$1 as simplifyTree, toArray, topSort, treeSize, trimTree, uid$1 as uid, useDraggableNode, useFlow, useFunction, usePositions, useUpdatePositions, useVariable, variableStore };
7243
7248
  //# sourceMappingURL=index.esm.js.map