@eka-care/ekascribe-ts-sdk 2.0.36 → 2.0.37

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 +10 -7
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -54344,7 +54344,7 @@ class SystemCompatibilityManager {
54344
54344
  return this.createTestResult(
54345
54345
  s,
54346
54346
  COMPATIBILITY_TEST_STATUS.SUCCESS,
54347
- "Internet connection is active",
54347
+ "Internet connection is working properly.",
54348
54348
  { isOnline: !0, pingTime: c }
54349
54349
  );
54350
54350
  } catch (c) {
@@ -54382,7 +54382,7 @@ class SystemCompatibilityManager {
54382
54382
  }) : this.createTestResult(
54383
54383
  a,
54384
54384
  COMPATIBILITY_TEST_STATUS.SUCCESS,
54385
- "System information collected successfully",
54385
+ "Your browser and device meet the required specifications.",
54386
54386
  { browser: s, version: n, ram: r, timezone: c, systemTime: m }
54387
54387
  );
54388
54388
  } catch (s) {
@@ -54400,12 +54400,15 @@ class SystemCompatibilityManager {
54400
54400
  */
54401
54401
  async validateTimezone() {
54402
54402
  try {
54403
- const a = Intl.DateTimeFormat().resolvedOptions().timeZone, r = (await (await fetchWrapper(
54403
+ const a = Intl.DateTimeFormat().resolvedOptions().timeZone, s = await fetchWrapper(
54404
54404
  `${GET_EKA_HOST()}/voice/sys/time?timezone=${a}`,
54405
54405
  {
54406
54406
  method: "GET"
54407
54407
  }
54408
- )).json()).time, c = new Date(r), u = /* @__PURE__ */ new Date(), m = Math.abs(c.getTime() - u.getTime()), y = 600 * 1e3;
54408
+ );
54409
+ if (!s.ok)
54410
+ return "Failed to validate timezone against system time";
54411
+ const r = (await s.json()).time, c = new Date(r), u = /* @__PURE__ */ new Date(), m = Math.abs(c.getTime() - u.getTime()), y = 600 * 1e3;
54409
54412
  return m > y ? `System time and server time differ by ${Math.round(m / 6e4)} minutes. Maximum allowed difference is 10 minutes.` : null;
54410
54413
  } catch {
54411
54414
  return "Failed to validate timezone against system time";
@@ -54452,7 +54455,7 @@ class SystemCompatibilityManager {
54452
54455
  return s.getTracks().forEach((r) => r.stop()), this.createTestResult(
54453
54456
  a,
54454
54457
  COMPATIBILITY_TEST_STATUS.SUCCESS,
54455
- "Microphone permission granted",
54458
+ "Microphone access is enabled and working.",
54456
54459
  { permission: "granted", deviceId: n }
54457
54460
  );
54458
54461
  } catch (s) {
@@ -54552,7 +54555,7 @@ class SystemCompatibilityManager {
54552
54555
  this.createTestResult(
54553
54556
  s,
54554
54557
  COMPATIBILITY_TEST_STATUS.SUCCESS,
54555
- "SharedWorker is supported and functional",
54558
+ "Your browser supports smooth background performance.",
54556
54559
  { supported: !0, workerCreated: !0 }
54557
54560
  )
54558
54561
  ));
@@ -54578,7 +54581,7 @@ class SystemCompatibilityManager {
54578
54581
  return n.pingSuccess && this.awsConfigured && n.uploadSuccess ? this.createTestResult(
54579
54582
  s,
54580
54583
  COMPATIBILITY_TEST_STATUS.SUCCESS,
54581
- "Network and API access verified, S3 upload successful",
54584
+ "Secure network access is confirmed.",
54582
54585
  c
54583
54586
  ) : n.pingSuccess && this.awsConfigured ? this.createTestResult(
54584
54587
  s,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eka-care/ekascribe-ts-sdk",
3
- "version": "2.0.36",
3
+ "version": "2.0.37",
4
4
  "description": "EkaScribe TypeScript SDK - Modern ES2020 build",
5
5
  "main": "dist/index.mjs",
6
6
  "module": "dist/index.mjs",