@bigbinary/neeto-commons-frontend 2.0.82 → 2.0.84

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigbinary/neeto-commons-frontend",
3
- "version": "2.0.82",
3
+ "version": "2.0.84",
4
4
  "description": "A package encapsulating common code across neeto projects including initializers, utility functions, common components and hooks and so on.",
5
5
  "repository": "git@github.com:bigbinary/neeto-commons-frontend.git",
6
6
  "author": "Amaljith K <amaljith.k@bigbinary.com>",
@@ -4701,14 +4701,11 @@ var setWithoutModifyingActions = function setWithoutModifyingActions(set) {
4701
4701
  return function (partial) {
4702
4702
  return set(function (previous) {
4703
4703
  if (typeof partial === "function") partial = partial(previous);
4704
- var isOverwritingActions = ramda.toPairs(partial).some(function (_ref) {
4705
- var _ref2 = _slicedToArray(_ref, 2),
4706
- key = _ref2[0],
4707
- value = _ref2[1];
4708
- return typeof (previous === null || previous === void 0 ? void 0 : previous[key]) === "function" && value !== previous[key];
4704
+ var overwrittenActions = ramda.keys(partial).filter(function (key) {
4705
+ return typeof (previous === null || previous === void 0 ? void 0 : previous[key]) === "function" && partial[key] !== previous[key];
4709
4706
  });
4710
- if (isOverwritingActions) {
4711
- throw new Error("Actions should not be modified");
4707
+ if (!ramda.isEmpty(overwrittenActions)) {
4708
+ throw new Error("Actions should not be modified. Touched action(s): ".concat(overwrittenActions.join(", ")));
4712
4709
  }
4713
4710
  return partial;
4714
4711
  }, false);