@bigbinary/neeto-commons-frontend 2.1.13 → 2.1.15

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/utils.cjs.js CHANGED
@@ -2658,6 +2658,9 @@ var getFromLocalStorage = function getFromLocalStorage(key) {
2658
2658
  return null;
2659
2659
  }
2660
2660
  };
2661
+ var setToLocalStorage = function setToLocalStorage(key, value) {
2662
+ if (ramda.isNotNil(value)) localStorage.setItem(key, JSON.stringify(value));else localStorage.removeItem(key);
2663
+ };
2661
2664
 
2662
2665
  dayjs__default["default"].extend(relativeTime__default["default"]);
2663
2666
  dayjs__default["default"].extend(updateLocale__default["default"]);
@@ -3248,6 +3251,7 @@ exports.hasAnyPermission = hasAnyPermission;
3248
3251
  exports.hasPermission = hasPermission;
3249
3252
  exports.joinHyphenCase = joinHyphenCase;
3250
3253
  exports.resetAuthTokens = resetAuthTokens;
3254
+ exports.setToLocalStorage = setToLocalStorage;
3251
3255
  exports.simulateApiCall = simulateApiCall;
3252
3256
  exports.timeFormat = timeFormat;
3253
3257
  exports.toLocale = toLocale;