@ventlio/tanstack-query 0.2.55 → 0.2.56

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.
@@ -11,7 +11,8 @@ const useReactNativeEnv = () => {
11
11
  const config = queryClient.getQueryData(['config']);
12
12
  const loadReactNativeEnvIfNeeded = async () => {
13
13
  if (config?.options?.environment === 'app') {
14
- const { API_URL, API_TIMEOUT } = await require('@env');
14
+ console.log('is app');
15
+ const { API_URL, API_TIMEOUT } = await require('react-native-dotenv');
15
16
  setAppUrl(API_URL);
16
17
  setAppTimeout(API_TIMEOUT);
17
18
  }
@@ -1 +1 @@
1
- {"version":3,"file":"useReactNativeEnv.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"useReactNativeEnv.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/index.mjs CHANGED
@@ -25,7 +25,8 @@ const useReactNativeEnv = () => {
25
25
  const config = queryClient.getQueryData(['config']);
26
26
  const loadReactNativeEnvIfNeeded = async () => {
27
27
  if (config?.options?.environment === 'app') {
28
- const { API_URL, API_TIMEOUT } = await require('@env');
28
+ console.log('is app');
29
+ const { API_URL, API_TIMEOUT } = await require('react-native-dotenv');
29
30
  setAppUrl(API_URL);
30
31
  setAppTimeout(API_TIMEOUT);
31
32
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ventlio/tanstack-query",
3
- "version": "0.2.55",
3
+ "version": "0.2.56",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "contributors": [
@@ -13,7 +13,8 @@ export const useReactNativeEnv = () => {
13
13
 
14
14
  const loadReactNativeEnvIfNeeded = async () => {
15
15
  if (config?.options?.environment === 'app') {
16
- const { API_URL, API_TIMEOUT } = await require('@env');
16
+ console.log('is app');
17
+ const { API_URL, API_TIMEOUT } = await require('react-native-dotenv');
17
18
 
18
19
  setAppUrl(API_URL);
19
20
  setAppTimeout(API_TIMEOUT);