@bigbinary/neeto-commons-frontend 2.0.81 → 2.0.83

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.81",
3
+ "version": "2.0.83",
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>",
package/pure.d.ts CHANGED
@@ -970,18 +970,6 @@ export function isNot(a: any): (b: any) => boolean;
970
970
  export const isNotEmpty: (a: any) => boolean;
971
971
  export function isNotEqualDeep(a: any, b: any): boolean;
972
972
  export function isNotEqualDeep(a: any): (b: any) => boolean;
973
- /**
974
- *
975
- * Curried: false
976
- *
977
- * Failsafe status: failsafe by default
978
- *
979
- * Returns true if the given value is not null or undefined. False otherwise.
980
- *
981
- * (the opposite of isNil in ramda)
982
- *
983
- */
984
- export const isNotNil: (a: any) => boolean;
985
973
  /**
986
974
  *
987
975
  * Curried: false
@@ -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);