@lwrjs/shared-utils 0.17.2-alpha.21 → 0.17.2-alpha.23
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 -2
- package/build/cjs/html-meta.cjs +0 -1
- package/build/es/env.d.ts +2 -2
- package/build/es/env.js +2 -2
- package/build/es/html-meta.d.ts +2 -2
- package/build/es/html-meta.js +0 -1
- package/package.json +4 -4
package/build/cjs/env.cjs
CHANGED
|
@@ -84,8 +84,8 @@ function buildEnvironmentContext(runtimeParams) {
|
|
|
84
84
|
var TRUE_CLIENT_IP = "true-client-ip";
|
|
85
85
|
var CORRELATION_ID = "x-correlation-id";
|
|
86
86
|
var B3_TRACE_ID = "x-b3-traceid";
|
|
87
|
-
var B3_SPAN_ID = "x-b3-
|
|
88
|
-
var B3_PARENT_ID = "x-b3-
|
|
87
|
+
var B3_SPAN_ID = "x-b3-spanid";
|
|
88
|
+
var B3_PARENT_ID = "x-b3-parentspanid";
|
|
89
89
|
var B3_SAMPLED = "x-b3-sampled";
|
|
90
90
|
var MRT_REQUEST_CLASS = "x-mobify-request-class";
|
|
91
91
|
var ROUTE_CORE_HEADER = "x-sfdc-route-core";
|
package/build/cjs/html-meta.cjs
CHANGED
package/build/es/env.d.ts
CHANGED
|
@@ -31,8 +31,8 @@ export declare function buildEnvironmentContext(runtimeParams: RuntimeParams): E
|
|
|
31
31
|
export declare const TRUE_CLIENT_IP = "true-client-ip";
|
|
32
32
|
export declare const CORRELATION_ID = "x-correlation-id";
|
|
33
33
|
export declare const B3_TRACE_ID = "x-b3-traceid";
|
|
34
|
-
export declare const B3_SPAN_ID = "x-b3-
|
|
35
|
-
export declare const B3_PARENT_ID = "x-b3-
|
|
34
|
+
export declare const B3_SPAN_ID = "x-b3-spanid";
|
|
35
|
+
export declare const B3_PARENT_ID = "x-b3-parentspanid";
|
|
36
36
|
export declare const B3_SAMPLED = "x-b3-sampled";
|
|
37
37
|
export declare const MRT_REQUEST_CLASS = "x-mobify-request-class";
|
|
38
38
|
export declare const ROUTE_CORE_HEADER = "x-sfdc-route-core";
|
package/build/es/env.js
CHANGED
|
@@ -111,8 +111,8 @@ export function buildEnvironmentContext(runtimeParams) {
|
|
|
111
111
|
export const TRUE_CLIENT_IP = 'true-client-ip'; // public IP of the original request source, eg: 13.123.12.3
|
|
112
112
|
export const CORRELATION_ID = 'x-correlation-id'; // shared correlation ID for the request
|
|
113
113
|
export const B3_TRACE_ID = 'x-b3-traceid'; // trace ID shared across service boundaries for a page request, set to inbound B3 header || lwr.handle.view trace ID
|
|
114
|
-
export const B3_SPAN_ID = 'x-b3-
|
|
115
|
-
export const B3_PARENT_ID = 'x-b3-
|
|
114
|
+
export const B3_SPAN_ID = 'x-b3-spanid'; // span ID for a trace
|
|
115
|
+
export const B3_PARENT_ID = 'x-b3-parentspanid'; // parent span ID for a trace
|
|
116
116
|
export const B3_SAMPLED = 'x-b3-sampled'; // "0" = tracing is off, "1" = tracing is on
|
|
117
117
|
export const MRT_REQUEST_CLASS = 'x-mobify-request-class'; // contains the site base path, eg: basePath=/mysite
|
|
118
118
|
export const ROUTE_CORE_HEADER = 'x-sfdc-route-core'; // helps route requests to Core efficiently, value: true
|
package/build/es/html-meta.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { NormalizedLwrGlobalConfig, RenderedViewMetadata } from '@lwrjs/types';
|
|
1
|
+
import type { HtmlMetadata, NormalizedLwrGlobalConfig, RenderedViewMetadata } from '@lwrjs/types';
|
|
2
2
|
export declare function isRelative(url: string): boolean;
|
|
3
3
|
export declare function isSelfUrl(url: string): boolean;
|
|
4
4
|
/**
|
|
5
5
|
* Pull the custom elements and img tags out of an HTML string, to use as metadata
|
|
6
6
|
* @param htmlSource - An HTML string to parse
|
|
7
7
|
*/
|
|
8
|
-
export declare function extractMetadataFromHtml(htmlSource: string, viewMetadata: RenderedViewMetadata, appConfig: NormalizedLwrGlobalConfig):
|
|
8
|
+
export declare function extractMetadataFromHtml(htmlSource: string, viewMetadata: RenderedViewMetadata, appConfig: NormalizedLwrGlobalConfig): HtmlMetadata;
|
|
9
9
|
export declare const HYDRATE_DIRECTIVE = "lwr:hydrate";
|
|
10
10
|
export declare const HYDRATE_LOAD_VALUE = "load";
|
|
11
11
|
export declare const HYDRATE_CLIENT_VALUE = "client-only";
|
package/build/es/html-meta.js
CHANGED
|
@@ -165,7 +165,6 @@ export function extractMetadataFromHtml(htmlSource, viewMetadata, appConfig) {
|
|
|
165
165
|
},
|
|
166
166
|
});
|
|
167
167
|
return {
|
|
168
|
-
...viewMetadata,
|
|
169
168
|
customElements: customElements.filter((ce) => !nestedIslands || hasHydrationDirective(ce.props)),
|
|
170
169
|
assetReferences,
|
|
171
170
|
};
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.17.2-alpha.
|
|
7
|
+
"version": "0.17.2-alpha.23",
|
|
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.17.2-alpha.
|
|
40
|
+
"@lwrjs/diagnostics": "0.17.2-alpha.23",
|
|
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.17.2-alpha.
|
|
53
|
+
"@lwrjs/types": "0.17.2-alpha.23",
|
|
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": "597d50bfb34412d9676c611b5aea506aed837eb9"
|
|
62
62
|
}
|