nervoscan-js-sdk 1.1.5 → 1.2.0
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.
|
@@ -13326,9 +13326,6 @@ const qr = (t) => typeof import.meta < "u" && aa && t in aa ? aa[t] || "" : type
|
|
|
13326
13326
|
"cheeksNose",
|
|
13327
13327
|
"face"
|
|
13328
13328
|
];
|
|
13329
|
-
function Kw(t) {
|
|
13330
|
-
return t == null || Number.isNaN(t) ? "Unknown" : t >= 0.8 ? "Excellent" : t >= 0.65 ? "Good" : t >= 0.45 ? "Fair" : t >= 0.25 ? "Poor" : "Reject";
|
|
13331
|
-
}
|
|
13332
13329
|
function a4() {
|
|
13333
13330
|
return { r: [], g: [], b: [], timestamps: [] };
|
|
13334
13331
|
}
|
|
@@ -15634,22 +15631,22 @@ Z.getAdapter = Ag.getAdapter;
|
|
|
15634
15631
|
Z.HttpStatusCode = tc;
|
|
15635
15632
|
Z.default = Z;
|
|
15636
15633
|
const {
|
|
15637
|
-
Axios:
|
|
15638
|
-
AxiosError:
|
|
15639
|
-
CanceledError:
|
|
15640
|
-
isCancel:
|
|
15641
|
-
CancelToken:
|
|
15642
|
-
VERSION:
|
|
15643
|
-
all:
|
|
15644
|
-
Cancel:
|
|
15645
|
-
isAxiosError:
|
|
15646
|
-
spread:
|
|
15647
|
-
toFormData:
|
|
15648
|
-
AxiosHeaders:
|
|
15649
|
-
HttpStatusCode:
|
|
15650
|
-
formToJSON:
|
|
15651
|
-
getAdapter:
|
|
15652
|
-
mergeConfig:
|
|
15634
|
+
Axios: Xw,
|
|
15635
|
+
AxiosError: Jw,
|
|
15636
|
+
CanceledError: Qw,
|
|
15637
|
+
isCancel: Zw,
|
|
15638
|
+
CancelToken: eb,
|
|
15639
|
+
VERSION: tb,
|
|
15640
|
+
all: nb,
|
|
15641
|
+
Cancel: sb,
|
|
15642
|
+
isAxiosError: rb,
|
|
15643
|
+
spread: ib,
|
|
15644
|
+
toFormData: ob,
|
|
15645
|
+
AxiosHeaders: ab,
|
|
15646
|
+
HttpStatusCode: cb,
|
|
15647
|
+
formToJSON: lb,
|
|
15648
|
+
getAdapter: hb,
|
|
15649
|
+
mergeConfig: ub
|
|
15653
15650
|
} = Z, Mt = /* @__PURE__ */ Object.create(null);
|
|
15654
15651
|
Mt.open = "0";
|
|
15655
15652
|
Mt.close = "1";
|
|
@@ -18441,10 +18438,8 @@ const Sn = class Sn {
|
|
|
18441
18438
|
/**
|
|
18442
18439
|
* Sets a callback function to handle final averaged results when they arrive.
|
|
18443
18440
|
*
|
|
18444
|
-
* The result payload follows the {@link ScanResult} shape
|
|
18445
|
-
*
|
|
18446
|
-
* (`HR_CONFIDENCE`, `SBP_CONFIDENCE`, `DBP_CONFIDENCE`) plus their
|
|
18447
|
-
* qualitative levels (`HR_CONF_LEVEL`, …). Older backends omit these fields.
|
|
18441
|
+
* The result payload follows the {@link ScanResult} shape. Older backends
|
|
18442
|
+
* may omit individual metric fields on partial scans.
|
|
18448
18443
|
*
|
|
18449
18444
|
* @param callback - Function called with the final averaged scan result.
|
|
18450
18445
|
*/
|
|
@@ -18453,12 +18448,7 @@ const Sn = class Sn {
|
|
|
18453
18448
|
}
|
|
18454
18449
|
/**
|
|
18455
18450
|
* Sets a callback function to handle per-window intermediate results during
|
|
18456
|
-
* a streaming scan. Useful for
|
|
18457
|
-
* feedback to the user while the 10-second window is being processed.
|
|
18458
|
-
*
|
|
18459
|
-
* Each invocation receives a single window's vitals, which on supported
|
|
18460
|
-
* backends include `HR_CONFIDENCE`, `SBP_CONFIDENCE`, `DBP_CONFIDENCE` and
|
|
18461
|
-
* their level labels.
|
|
18451
|
+
* a streaming scan. Useful for live progress while the scan window runs.
|
|
18462
18452
|
*/
|
|
18463
18453
|
setOnWindowResults(e) {
|
|
18464
18454
|
this.onWindowResults = e;
|
|
@@ -18635,6 +18625,5 @@ export {
|
|
|
18635
18625
|
m_ as UnhandledError,
|
|
18636
18626
|
u_ as UnhandledScanError,
|
|
18637
18627
|
E_ as VideoError,
|
|
18638
|
-
Yg as VideoTypeError
|
|
18639
|
-
Kw as scoreToConfidenceLevel
|
|
18628
|
+
Yg as VideoTypeError
|
|
18640
18629
|
};
|