react-native-onyx 1.0.39 → 1.0.41
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.
- package/dist/web.development.js +1 -0
- package/dist/web.development.js.map +1 -1
- package/dist/web.min.js +1 -1
- package/dist/web.min.js.map +1 -1
- package/lib/Onyx.js +1 -0
- package/lib/storage/__mocks__/index.js +78 -0
- package/package.json +1 -6
- package/lib/storage/__mocks__/index.native.js +0 -8
- package/lib/storage/providers/AsyncStorage.js +0 -90
- package/lib/storage/providers/__mocks__/SQLiteStorage.js +0 -3
package/dist/web.development.js
CHANGED
|
@@ -1185,6 +1185,7 @@ function clear() {let keysToPreserve = arguments.length > 0 && arguments[0] !==
|
|
|
1185
1185
|
const defaultKeyValuePairs = underscore__WEBPACK_IMPORTED_MODULE_0___default().pairs(underscore__WEBPACK_IMPORTED_MODULE_0___default().omit(defaultKeyStates, keysToPreserve));
|
|
1186
1186
|
|
|
1187
1187
|
// Remove only the items that we want cleared from storage, and reset others to default
|
|
1188
|
+
underscore__WEBPACK_IMPORTED_MODULE_0___default().each(keysToBeClearedFromStorage, (key) => _OnyxCache__WEBPACK_IMPORTED_MODULE_5__["default"].drop(key));
|
|
1188
1189
|
return _storage__WEBPACK_IMPORTED_MODULE_6__["default"].removeItems(keysToBeClearedFromStorage).then(() => _storage__WEBPACK_IMPORTED_MODULE_6__["default"].multiSet(defaultKeyValuePairs));
|
|
1189
1190
|
});
|
|
1190
1191
|
}
|