@peopl-health/nexus 5.46.0-dev.7271 → 5.46.0-dev.7273

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.
@@ -60,6 +60,8 @@ const activeCaseKeyOf = (patientCode, patientCaseRecordId) => `${patientCode}:${
60
60
 
61
61
  const redactedError = (error) => redactDirectIdentifiers(String(error?.message || ''));
62
62
 
63
+ const redactedStack = (error) => redactDirectIdentifiers(String(error?.stack || ''));
64
+
63
65
  const sendDidNotHappen = (error) => Boolean(error?.statusCode) || (Number.isInteger(error?.status) && error?.code != null);
64
66
 
65
67
  const audit = (review, updatedBy, requestId, changes) => logPatientChange({
@@ -121,6 +123,7 @@ async function syncCase(review, operator, requestId) {
121
123
  logger.error('[EscalationReview] Patient case mirror failed', {
122
124
  escalationReviewId: String(review._id),
123
125
  error: redactedError(error),
126
+ stack: redactedStack(error),
124
127
  });
125
128
  return { review, caseMirror: 'failed' };
126
129
  }
@@ -136,6 +139,7 @@ async function syncCase(review, operator, requestId) {
136
139
  logger.error('[EscalationReview] Could not record the applied case changes', {
137
140
  escalationReviewId: String(review._id),
138
141
  error: redactedError(error),
142
+ stack: redactedStack(error),
139
143
  });
140
144
  return { review, caseMirror: 'updated' };
141
145
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@peopl-health/nexus",
3
- "version": "5.46.0-dev.7271",
3
+ "version": "5.46.0-dev.7273",
4
4
  "description": "Core messaging and assistant library for WhatsApp communication platforms",
5
5
  "keywords": [
6
6
  "whatsapp",