@lwrjs/lwc-ssr 0.15.3 → 0.15.4

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.
@@ -116,7 +116,7 @@ var FetchController = class {
116
116
  [import_shared_utils.REQUEST_DEPTH_HEADER]: String(requestDepth)
117
117
  }
118
118
  };
119
- if (host && finalUrl.startsWith(host)) {
119
+ if (coreProxy || host && finalUrl.startsWith(host)) {
120
120
  finalInit.headers[ROUTE_CORE_HEADER] = "true";
121
121
  }
122
122
  const proxyStr = coreProxy ? JSON.stringify(coreProxy) : "none";
@@ -122,7 +122,7 @@ export class FetchController {
122
122
  [REQUEST_DEPTH_HEADER]: String(requestDepth),
123
123
  },
124
124
  };
125
- if (host && finalUrl.startsWith(host)) {
125
+ if (coreProxy || (host && finalUrl.startsWith(host))) {
126
126
  // hint for the CDN that the request is targeted to Core
127
127
  finalInit.headers[ROUTE_CORE_HEADER] = 'true';
128
128
  }
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.15.3",
7
+ "version": "0.15.4",
8
8
  "homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
9
9
  "repository": {
10
10
  "type": "git",
@@ -42,17 +42,17 @@
42
42
  "build/**/*.d.ts"
43
43
  ],
44
44
  "dependencies": {
45
- "@lwrjs/config": "0.15.3",
46
- "@lwrjs/diagnostics": "0.15.3",
47
- "@lwrjs/instrumentation": "0.15.3",
48
- "@lwrjs/loader": "0.15.3",
49
- "@lwrjs/shared-utils": "0.15.3",
45
+ "@lwrjs/config": "0.15.4",
46
+ "@lwrjs/diagnostics": "0.15.4",
47
+ "@lwrjs/instrumentation": "0.15.4",
48
+ "@lwrjs/loader": "0.15.4",
49
+ "@lwrjs/shared-utils": "0.15.4",
50
50
  "fs-extra": "^11.2.0",
51
51
  "lru-cache": "^10.4.3",
52
52
  "undici": "^6.19.8"
53
53
  },
54
54
  "devDependencies": {
55
- "@lwrjs/types": "0.15.3",
55
+ "@lwrjs/types": "0.15.4",
56
56
  "jest": "^26.6.3",
57
57
  "memfs": "^4.13.0",
58
58
  "ts-jest": "^26.5.6"
@@ -63,5 +63,5 @@
63
63
  "volta": {
64
64
  "extends": "../../../package.json"
65
65
  },
66
- "gitHead": "d4ee52679347b27bdc1e4f37f8e1cc9646eb5386"
66
+ "gitHead": "7e461b5d43aeaf5adce95b2ab8fec57748c4fa07"
67
67
  }