@lwrjs/shared-utils 0.18.0 → 0.19.0-alpha.1
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 +2 -0
- package/build/es/env.d.ts +1 -0
- package/build/es/env.js +1 -0
- package/package.json +4 -4
package/build/cjs/env.cjs
CHANGED
|
@@ -13,6 +13,7 @@ __export(exports, {
|
|
|
13
13
|
B3_SPAN_ID: () => B3_SPAN_ID,
|
|
14
14
|
B3_TRACE_ID: () => B3_TRACE_ID,
|
|
15
15
|
CORRELATION_ID: () => CORRELATION_ID,
|
|
16
|
+
FORWARDED: () => FORWARDED,
|
|
16
17
|
MRT_REQUEST_CLASS: () => MRT_REQUEST_CLASS,
|
|
17
18
|
REQUEST_DEPTH_HEADER: () => REQUEST_DEPTH_HEADER,
|
|
18
19
|
ROUTE_CORE_HEADER: () => ROUTE_CORE_HEADER,
|
|
@@ -89,6 +90,7 @@ var B3_TRACE_ID = "x-b3-traceid";
|
|
|
89
90
|
var B3_SPAN_ID = "x-b3-spanid";
|
|
90
91
|
var B3_PARENT_ID = "x-b3-parentspanid";
|
|
91
92
|
var B3_SAMPLED = "x-b3-sampled";
|
|
93
|
+
var FORWARDED = "forwarded";
|
|
92
94
|
var MRT_REQUEST_CLASS = "x-mobify-request-class";
|
|
93
95
|
var ROUTE_CORE_HEADER = "x-sfdc-route-core";
|
|
94
96
|
var REQUEST_DEPTH_HEADER = "x-sfdc-request-depth";
|
package/build/es/env.d.ts
CHANGED
|
@@ -34,6 +34,7 @@ export declare const B3_TRACE_ID = "x-b3-traceid";
|
|
|
34
34
|
export declare const B3_SPAN_ID = "x-b3-spanid";
|
|
35
35
|
export declare const B3_PARENT_ID = "x-b3-parentspanid";
|
|
36
36
|
export declare const B3_SAMPLED = "x-b3-sampled";
|
|
37
|
+
export declare const FORWARDED = "forwarded";
|
|
37
38
|
export declare const MRT_REQUEST_CLASS = "x-mobify-request-class";
|
|
38
39
|
export declare const ROUTE_CORE_HEADER = "x-sfdc-route-core";
|
|
39
40
|
export declare const REQUEST_DEPTH_HEADER = "x-sfdc-request-depth";
|
package/build/es/env.js
CHANGED
|
@@ -118,6 +118,7 @@ export const B3_TRACE_ID = 'x-b3-traceid'; // trace ID shared across service bou
|
|
|
118
118
|
export const B3_SPAN_ID = 'x-b3-spanid'; // span ID for a trace
|
|
119
119
|
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
|
+
export const FORWARDED = 'forwarded'; // CDN Forwarded Host Info (eg: host=dev.testing.com;proto=https)
|
|
121
122
|
export const MRT_REQUEST_CLASS = 'x-mobify-request-class'; // contains the site base path, eg: basePath=/mysite
|
|
122
123
|
export const ROUTE_CORE_HEADER = 'x-sfdc-route-core'; // helps route requests to Core efficiently, value: true
|
|
123
124
|
export const REQUEST_DEPTH_HEADER = 'x-sfdc-request-depth'; // tracks the request depth to prevent cycles to the LWR server, eg: 2
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.19.0-alpha.1",
|
|
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.
|
|
40
|
+
"@lwrjs/diagnostics": "0.19.0-alpha.1",
|
|
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.
|
|
53
|
+
"@lwrjs/types": "0.19.0-alpha.1",
|
|
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": "
|
|
61
|
+
"gitHead": "6de3ad36088e0f41e355d69c94ab09a8868f516b"
|
|
62
62
|
}
|