@rkmodules/rules 0.0.57 → 0.0.59

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
@@ -926,6 +926,7 @@ var filterList = {
926
926
  },
927
927
  outputs: {
928
928
  list: "any",
929
+ others: "any",
929
930
  },
930
931
  impl: function (inputs) { return __awaiter(void 0, void 0, void 0, function () {
931
932
  return __generator(this, function (_a) {
@@ -936,6 +937,12 @@ var filterList = {
936
937
  true);
937
938
  });
938
939
  }),
940
+ others: binaryOnTreeBranch(inputs.list || {}, inputs.keep || {}, function (branchA, branchB) {
941
+ return branchA.filter(function (item, index) {
942
+ return (branchB[Math.min(index, branchB.length - 1)] ===
943
+ false);
944
+ });
945
+ }),
939
946
  }];
940
947
  });
941
948
  }); },
@@ -984,7 +991,7 @@ var listItem = {
984
991
  }
985
992
  });
986
993
  others = binaryOnTreeBranch(inputs.list || {}, inputs.index || {}, function (branch, indices) {
987
- return branch.filter(function (i) { return !(indices === null || indices === void 0 ? void 0 : indices.includes(i)); });
994
+ return branch.filter(function (_, i) { return !(indices === null || indices === void 0 ? void 0 : indices.includes(i)); });
988
995
  });
989
996
  return [2 /*return*/, {
990
997
  item: item,