@onehat/data 1.14.1 → 1.15.1
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/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
/** @module Repository */
|
|
7
7
|
|
|
8
|
-
import OfflineRepository from '
|
|
8
|
+
import OfflineRepository from '../../../Repository/Offline.js';
|
|
9
9
|
import AsyncStorage from '@react-native-async-storage/async-storage';
|
|
10
10
|
import _ from 'lodash';
|
|
11
11
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* and is subject to the terms and conditions defined in
|
|
4
4
|
* file 'LICENSE.txt', which is part of this source code package.
|
|
5
5
|
*/
|
|
6
|
-
import OfflineRepository from '
|
|
6
|
+
import OfflineRepository from '../../../Repository/Offline.js';
|
|
7
7
|
import * as SecureStore from 'expo-secure-store'; // see: https://docs.expo.io/versions/latest/sdk/securestore/
|
|
8
8
|
import _ from 'lodash';
|
|
9
9
|
|
|
@@ -16,7 +16,14 @@ class OfflineRepository extends MemoryRepository {
|
|
|
16
16
|
|
|
17
17
|
constructor(config = {}) {
|
|
18
18
|
super(...arguments);
|
|
19
|
-
|
|
19
|
+
|
|
20
|
+
const defaults = {
|
|
21
|
+
|
|
22
|
+
// isAutoLoad: true,
|
|
23
|
+
// isAutoSave: true,
|
|
24
|
+
|
|
25
|
+
};
|
|
26
|
+
_.merge(this, defaults, config);
|
|
20
27
|
|
|
21
28
|
this._index = null;
|
|
22
29
|
}
|