@fto-consult/expo-ui 7.4.59 → 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.
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;
@@ -391,6 +391,7 @@ const ELECTRON = {
391
391
  devTools : true,
392
392
  webPreferences : {
393
393
  devTools : true,
394
+ webSecurity: false,
394
395
  ...Object.assign({},options.webPreferences),
395
396
  },
396
397
  fileName
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fto-consult/expo-ui",
3
- "version": "7.4.59",
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",