@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 CHANGED
@@ -4,9 +4,6 @@ import axios from "axios"
4
4
  import getBaseUrl from "./getBaseUrl"
5
5
  import getTenantId from "./auth/getTenantId"
6
6
 
7
- console.log("BAGGGG", getTenantId)
8
-
9
-
10
7
  const apiClient = axios.create({
11
8
  baseURL: getBaseUrl(),
12
9
  withCredentials: true,
package/auth/getUid.js CHANGED
@@ -1,11 +1,11 @@
1
1
  /* @flow */
2
2
  import {Platform} from "react-native"
3
3
 
4
- import {getUid as _getUid} from "./index"
4
+ import {privateGetUid} from "./index"
5
5
 
6
- const getUidFn = Platform.OS === "web" ? _getUid : () => {
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 getUidFn
11
+ export default getUid
package/auth/index.js CHANGED
@@ -111,7 +111,7 @@ export const session_restrict = (ctx, next) => {
111
111
  }
112
112
 
113
113
 
114
- export const getUid = () => __user_id
114
+ export const privateGetUid = () => __user_id
115
115
  export const setUid = (val) => {
116
116
  __user_id = val
117
117
 
@@ -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 {getUid} from "../../auth"
6
+ import getUid from "../../auth/getUid"
7
7
  import storage from "../../storage"
8
8
 
9
9
  import batchedGetStoredValues from "./batchedGetStoredValues"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpcbase/client",
3
- "version": "0.132.0",
3
+ "version": "0.134.0",
4
4
  "scripts": {
5
5
  "build-firebase": "webpack -c firebase/webpack.config.js",
6
6
  "build": "yarn build-firebase",