@fto-consult/expo-ui 7.5.20 → 7.5.22

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/electron/index.js CHANGED
@@ -18,7 +18,7 @@ const isValidUrl = require("./utils/isValidUrl");
18
18
  const distPath = path.join("dist",'index.html');
19
19
  const processCWD = process.cwd();
20
20
  const electronProjectRoot = mainProjectRoot && fs.existsSync(mainProjectRoot) && fs.existsSync(path.resolve(mainProjectRoot,distPath)) ? mainProjectRoot : null;
21
- const projectRoot = electronProjectRoot || fs.existsSync(path.resolve(processCWD,"electron")) && fs.existsSync(path.resolve(processCWD,"electron",distPath)) ? fs.existsSync(path.resolve(processCWD,"electron")) : undefined;
21
+ const projectRoot = electronProjectRoot || fs.existsSync(path.resolve(processCWD,"electron")) && fs.existsSync(path.resolve(processCWD,"electron",distPath)) ? path.resolve(processCWD,"electron") : undefined;
22
22
  const packageJSONPath = fs.existsSync(processCWD,"package.json")? path.resolve(processCWD,"package.json") : path.resolve(projectRoot,"package.json");
23
23
  const packageJSON = fs.existsSync(packageJSONPath) ? require(`${packageJSONPath}`) : {};
24
24
 
@@ -46,6 +46,7 @@ function mainExportedApp (options){
46
46
  options.appName = typeof options.appName =="string" && options.appName ||
47
47
  typeof options.packageJSON?.realAppName =='string' && options?.packageJSON?.realAppName || typeof packageJSON?.realAppName =="string" && packageJSON?.realAppName ||
48
48
  typeof option?.packageJSON?.name =="string" && options?.packageJSON?.name || typeof packageJSON.name =="string" && packageJSON.name || undefined;
49
+ throw JSON.stringify(options);
49
50
  return mainApp(options);
50
51
  }
51
52
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fto-consult/expo-ui",
3
- "version": "7.5.20",
3
+ "version": "7.5.22",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "scripts": {
6
6
  "clear-npx-cache": "npx clear-npx-cache",