@fto-consult/expo-ui 8.2.1 → 8.2.3

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/copy-env-file.js CHANGED
@@ -2,10 +2,19 @@ const fs = require("fs");
2
2
  const path = require("path");
3
3
  const {writeFile,copy} = require("./bin/utils");
4
4
 
5
+ const checkEnv = (...envrs)=>{
6
+ for(let i in envrs){
7
+ const env = envrs[i];
8
+ if(env && ["true","1",1].includes(process.env[env])){
9
+ return true;
10
+ }
11
+ }
12
+ return false;
13
+ }
5
14
  module.exports = (projectRoot,forceCreate)=>{
6
15
  const env = typeof process.env.NODE_ENV =="string" && process.env.NODE_ENV.toLowerCase().trim() || "development";
7
16
  const isDevEnv = 'development' === env;
8
- if(!isDevEnv && process.env.IGNORE_ENV) return null;
17
+ if(!isDevEnv && checkEnv("IGNORE_ENV","NO_DOTENV")) return null;
9
18
  projectRoot = projectRoot && typeof projectRoot =="string" && fs.existsSync(projectRoot) && projectRoot || process.cwd();
10
19
  const pWithEnv = path.resolve(projectRoot,`.env.${env}`);
11
20
  const environmentPath = fs.existsSync(pWithEnv) ? pWithEnv : path.resolve(projectRoot,".env");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fto-consult/expo-ui",
3
- "version": "8.2.1",
3
+ "version": "8.2.3",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "scripts": {
6
6
  "clear-npx-cache": "npx clear-npx-cache",
@@ -47,7 +47,7 @@
47
47
  "delete-node-modules": "rimraf ./**/node_modules",
48
48
  "dev": "npx expo start --no-dev --minify -c",
49
49
  "modifier-url-remote-git": "git remote set-url origin 'https://borispipo@github.com/borispipo/smart-eneo.git'",
50
- "update": "npm i @fto-consult/node-utils@latest expo @emotion/native@latest react-native-big-list@latest apexcharts@latest file-saver@latest fs-extra@latest google-libphonenumber@latest @pchmn/expo-material3-theme@latest @emotion/native@latest @fto-consult/common@latest @react-navigation/stack react-native-blob-util react-native-iphone-x-helper@latest react-native-mime-types@latest react-native-paper@5 react-native-paper-dates@latest @react-navigation/native@latest @react-navigation/native-stack@latest react-virtuoso@latest tippy.js@latest websql@latest xlsx@latest react-native-web@latest react-dom@latest && npx expo install --fix && npm run update-apexchart && npm run find-licenses"
50
+ "update": "npm i @fto-consult/node-utils@latest expo @emotion/native@latest react-native-big-list@latest apexcharts@latest file-saver@latest google-libphonenumber@latest @pchmn/expo-material3-theme@latest @emotion/native@latest @fto-consult/common@latest @react-navigation/stack react-native-blob-util react-native-iphone-x-helper@latest react-native-mime-types@latest react-native-paper@5 react-native-paper-dates@latest @react-navigation/native@latest @react-navigation/native-stack@latest react-virtuoso@latest tippy.js@latest websql@latest xlsx@latest react-native-web@latest react-dom@latest && npx expo install --fix && npm run update-apexchart && npm run find-licenses"
51
51
  },
52
52
  "bin": {
53
53
  "expo-ui": "./bin/index.js"
@@ -98,7 +98,6 @@
98
98
  "expo-system-ui": "~2.9.3",
99
99
  "expo-web-browser": "~12.8.1",
100
100
  "file-saver": "^2.0.5",
101
- "fs-extra": "^11.2.0",
102
101
  "google-libphonenumber": "^3.2.34",
103
102
  "htmlparser2-without-node-native": "^3.9.2",
104
103
  "is-plain-obj": "^4.1.0",
@@ -1,7 +1,7 @@
1
1
  module.exports = {
2
2
  "@fto-consult/expo-ui": {
3
3
  "name": "@fto-consult/expo-ui",
4
- "version": "8.0.7",
4
+ "version": "8.2.1",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/borispipo/expo-ui.git"
@@ -49,7 +49,7 @@ module.exports = {
49
49
  "license": "MIT"
50
50
  },
51
51
  "@fto-consult/common": {
52
- "version": "4.8.33",
52
+ "version": "4.10.11",
53
53
  "url": "https://github.com/borispipo/common#readme",
54
54
  "license": "ISC"
55
55
  },
@@ -187,11 +187,6 @@ module.exports = {
187
187
  "url": "https://github.com/eligrey/FileSaver.js#readme",
188
188
  "license": "MIT"
189
189
  },
190
- "fs-extra": {
191
- "version": "11.2.0",
192
- "url": "https://github.com/jprichardson/node-fs-extra",
193
- "license": "MIT"
194
- },
195
190
  "google-libphonenumber": {
196
191
  "version": "3.2.34",
197
192
  "url": "https://ruimarinho.github.io/google-libphonenumber/",
@@ -207,7 +202,7 @@ module.exports = {
207
202
  "license": "MIT"
208
203
  },
209
204
  "js-base64": {
210
- "version": "3.7.5",
205
+ "version": "3.7.6",
211
206
  "license": "BSD-3-Clause"
212
207
  },
213
208
  "process": {