@rpcbase/client 0.132.0 → 0.134.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/apiClient.js +0 -3
- package/auth/getUid.js +3 -3
- package/auth/index.js +1 -1
- package/helpers/useStoredValue/index.js +1 -1
- package/package.json +1 -1
package/apiClient.js
CHANGED
package/auth/getUid.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/* @flow */
|
|
2
2
|
import {Platform} from "react-native"
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import {privateGetUid} from "./index"
|
|
5
5
|
|
|
6
|
-
const
|
|
6
|
+
const getUid = Platform.OS === "web" ? privateGetUid : () => {
|
|
7
7
|
console.warn("native should not call getUid, use userId from AuthContext")
|
|
8
8
|
return null
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
export default
|
|
11
|
+
export default getUid
|
package/auth/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import {useEffect, useState, useRef, useCallback} from "react"
|
|
|
3
3
|
import _throttle from "lodash/throttle"
|
|
4
4
|
import isEqual from "fast-deep-equal/react"
|
|
5
5
|
|
|
6
|
-
import
|
|
6
|
+
import getUid from "../../auth/getUid"
|
|
7
7
|
import storage from "../../storage"
|
|
8
8
|
|
|
9
9
|
import batchedGetStoredValues from "./batchedGetStoredValues"
|