@lwrjs/shared-utils 0.19.0-alpha.4 → 0.19.0-alpha.6

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/build/cjs/env.cjs CHANGED
@@ -16,7 +16,6 @@ __export(exports, {
16
16
  FORWARDED: () => FORWARDED,
17
17
  MRT_REQUEST_CLASS: () => MRT_REQUEST_CLASS,
18
18
  REQUEST_DEPTH_HEADER: () => REQUEST_DEPTH_HEADER,
19
- ROUTE_CORE_HEADER: () => ROUTE_CORE_HEADER,
20
19
  TRUE_CLIENT_IP: () => TRUE_CLIENT_IP,
21
20
  buildEnvironmentContext: () => buildEnvironmentContext,
22
21
  getFeatureFlags: () => getFeatureFlags,
@@ -92,7 +91,6 @@ var B3_PARENT_ID = "x-b3-parentspanid";
92
91
  var B3_SAMPLED = "x-b3-sampled";
93
92
  var FORWARDED = "forwarded";
94
93
  var MRT_REQUEST_CLASS = "x-mobify-request-class";
95
- var ROUTE_CORE_HEADER = "x-sfdc-route-core";
96
94
  var REQUEST_DEPTH_HEADER = "x-sfdc-request-depth";
97
95
  function parseRequestDepth(headers = {}, query = {}) {
98
96
  let maxDepth = 0;
package/build/es/env.d.ts CHANGED
@@ -36,7 +36,6 @@ export declare const B3_PARENT_ID = "x-b3-parentspanid";
36
36
  export declare const B3_SAMPLED = "x-b3-sampled";
37
37
  export declare const FORWARDED = "forwarded";
38
38
  export declare const MRT_REQUEST_CLASS = "x-mobify-request-class";
39
- export declare const ROUTE_CORE_HEADER = "x-sfdc-route-core";
40
39
  export declare const REQUEST_DEPTH_HEADER = "x-sfdc-request-depth";
41
40
  export declare function parseRequestDepth(headers?: Headers, query?: Record<string, string>): number;
42
41
  export declare function getTraceHeaders(runtimeParams: RuntimeParams, span?: {
package/build/es/env.js CHANGED
@@ -120,7 +120,6 @@ export const B3_PARENT_ID = 'x-b3-parentspanid'; // parent span ID for a trace
120
120
  export const B3_SAMPLED = 'x-b3-sampled'; // "0" = tracing is off, "1" = tracing is on
121
121
  export const FORWARDED = 'forwarded'; // CDN Forwarded Host Info (eg: host=dev.testing.com;proto=https)
122
122
  export const MRT_REQUEST_CLASS = 'x-mobify-request-class'; // contains the site base path, eg: basePath=/mysite
123
- export const ROUTE_CORE_HEADER = 'x-sfdc-route-core'; // helps route requests to Core efficiently, value: true
124
123
  export const REQUEST_DEPTH_HEADER = 'x-sfdc-request-depth'; // tracks the request depth to prevent cycles to the LWR server, eg: 2
125
124
  // standard headers: Forwarded (eg: host=dev.testing.com;proto=https), Host (eg: darrell.sandbox.my.site.com), Cookie (holds the SID for auth'ed requests)
126
125
  export function parseRequestDepth(headers = {}, query = {}) {
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.19.0-alpha.4",
7
+ "version": "0.19.0-alpha.6",
8
8
  "homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
9
9
  "repository": {
10
10
  "type": "git",
@@ -37,7 +37,7 @@
37
37
  "build/**/*.d.ts"
38
38
  ],
39
39
  "dependencies": {
40
- "@lwrjs/diagnostics": "0.19.0-alpha.4",
40
+ "@lwrjs/diagnostics": "0.19.0-alpha.6",
41
41
  "es-module-lexer": "^1.5.4",
42
42
  "fast-json-stable-stringify": "^2.1.0",
43
43
  "magic-string": "^0.30.9",
@@ -50,7 +50,7 @@
50
50
  "slugify": "^1.4.5"
51
51
  },
52
52
  "devDependencies": {
53
- "@lwrjs/types": "0.19.0-alpha.4",
53
+ "@lwrjs/types": "0.19.0-alpha.6",
54
54
  "@types/mime-types": "2.1.4",
55
55
  "@types/path-to-regexp": "^1.7.0",
56
56
  "memfs": "^4.13.0"
@@ -58,5 +58,5 @@
58
58
  "engines": {
59
59
  "node": ">=20.0.0"
60
60
  },
61
- "gitHead": "83466768b57a140e1eefae560be386277b7100a9"
61
+ "gitHead": "25933a335c7f2f6ebc39381feda5f47e07e43faa"
62
62
  }