@bbn/bbn 1.0.46 → 1.0.48

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/bundle.js CHANGED
@@ -965,7 +965,7 @@
965
965
  cfg = (0, filterToConditions_2.filterToConditions)(cfg, operator);
966
966
  if (cfg.conditions && cfg.logic) {
967
967
  (0, each_3.each)(arr, (a) => {
968
- if ((0, compareConditions_2.compareConditions)(a, filter)) {
968
+ if ((0, compareConditions_2.compareConditions)(a, cfg)) {
969
969
  res.push(a);
970
970
  }
971
971
  });
package/dist/fn/filter.js CHANGED
@@ -35,7 +35,7 @@ const filter = function (arr, prop, val = null, operator = '=') {
35
35
  cfg = filterToConditions(cfg, operator);
36
36
  if (cfg.conditions && cfg.logic) {
37
37
  each(arr, (a) => {
38
- if (compareConditions(a, filter)) {
38
+ if (compareConditions(a, cfg)) {
39
39
  res.push(a);
40
40
  }
41
41
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbn/bbn",
3
- "version": "1.0.46",
3
+ "version": "1.0.48",
4
4
  "description": "Javascript toolkit",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",