@rpcbase/client 0.54.0 → 0.55.0
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
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/* @flow */
|
|
2
|
+
|
|
3
|
+
const getEmptyStorage = () => {
|
|
4
|
+
|
|
5
|
+
const cacheStorage = {
|
|
6
|
+
get: async(key) => {
|
|
7
|
+
},
|
|
8
|
+
set: async(key, obj) => {
|
|
9
|
+
},
|
|
10
|
+
delete: async(key) => {
|
|
11
|
+
},
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
return cacheStorage
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
export default getEmptyStorage()
|
package/rts/getUseQuery.js
CHANGED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/* @flow */
|
|
2
|
-
import {Platform} from "react-native"
|
|
3
|
-
|
|
4
|
-
import getWebStorage from "./web"
|
|
5
|
-
import getNativeStorage from "./native"
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
// TODO: add support for storage expiration
|
|
9
|
-
|
|
10
|
-
const storage = Platform.OS === "web" ? getWebStorage() : getNativeStorage()
|
|
11
|
-
|
|
12
|
-
export default storage
|