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.
@@ -2384,7 +2384,10 @@ const provider = {
2384
2384
  * @param {String} key
2385
2385
  * @return {Promise<*>}
2386
2386
  */
2387
- getItem: (key) => (0,idb_keyval__WEBPACK_IMPORTED_MODULE_0__.get)(key, getCustomStore()),
2387
+ getItem: (key) => (0,idb_keyval__WEBPACK_IMPORTED_MODULE_0__.get)(key, getCustomStore())
2388
+
2389
+ // idb-keyval returns undefined for missing items, but this needs to return null so that idb-keyval does the same thing as SQLiteStorage.
2390
+ .then((val) => val === undefined ? null : val),
2388
2391
 
2389
2392
  /**
2390
2393
  * Remove given key and it's value from storage