@fto-consult/expo-ui 6.6.2 → 6.6.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.
package/babel.config.js CHANGED
@@ -2,8 +2,6 @@ module.exports = function(api,opts) {
2
2
  opts = typeof opts =='object' && opts ? opts : {};
3
3
  api = api && typeof api =='object'? api : {};
4
4
 
5
-
6
-
7
5
  ///les chemin vers la variable d'environnement, le chemin du fichier .env,@see : https://github.com/brysgo/babel-plugin-inline-dotenv
8
6
  //console.log(environmentPath," is envvv ",opts);
9
7
  const path = require("path");
@@ -31,11 +29,10 @@ module.exports = function(api,opts) {
31
29
  if(fs.existsSync(writeFilePath)){
32
30
  //generate getTable.js file
33
31
  const generateGetTable = String(envObj.GENERATE_GET_TABLE_JS_FILE ).trim().toLowerCase();
34
- const willGenerateGetTableJs = generateGetTable === "false" || generateGetTable ==="0" ? false : generateGetTable ==="1" || generateGetTable ==='true';
35
- if(willGenerateGetTableJs){
36
- const tableDataPath = envObj.TABLES_DATA_PATH;
37
- if(tableDataPath && fs.existsSync(tableDataPath) && fs.lstatSync(tableDataPath).isDirectory()){
38
- const path = path.resolve(tableDataPath);
32
+ const willGenerateGetTableJs = generateGetTable === "false" || generateGetTable ==="0" ? false : true;
33
+ const tableDataPath = String(envObj.TABLES_DATA_PATH);
34
+ if(willGenerateGetTableJs && tableDataPath && fs.existsSync(tableDataPath)){
35
+ if(fs.lstatSync(tableDataPath).isDirectory()){
39
36
  const getTableJsPath = path.resolve(tableDataPath,"getTable.js");
40
37
  let getTableJSContent = '';
41
38
  const tables = fs.readdirSync(tableDataPath);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fto-consult/expo-ui",
3
- "version": "6.6.2",
3
+ "version": "6.6.4",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/parse-env.js CHANGED
@@ -8,7 +8,6 @@ module.exports = function parse (src) {
8
8
  const envPath = path.resolve(process.cwd(),".env");
9
9
  src = fs.existsSync(envPath)? fs.readFileSync(envPath,'utf8') :"";
10
10
  } catch{}
11
- return {};
12
11
  }
13
12
  if(typeof src !=='string' || !src) return {};
14
13
  const obj = {}