@fto-consult/expo-ui 7.4.46 → 7.4.47

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.
@@ -381,9 +381,9 @@ const ELECTRON = {
381
381
  },
382
382
  get printPDF (){
383
383
  return (options)=>{
384
- return createPDFFile(options).then(({path,filePathUrl})=>{
384
+ return createPDFFile(options).then(({path:mainPath,filePathUrl})=>{
385
385
  const urlPath = path.resolve(__dirname,"pdf-viewer","viewer.html");
386
- if(fs.existsSync(path)){
386
+ if(fs.existsSync(mainPath)){
387
387
  opts.loadURL = `file://${urlPath}?file=${decodeURIComponent(filePathUrl)}&locale=fr&fileName=${fileName}`;
388
388
  opts.showOnLoad = true;
389
389
  console.log("will print url ",options.loadURL,options);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fto-consult/expo-ui",
3
- "version": "7.4.46",
3
+ "version": "7.4.47",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "scripts": {
6
6
  "clear-npx-cache": "npx clear-npx-cache",