@lwrjs/server 0.15.0-alpha.13 → 0.15.0-alpha.15

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.
@@ -100,7 +100,7 @@ var AbstractMiddlewareRequest = class {
100
100
  if (host && !host.startsWith("http")) {
101
101
  host = `${this.headers?.["x-forwarded-proto"] || this.protocol}://${host}`;
102
102
  }
103
- const requestDepth = (0, import_shared_utils.parseRequestDepthHeader)(this.headers) + 1;
103
+ const requestDepth = (0, import_shared_utils.parseRequestDepth)(this.headers, this.query) + 1;
104
104
  const basePath = runtimeEnvironment.basePath;
105
105
  const defaultLocale = runtimeEnvironment.i18n.defaultLocale;
106
106
  const locale = localeParam || this.locale || defaultLocale;
@@ -1,4 +1,4 @@
1
- import { parseRequestDepthHeader } from '@lwrjs/shared-utils';
1
+ import { parseRequestDepth } from '@lwrjs/shared-utils';
2
2
  // See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Forwarded
3
3
  function parseForwardedHeader(forwarded) {
4
4
  if (!forwarded)
@@ -76,7 +76,7 @@ export class AbstractMiddlewareRequest {
76
76
  host = `${this.headers?.['x-forwarded-proto'] || this.protocol}://${host}`;
77
77
  }
78
78
  // Increment the depth for any fetch calls
79
- const requestDepth = parseRequestDepthHeader(this.headers) + 1;
79
+ const requestDepth = parseRequestDepth(this.headers, this.query) + 1;
80
80
  const basePath = runtimeEnvironment.basePath;
81
81
  const defaultLocale = runtimeEnvironment.i18n.defaultLocale;
82
82
  const locale = localeParam || this.locale || defaultLocale;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.15.0-alpha.13",
7
+ "version": "0.15.0-alpha.15",
8
8
  "homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
9
9
  "repository": {
10
10
  "type": "git",
@@ -37,16 +37,16 @@
37
37
  "build": "tsc -b"
38
38
  },
39
39
  "devDependencies": {
40
- "@lwrjs/types": "0.15.0-alpha.13",
40
+ "@lwrjs/types": "0.15.0-alpha.15",
41
41
  "@types/koa-compress": "^4.0.6",
42
42
  "@types/koa__router": "^8.0.4",
43
43
  "jest-express": "^1.12.0"
44
44
  },
45
45
  "dependencies": {
46
46
  "@koa/router": "^10.0.0",
47
- "@lwrjs/diagnostics": "0.15.0-alpha.13",
48
- "@lwrjs/instrumentation": "0.15.0-alpha.13",
49
- "@lwrjs/shared-utils": "0.15.0-alpha.13",
47
+ "@lwrjs/diagnostics": "0.15.0-alpha.15",
48
+ "@lwrjs/instrumentation": "0.15.0-alpha.15",
49
+ "@lwrjs/shared-utils": "0.15.0-alpha.15",
50
50
  "@types/express": "^4.17.21",
51
51
  "@types/koa": "^2.15.0",
52
52
  "express": "^4.20.0",
@@ -56,5 +56,5 @@
56
56
  "engines": {
57
57
  "node": ">=18.0.0"
58
58
  },
59
- "gitHead": "687327a328b33a1abc3ac45e1406d72ebe7d37b4"
59
+ "gitHead": "6399f18c87c36ded4daf9d90360a7e044a769394"
60
60
  }