@formant/data-sdk 1.45.0 → 1.47.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.
package/dist/data-sdk.es6.js
CHANGED
|
@@ -32435,14 +32435,15 @@ class TelemetryUniverseData extends BasicUniverseDataConnector {
|
|
|
32435
32435
|
const f = B[0].points;
|
|
32436
32436
|
if (f.length > 0) {
|
|
32437
32437
|
const p = f[f.length - 1];
|
|
32438
|
-
if (g)
|
|
32438
|
+
if (g)
|
|
32439
|
+
n(f);
|
|
32440
|
+
else {
|
|
32439
32441
|
let U = p[0], y = p[1];
|
|
32440
32442
|
f.forEach((w) => {
|
|
32441
32443
|
const D = w[0], m = w[1];
|
|
32442
32444
|
Math.abs(D - u.getTime()) < Math.abs(U - u.getTime()) && (U = D, y = m);
|
|
32443
32445
|
}), n([[U, y]]);
|
|
32444
|
-
}
|
|
32445
|
-
n(f);
|
|
32446
|
+
}
|
|
32446
32447
|
} else
|
|
32447
32448
|
n(void 0);
|
|
32448
32449
|
} else
|
|
@@ -32587,9 +32588,9 @@ class TelemetryUniverseData extends BasicUniverseDataConnector {
|
|
|
32587
32588
|
return;
|
|
32588
32589
|
}
|
|
32589
32590
|
let u = l[l.length - 1][1];
|
|
32590
|
-
u.startsWith("http")
|
|
32591
|
-
u = JSON.stringify(c.data), o(JSON.parse(u));
|
|
32592
|
-
});
|
|
32591
|
+
u.startsWith("http") ? (s.postMessage({ url: u }), s.onmessage = (c) => {
|
|
32592
|
+
u = JSON.stringify(c.data.response), o(JSON.parse(u));
|
|
32593
|
+
}) : o(JSON.parse(u));
|
|
32593
32594
|
}
|
|
32594
32595
|
);
|
|
32595
32596
|
return () => {
|