@yoooclaw/phone-notifications 1.11.9 → 1.11.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/dist/index.cjs +2 -7
- package/dist/index.cjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -5574,7 +5574,7 @@ function readBuildInjectedVersion() {
|
|
|
5574
5574
|
if (false) {
|
|
5575
5575
|
return void 0;
|
|
5576
5576
|
}
|
|
5577
|
-
const version = "1.11.
|
|
5577
|
+
const version = "1.11.10".trim();
|
|
5578
5578
|
return version || void 0;
|
|
5579
5579
|
}
|
|
5580
5580
|
function readPluginVersionFromPackageJson() {
|
|
@@ -12985,9 +12985,7 @@ async function handleHttpRequest(opts, frame) {
|
|
|
12985
12985
|
const mappedPath = mapPath(frame.path);
|
|
12986
12986
|
const url = new URL(mappedPath, opts.gatewayBaseUrl);
|
|
12987
12987
|
const startedAtMs = Date.now();
|
|
12988
|
-
const
|
|
12989
|
-
const trustedProxyUser = opts.gatewayTrustedProxyUser?.trim();
|
|
12990
|
-
const trustedProxyHeaderLower = trustedProxyHeader?.toLowerCase();
|
|
12988
|
+
const trustedProxyHeaderLower = opts.gatewayTrustedProxyHeader?.trim().toLowerCase();
|
|
12991
12989
|
const localHeaders = {};
|
|
12992
12990
|
for (const [k, v] of Object.entries(frame.headers ?? {})) {
|
|
12993
12991
|
const lower = k.toLowerCase();
|
|
@@ -12996,9 +12994,6 @@ async function handleHttpRequest(opts, frame) {
|
|
|
12996
12994
|
localHeaders[k] = v;
|
|
12997
12995
|
}
|
|
12998
12996
|
localHeaders[RELAY_INTERNAL_HTTP_HEADER] = "1";
|
|
12999
|
-
if (trustedProxyHeader && trustedProxyUser) {
|
|
13000
|
-
localHeaders[trustedProxyHeader] = trustedProxyUser;
|
|
13001
|
-
}
|
|
13002
12997
|
const authAttempts = buildLocalGatewayAuthAttempts(opts, localHeaders);
|
|
13003
12998
|
opts.logger.info(
|
|
13004
12999
|
`TunnelProxy: HTTP id=${frame.id} ${frame.method} ${frame.path} \u2192 ${url.toString()}${summarizeRequestHeaders(frame.headers)}, authAttempts=${authAttempts.map((a) => a.label).join(" -> ")}, body=${previewText2(frame.body)}`
|