Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

Improve StorageDataSource #73

Merged
merged 5 commits into from
Nov 12, 2021
Merged

Commits on Nov 1, 2021

  1. Add SafeStorage wrapper helper

    doup committed Nov 1, 2021
    Configuration menu
    Copy the full SHA
    4f55afe View commit details
    Browse the repository at this point in the history
  2. Update LocalStorageDataSource to make it safer

    - Wrap `Storage` in `SafeStorage` so it fallbacks to an InMemory implementation
    - Handle `null` `getItem` and map to `NotFoundError`
    - Handle `setItem` errors and map to `FailedError`
    - Handle values/keys length mismatch and throw `InvalidArgumentError`
    doup committed Nov 1, 2021
    Configuration menu
    Copy the full SHA
    21eaff1 View commit details
    Browse the repository at this point in the history
  3. Rename LocalStorageDataSource to StorageDataSource and make it wo…

    …rk with any `Storage` implementation (e.g. local or session)
    doup committed Nov 1, 2021
    Configuration menu
    Copy the full SHA
    419c8a0 View commit details
    Browse the repository at this point in the history

Commits on Nov 11, 2021

  1. Configuration menu
    Copy the full SHA
    717f0e5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0d44957 View commit details
    Browse the repository at this point in the history