message: fix: check `window` is defined before using it
diff: export default class StorageAPI {
  constructor(storage) {
  - this.storage = storage || window.localStorage;
  + this.storage =
  + storage || (typeof window !== 'undefined' ? window.localStorage : null);
  }
  get(name) {
  