@fto-consult/expo-ui 7.4.60 → 7.4.61

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/electron/index.js +11 -11
  2. package/package.json +1 -1
package/electron/index.js CHANGED
@@ -81,22 +81,22 @@ function createBrowserWindow (options){
81
81
  options.webPreferences = isObj(options.webPreferences)? options.webPreferences : {};
82
82
  options.webPreferences = {
83
83
  sandbox: false,
84
- ...options.webPreferences,
85
- contextIsolation: true,
86
- devTools: typeof options.webPreferences.devTools === 'boolean'? options.webPreferences.devTools : false,
87
84
  webSecurity : true,
85
+ plugin:false,
88
86
  autoHideMenuBar: true,
87
+ contextIsolation: true,
88
+ contentSecurityPolicy: `
89
+ default-src 'none';
90
+ script-src 'self';
91
+ img-src 'self' data:;
92
+ style-src 'self';
93
+ font-src 'self';
94
+ `,
95
+ ...options.webPreferences,
96
+ devTools: typeof options.webPreferences.devTools === 'boolean'? options.webPreferences.devTools : false,
89
97
  allowRunningInsecureContent: false,
90
98
  nodeIntegration: false,
91
99
  preload: options.preload ? options.preload : null,
92
- plugin:false,
93
- contentSecurityPolicy: `
94
- default-src 'none';
95
- script-src 'self';
96
- img-src 'self' data:;
97
- style-src 'self';
98
- font-src 'self';
99
- `
100
100
  }
101
101
  if(options.modal && !options.parent && win){
102
102
  options.parent = win;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fto-consult/expo-ui",
3
- "version": "7.4.60",
3
+ "version": "7.4.61",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "scripts": {
6
6
  "clear-npx-cache": "npx clear-npx-cache",