med-scribe-alliance-ts-sdk 2.0.3 → 2.0.4

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 +4 -1
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -1825,7 +1825,10 @@ var re = class {
1825
1825
  return this.wrapResult(() => this.sessionManager.processTemplate(n, e, t));
1826
1826
  }
1827
1827
  async cancelSession(e) {
1828
- return this.updateSession({
1828
+ if (this.recordingManager.isRecording()) try {
1829
+ await this.recordingManager.stop();
1830
+ } catch {}
1831
+ return this.recordingManager.reset(), this.sessionManager.clearCurrentSession(), this.updateSession({
1829
1832
  user_status: "cancelled",
1830
1833
  processing_status: "cancelled"
1831
1834
  }, e);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "med-scribe-alliance-ts-sdk",
3
- "version": "2.0.3",
3
+ "version": "2.0.4",
4
4
  "description": "TypeScript SDK for the MedScribe Alliance Protocol",
5
5
  "main": "dist/index.mjs",
6
6
  "module": "dist/index.mjs",