react-native-onyx 1.0.109 → 1.0.110

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.
@@ -102,7 +102,10 @@ const provider = {
102
102
  * @param {String} key
103
103
  * @return {Promise<*>}
104
104
  */
105
- getItem: key => get(key, getCustomStore()),
105
+ getItem: key => get(key, getCustomStore())
106
+
107
+ // idb-keyval returns undefined for missing items, but this needs to return null so that idb-keyval does the same thing as SQLiteStorage.
108
+ .then(val => (val === undefined ? null : val)),
106
109
 
107
110
  /**
108
111
  * Remove given key and it's value from storage
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-onyx",
3
- "version": "1.0.109",
3
+ "version": "1.0.110",
4
4
  "author": "Expensify, Inc.",
5
5
  "homepage": "https://expensify.com",
6
6
  "description": "State management for React Native",