@websolutespa/bom-core 1.7.9 → 1.7.10
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/CHANGELOG.md +7 -1
- package/dist/index.js +4 -4
- package/dist/index.mjs +4 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -1101,17 +1101,17 @@ function getHost(headers) {
|
|
|
1101
1101
|
}
|
|
1102
1102
|
function getProto(headers) {
|
|
1103
1103
|
if (isIncomingHttpHeaders(headers)) {
|
|
1104
|
-
return headers["x-forwarded-proto"] || "https
|
|
1104
|
+
return headers["x-forwarded-proto"] || "https";
|
|
1105
1105
|
} else if (isHeaders(headers)) {
|
|
1106
|
-
return headers.get("X-Forwarded-Proto") || "https
|
|
1106
|
+
return headers.get("X-Forwarded-Proto") || "https";
|
|
1107
1107
|
} else {
|
|
1108
|
-
return "https
|
|
1108
|
+
return "https";
|
|
1109
1109
|
}
|
|
1110
1110
|
}
|
|
1111
1111
|
function getOrigin(headers) {
|
|
1112
1112
|
const host = getHost(headers);
|
|
1113
1113
|
if (host) {
|
|
1114
|
-
return host.indexOf("localhost") !== -1 ? "http://" + host : getProto(headers) + host;
|
|
1114
|
+
return host.indexOf("localhost") !== -1 ? "http://" + host : getProto(headers) + "://" + host;
|
|
1115
1115
|
} else {
|
|
1116
1116
|
return process.env.NEXT_PUBLIC_URL || "";
|
|
1117
1117
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -968,17 +968,17 @@ function getHost(headers) {
|
|
|
968
968
|
}
|
|
969
969
|
function getProto(headers) {
|
|
970
970
|
if (isIncomingHttpHeaders(headers)) {
|
|
971
|
-
return headers["x-forwarded-proto"] || "https
|
|
971
|
+
return headers["x-forwarded-proto"] || "https";
|
|
972
972
|
} else if (isHeaders(headers)) {
|
|
973
|
-
return headers.get("X-Forwarded-Proto") || "https
|
|
973
|
+
return headers.get("X-Forwarded-Proto") || "https";
|
|
974
974
|
} else {
|
|
975
|
-
return "https
|
|
975
|
+
return "https";
|
|
976
976
|
}
|
|
977
977
|
}
|
|
978
978
|
function getOrigin(headers) {
|
|
979
979
|
const host = getHost(headers);
|
|
980
980
|
if (host) {
|
|
981
|
-
return host.indexOf("localhost") !== -1 ? "http://" + host : getProto(headers) + host;
|
|
981
|
+
return host.indexOf("localhost") !== -1 ? "http://" + host : getProto(headers) + "://" + host;
|
|
982
982
|
} else {
|
|
983
983
|
return process.env.NEXT_PUBLIC_URL || "";
|
|
984
984
|
}
|