@fto-consult/expo-ui 3.3.2 → 3.3.4

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.
@@ -10,8 +10,11 @@ module.exports = (opts)=>{
10
10
  opts.base = opts.base || base;
11
11
  opts.withPouchDB = opts.withPouchDB !== false && opts.withPouchdb !== false ? true : false;
12
12
  delete opts.withPouchdb;
13
- const r = require(`@fto-consult/common/babel.config.alias`)(opts);
14
- const expo = path.resolve(require("./expo-ui-path")(),"src");
13
+ const expoUI = require("./expo-ui-path")();
14
+ const euCommon = path.resolve(expoUI,"node_modules","@fto-consult","common");
15
+ const cpath = fs.existsSync(euCommon)? path.resolve(euCommon,"babel.config.alias") : "@fto-consult/common/babel.config.alias";
16
+ const r = require(`${cpath}`)(opts);
17
+ const expo = path.resolve(expoUI,"src");
15
18
  r["$eauth"] = path.resolve(expo,"auth");
16
19
  r["$ecomponents"] = r["$expo-components"] = path.resolve(expo,"components");
17
20
  r["$etableLink"] = r["$eTableLink"] = path.resolve(r["$ecomponents"],"TableLink");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fto-consult/expo-ui",
3
- "version": "3.3.2",
3
+ "version": "3.3.4",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -61,7 +61,7 @@
61
61
  "@emotion/native": "^11.10.0",
62
62
  "@expo/html-elements": "^0.2.0",
63
63
  "@expo/vector-icons": "^13.0.0",
64
- "@fto-consult/common": "^2.15.0",
64
+ "@fto-consult/common": "^2.15.2",
65
65
  "@gorhom/portal": "^1.0.14",
66
66
  "@react-native-async-storage/async-storage": "~1.17.3",
67
67
  "@react-native-community/datetimepicker": "6.5.2",
@@ -103,6 +103,7 @@ export default class TableDataScreenComponent extends FormDataScreen{
103
103
  context.onNoValidate({...args,msg:message,message,context,validRule:context.getValidRule()});
104
104
  }
105
105
  }).catch((e)=>{
106
+ if(e && e.status?.toString() == '404') return;
106
107
  const message = defaultStr(e?.message,e?.msg);
107
108
  if(message){
108
109
  context.onNoValidate({...args,msg:message,message,error:e,context,validRule:context.getValidRule()});