@salesforcedevs/dw-components 1.3.304 → 1.3.309

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforcedevs/dw-components",
3
- "version": "1.3.304",
3
+ "version": "1.3.309",
4
4
  "description": "Lightning web components for https://developer.salesforce.com",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -26,5 +26,5 @@
26
26
  "@types/setimmediate": "^1.0.2",
27
27
  "setimmediate": "^1.0.5"
28
28
  },
29
- "gitHead": "00f26c1df5e3db652f423fdf880224e65ca6a4f6"
29
+ "gitHead": "7c8593290d3ce2df09137b939e9e58f64fe4f95b"
30
30
  }
@@ -430,6 +430,10 @@ export default class J2sCardSequence extends LightningElement {
430
430
  const res = await fetch(`${this.tbidApiBaseUrl}/userinfo`);
431
431
  if (res.ok) {
432
432
  const userInfo = await res.json();
433
+ if (userInfo.dsc_auth_error) {
434
+ // API breaks HTTP semantics to avoid logging 4xx errors (due to Lighthouse score)
435
+ throw new Error("Unauthorized");
436
+ }
433
437
  const emailOverride = await this.getDrmEmailOverride(
434
438
  userInfo?.user_id
435
439
  );