@smals-belgium-shared/vidis-diarynote 4.2.1-snapshot.4 → 4.2.1-snapshot.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/CHANGELOG.md CHANGED
@@ -275,6 +275,8 @@
275
275
 
276
276
  ## __RELEASE_VERSION__ (__RELEASE_DATE__)
277
277
 
278
+ * Bugfix : fix Cannot read properties of null (reading 'status') in the error reporting component
279
+
278
280
  ### vidis-prescription-list
279
281
  * Bugfix : secure prescription data
280
282
 
package/diarynote.js CHANGED
@@ -4979,9 +4979,9 @@ function hQ(e, t, n) {
4979
4979
  return { code: i, message: n ?? "An unexpected error occurred", group: a, traceId: t };
4980
4980
  }
4981
4981
  function pQ(e) {
4982
- var a, r, s, l;
4983
- let t = ((a = e.error) == null ? void 0 : a.code) ?? void 0, n = ((r = e.error) == null ? void 0 : r.message) ?? e.message, i = ((s = e.error) == null ? void 0 : s.traceId) ?? ((l = e.headers) == null ? void 0 : l.get("trace-id"));
4984
- return hQ(t, i, n);
4982
+ var r, s, l, c, d;
4983
+ let t = e ?? {}, n = ((r = t.error) == null ? void 0 : r.code) ?? void 0, i = ((s = t.error) == null ? void 0 : s.message) ?? t.message, a = ((l = t.error) == null ? void 0 : l.traceId) ?? ((d = (c = t.headers) == null ? void 0 : c.get) == null ? void 0 : d.call(c, "trace-id")) ?? void 0;
4984
+ return hQ(n, a, i);
4985
4985
  }
4986
4986
  var Mn = { DEV: "dev", INT: "int", ACC: "acc", PROD: "prod", DEMO: "demo" }, g0 = { OFFLINE: "offline-authenticated" }, v0 = "refresh", mQ = (e) => e, fQ = (e, t, n = ["medicaldatamanagement"]) => ({ specVersion: { major: 5, minor: 0, patch: 8 }, family: mQ(e), components: t, permissionsForMandateAccess: n });
4987
4987
  function Jp(e, t) {
@@ -27272,7 +27272,7 @@ var abe = (() => {
27272
27272
  reportVidisError(i) {
27273
27273
  let a = { backendTraceId: "", errorMessage: i.message, pageUrl: window.location.href, timestamp: this.formatDateWithZone() };
27274
27274
  this.errorServiceSelector.getInstance().reportError(a).subscribe({ next: (r) => {
27275
- r.status === "ok" ? this.snackbarService.showSuccess("commons.errors.report-message-confirm-toast") : this.snackbarService.showError("commons.errors..general");
27275
+ (r == null ? void 0 : r.status) === "ok" ? this.snackbarService.showSuccess("commons.errors.report-message-confirm-toast") : this.snackbarService.showError("commons.errors..general");
27276
27276
  }, error: () => {
27277
27277
  this.snackbarService.showError("commons.errors.general");
27278
27278
  } });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smals-belgium-shared/vidis-diarynote",
3
- "version": "4.2.1-snapshot.4",
3
+ "version": "4.2.1-snapshot.6",
4
4
  "description": "Diary notes web component",
5
5
  "main": "diarynote.js",
6
6
  "types": "types/main.d.ts",