@lwrjs/shared-utils 0.10.10 → 0.10.12

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.
@@ -73,7 +73,7 @@ async function extractMetadataFromHtml(htmlSource) {
73
73
  attrs,
74
74
  sourceCodeLocation
75
75
  }) => {
76
- if (tagName.includes("-") && !openElements.has(tagName)) {
76
+ if (tagName.includes("-") && !openElements.has(tagName) && tagName !== "x-oasis-script") {
77
77
  const {startOffset, endOffset} = sourceCodeLocation;
78
78
  const ceRef = {
79
79
  tagName,
@@ -43,7 +43,9 @@ export async function extractMetadataFromHtml(htmlSource) {
43
43
  parser.on('startTag', ({ tagName, attrs, // attributes are passed into SSR
44
44
  sourceCodeLocation, }) => {
45
45
  // custom elements
46
- if (tagName.includes('-') && !openElements.has(tagName)) {
46
+ // do not include third party integration scripts: <x-oasis-script>
47
+ // see: https://developer.salesforce.com/docs/atlas.en-us.exp_cloud_lwr.meta/exp_cloud_lwr/advanced_privileged_script.htm
48
+ if (tagName.includes('-') && !openElements.has(tagName) && tagName !== 'x-oasis-script') {
47
49
  const { startOffset, endOffset } = sourceCodeLocation;
48
50
  const ceRef = {
49
51
  tagName,
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.10.10",
7
+ "version": "0.10.12",
8
8
  "homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
9
9
  "repository": {
10
10
  "type": "git",
@@ -61,13 +61,13 @@
61
61
  "rollup": "^2.78.0"
62
62
  },
63
63
  "devDependencies": {
64
- "@lwrjs/diagnostics": "0.10.10",
65
- "@lwrjs/types": "0.10.10",
64
+ "@lwrjs/diagnostics": "0.10.12",
65
+ "@lwrjs/types": "0.10.12",
66
66
  "@types/mime-types": "2.1.1",
67
67
  "@types/path-to-regexp": "^1.7.0"
68
68
  },
69
69
  "engines": {
70
70
  "node": ">=16.0.0"
71
71
  },
72
- "gitHead": "20db610eebbe5e5c4ee0763a77a428589151a086"
72
+ "gitHead": "d8e2e471803239473e3bc4c68a9bccf3485d57a3"
73
73
  }