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