@fto-consult/expo-ui 6.6.5 → 6.6.7

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.
Files changed (2) hide show
  1. package/babel.config.js +4 -4
  2. package/package.json +1 -1
package/babel.config.js CHANGED
@@ -33,7 +33,7 @@ module.exports = function(api,opts) {
33
33
  //generate getTable.js file
34
34
  const generateGetTable = String(envObj.GENERATE_GET_TABLE_JS_FILE ).trim().toLowerCase();
35
35
  const willGenerateGetTableJs = generateGetTable === "false" || generateGetTable ==="0" ? false : true;
36
- const tableDataPath = String(envObj.TABLES_DATA_PATH);
36
+ const tableDataPath = envObj.TABLES_DATA_PATH && path.resolve(String(envObj.TABLES_DATA_PATH)) || null;
37
37
  if(willGenerateGetTableJs && tableDataPath && fs.existsSync(tableDataPath)){
38
38
  if(fs.lstatSync(tableDataPath).isDirectory()){
39
39
  const getTableJsPath = path.resolve(tableDataPath,"getTable.js");
@@ -57,10 +57,10 @@ module.exports = function(api,opts) {
57
57
  if(getTableJSContent){
58
58
  writeFile(getTableJsPath,`
59
59
  module.exports = function(tableName){
60
- if(!tableName || typeof tableName !=="string") return null;
61
- tableName = tableName.toUpperCase().trim();
60
+ if(!tableName || typeof tableName !=="string") return null;
61
+ tableName = tableName.toUpperCase().trim();
62
62
  ${getTableJSContent}
63
- return null;
63
+ return null;
64
64
  }
65
65
  `);
66
66
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fto-consult/expo-ui",
3
- "version": "6.6.5",
3
+ "version": "6.6.7",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "main": "index.js",
6
6
  "scripts": {