@fto-consult/expo-ui 7.4.28 → 7.4.29

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.
@@ -6,10 +6,10 @@ const path = require("path");
6
6
  const fs = require("fs");
7
7
  const isObj = x=>x && typeof x =='object' && !Array.isArray(x);
8
8
  const isNonNullString = x=>x && typeof x =='string';
9
- const packageJSONStr = ipcRenderer.sendSync("electron-get-package-json");
10
- const projectRoot = ipcRenderer.sendSync("electron-get-electron-project-root");
11
- const pathsJS = projectRoot && fs.existsSync(projectRoot) && path.resolve(projectRoot,"paths.json") || null;
12
- const _app = packageJSONStr ? JSON.parse(packageJSONStr) : {};
9
+ const projectRoot = ipcRenderer.sendSync("electron-get-project-root");
10
+ const electronProjectRoot = ipcRenderer.sendSync("electron-get-electron-project-root");
11
+ const pathsJS = electronProjectRoot && fs.existsSync(electronProjectRoot) && path.resolve(electronProjectRoot,"paths.json") || null;
12
+ const _app = projectRoot && fs.existsSync(path.resolve(projectRoot,"package.json")) ? require(path.resolve(projectRoot,"package.json")) : {};
13
13
  if(!_app || typeof _app !=='object' || typeof _app.name !=='string'){
14
14
  throw {message : "Contenu du fichier "+packagePath+" invalide!! Veuillez spécifier un nom valide d'application, propriété <<name>> dudit fichier"}
15
15
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fto-consult/expo-ui",
3
- "version": "7.4.28",
3
+ "version": "7.4.29",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "main": "main",
6
6
  "scripts": {