nx-react-native-cli 3.0.6 → 3.0.8
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/package.json
CHANGED
|
@@ -5,6 +5,7 @@ echo "Cleaning generated outputs..."
|
|
|
5
5
|
|
|
6
6
|
root_node_modules_path="node_modules"
|
|
7
7
|
app_rn_name="mobile"
|
|
8
|
+
mobile_node_modules_path="apps/$app_rn_name/node_modules"
|
|
8
9
|
app_rn_android_gradle_path="apps/$app_rn_name/android/.gradle"
|
|
9
10
|
app_rn_android_build_path="apps/$app_rn_name/android/build"
|
|
10
11
|
app_rn_android_cxx_path="apps/$app_rn_name/android/app/.cxx"
|
|
@@ -19,6 +20,9 @@ rm -rf "$root_build_path"
|
|
|
19
20
|
echo "Deleting root $root_node_modules_path..."
|
|
20
21
|
rm -rf "$root_node_modules_path"
|
|
21
22
|
|
|
23
|
+
echo "Deleting $mobile_node_modules_path..."
|
|
24
|
+
rm -rf "$mobile_node_modules_path"
|
|
25
|
+
|
|
22
26
|
echo "Deleting $app_rn_android_build_path..."
|
|
23
27
|
rm -rf "$app_rn_android_build_path"
|
|
24
28
|
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
diff --git a/node_modules/metro/src/Server.js b/node_modules/metro/src/Server.js
|
|
2
|
+
index 1234567..abcdefg 100644
|
|
3
|
+
--- a/node_modules/metro/src/Server.js
|
|
4
|
+
+++ b/node_modules/metro/src/Server.js
|
|
5
|
+
@@ -499,8 +499,9 @@ class Server {
|
|
6
|
+
if (!reqHost) {
|
|
7
|
+
throw new Error("No host header was found.");
|
|
8
|
+
}
|
|
9
|
+
- const reqProtocol =
|
|
10
|
+
- req.headers["x-forwarded-proto"] ||
|
|
11
|
+
+ const rawProto = req.headers["x-forwarded-proto"];
|
|
12
|
+
+ const reqProtocol =
|
|
13
|
+
+ (rawProto ? rawProto.split(",")[0].trim() : null) ||
|
|
14
|
+
(req.socket?.encrypted === true ? "https" : "http");
|
|
15
|
+
const urlObj = new URL(req.url, reqProtocol + "://" + reqHost);
|
|
16
|
+
const formattedUrl = urlObj.toString();
|