-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hotfix: update dependencies to fix vulnerabilities
- Loading branch information
1 parent
391b306
commit 40b5379
Showing
15 changed files
with
9,994 additions
and
12,429 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Basic | ||
LOCALE='WORK' | ||
HOME_API='http://192.168.0.1:3333' | ||
WORK_API='http://192.168.2.5:3333' | ||
PROD_API='https://' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
module.exports = function(api) { | ||
module.exports = function (api) { | ||
api.cache(true); | ||
return { | ||
presets: ['babel-preset-expo'], | ||
presets: ["babel-preset-expo", "module:react-native-dotenv"], | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,36 @@ | ||
{ | ||
"main": "node_modules/expo/AppEntry.js", | ||
"scripts": { | ||
"start": "expo start", | ||
"dev": "expo start", | ||
"android": "expo start --android", | ||
"ios": "expo start --ios", | ||
"web": "expo start --web", | ||
"eject": "expo eject" | ||
}, | ||
"dependencies": { | ||
"@react-native-community/masked-view": "^0.1.6", | ||
"axios": "^0.19.1", | ||
"expo": "~36.0.0", | ||
"expo-location": "~8.0.0", | ||
"react": "~16.9.0", | ||
"react-dom": "~16.9.0", | ||
"react-native": "https://github.com/expo/react-native/archive/sdk-36.0.0.tar.gz", | ||
"react-native-gesture-handler": "~1.5.0", | ||
"react-native-maps": "0.26.1", | ||
"react-native-reanimated": "~1.4.0", | ||
"react-native-safe-area-context": "0.6.0", | ||
"react-native-screens": "2.0.0-alpha.12", | ||
"react-native-web": "~0.11.7", | ||
"react-native-webview": "7.4.3", | ||
"axios": "^0.26.0", | ||
"expo": "^44.0.0", | ||
"expo-constants": "~13.0.1", | ||
"expo-location": "~14.0.1", | ||
"react": "17.0.1", | ||
"react-dom": "17.0.1", | ||
"react-native": "0.64.3", | ||
"react-native-dotenv": "^0.2.0", | ||
"react-native-gesture-handler": "~2.1.0", | ||
"react-native-maps": "0.29.4", | ||
"react-native-reanimated": "~2.3.1", | ||
"react-native-safe-area-context": "3.3.2", | ||
"react-native-screens": "~3.10.1", | ||
"react-native-web": "0.17.1", | ||
"react-native-webview": "11.15.0", | ||
"react-navigation": "^4.0.10", | ||
"react-navigation-stack": "^2.0.15", | ||
"socket.io-client": "^2.3.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.0.0", | ||
"babel-preset-expo": "~8.0.0" | ||
"@babel/core": "^7.12.9", | ||
"babel-preset-expo": "9.0.2" | ||
}, | ||
"private": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import axios from "axios"; | ||
import { LOCALE, WORK_API, HOME_API, PROD_API } from "react-native-dotenv"; | ||
|
||
const API_URL = process.env.API_URL || "http://backend-devradar.herokuapp.com/"; | ||
const api = axios.create(); | ||
|
||
const api = axios.create({ | ||
baseURL: API_URL | ||
}); | ||
api.defaults.baseURL = | ||
LOCALE === "HOME" ? HOME_API : LOCALE === "WORK" ? WORK_API : PROD_API; | ||
|
||
export default api; |
Oops, something went wrong.