med-scribe-alliance-ts-sdk 2.0.6 → 2.0.7

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.
Files changed (2) hide show
  1. package/dist/index.mjs +2 -1
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -1839,10 +1839,11 @@ var re = class {
1839
1839
  return this.wrapResult(() => this.sessionManager.processTemplate(n, e, t));
1840
1840
  }
1841
1841
  async cancelSession(e) {
1842
+ let t = e ?? this.recordingManager.getActiveSession()?.session_id ?? this.sessionManager.getCurrentSession()?.session_id;
1842
1843
  return this.recordingManager.isRecording() && await this.recordingManager.forceStop(), this.recordingManager.reset(), this.sessionManager.clearCurrentSession(), this.updateSession({
1843
1844
  user_status: "cancelled",
1844
1845
  processing_status: "cancelled"
1845
- }, e);
1846
+ }, t);
1846
1847
  }
1847
1848
  getDiscoveryConfig() {
1848
1849
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "med-scribe-alliance-ts-sdk",
3
- "version": "2.0.6",
3
+ "version": "2.0.7",
4
4
  "description": "TypeScript SDK for the MedScribe Alliance Protocol",
5
5
  "main": "dist/index.mjs",
6
6
  "module": "dist/index.mjs",