@rkmodules/rules 0.0.129 → 0.0.130

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
@@ -2459,6 +2459,7 @@ var explodeObject = {
2459
2459
  },
2460
2460
  params: {
2461
2461
  split: { type: "boolean", default: false, label: "split groups" },
2462
+ removeEmpty: { type: "boolean", default: false, label: "remove empty" },
2462
2463
  },
2463
2464
  outputs: {
2464
2465
  // values: "any",
@@ -2475,6 +2476,8 @@ var explodeObject = {
2475
2476
  branch.forEach(function (obj, index) {
2476
2477
  if (!obj)
2477
2478
  return;
2479
+ if (obj === null && params.removeEmpty)
2480
+ ;
2478
2481
  var props = obj || {};
2479
2482
  Object.entries(props).forEach(function (_a) {
2480
2483
  var _b = __read(_a, 2), key = _b[0], value = _b[1];