@fto-consult/expo-ui 6.52.2 → 6.52.3
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
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fto-consult/expo-ui",
|
3
|
-
"version": "6.52.
|
3
|
+
"version": "6.52.3",
|
4
4
|
"description": "Bibliothèque de composants UI Expo,react-native",
|
5
5
|
"main": "main",
|
6
6
|
"scripts": {
|
@@ -70,7 +70,7 @@
|
|
70
70
|
"@expo/html-elements": "^0.5.1",
|
71
71
|
"@expo/vector-icons": "^13.0.0",
|
72
72
|
"@faker-js/faker": "^8.0.2",
|
73
|
-
"@fto-consult/common": "^3.
|
73
|
+
"@fto-consult/common": "^3.46.0",
|
74
74
|
"@pchmn/expo-material3-theme": "^1.3.1",
|
75
75
|
"@react-native-async-storage/async-storage": "1.18.2",
|
76
76
|
"@react-native-community/datetimepicker": "7.2.0",
|
@@ -14,7 +14,7 @@ import DateLib from "$lib/date";
|
|
14
14
|
import {getFetchOptions} from "$cutils/filters";
|
15
15
|
import {setQueryParams} from "$cutils/uri";
|
16
16
|
import {uniqid} from "$cutils";
|
17
|
-
import apiFetch,{ getFetcherOptions } from "$capi/fetch";
|
17
|
+
import apiFetch,{ getFetcherOptions,prepareFetchOptions } from "$capi/fetch";
|
18
18
|
import Icon from "$ecomponents/Icon";
|
19
19
|
import Label from "$ecomponents/Label";
|
20
20
|
import { StyleSheet,View } from "react-native";
|
@@ -192,10 +192,12 @@ const SWRDatagridComponent = React.forwardRef((props,ref)=>{
|
|
192
192
|
if(showProgressRef.current ===false){
|
193
193
|
opts.showError = false;
|
194
194
|
}
|
195
|
+
const {url:fUrl,...rest} = prepareFetchOptions(url,opts);
|
196
|
+
console.log("handling dddfetttcher ",fUrl,url,opts);
|
195
197
|
if(typeof fetcher =='function'){
|
196
|
-
return fetcher(
|
198
|
+
return fetcher(fUrl,rest);
|
197
199
|
}
|
198
|
-
return apiFetch(
|
200
|
+
return apiFetch(fUrl,rest);
|
199
201
|
},
|
200
202
|
showError : false,
|
201
203
|
swrOptions : getSWROptions(swrConfig.refreshTimeout)
|