@osovitny/anatoly 2.0.46 → 2.0.47

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.
@@ -1688,7 +1688,11 @@
1688
1688
  return this.storage.getItem(key);
1689
1689
  };
1690
1690
  WebStorageService.prototype.getObject = function (key) {
1691
- return JSON.parse(this.storage.getItem(key) || '{}');
1691
+ var value = this.storage.getItem(key);
1692
+ if (!value) {
1693
+ return null;
1694
+ }
1695
+ return JSON.parse(value);
1692
1696
  };
1693
1697
  WebStorageService.prototype.remove = function (key) {
1694
1698
  this.storage.removeItem(key);