@lark-apaas/observable-web 1.0.1-alpha.6 → 1.0.1-alpha.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.
- package/dist/index.js +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -794,7 +794,7 @@ var trace = TraceAPI.getInstance();
|
|
|
794
794
|
|
|
795
795
|
// package.json
|
|
796
796
|
var package_default = {
|
|
797
|
-
version: "1.0.1-alpha.
|
|
797
|
+
version: "1.0.1-alpha.7"};
|
|
798
798
|
|
|
799
799
|
// src/const.ts
|
|
800
800
|
var defaultResourceAttr = {
|
|
@@ -1425,8 +1425,8 @@ var _WebObservableSdk = class _WebObservableSdk {
|
|
|
1425
1425
|
const response = yield fetch(this.config.collectorUrl.time);
|
|
1426
1426
|
const end = Date.now();
|
|
1427
1427
|
const rtt = end - start;
|
|
1428
|
-
const
|
|
1429
|
-
const serverTimeNs = BigInt(
|
|
1428
|
+
const serverTimeRes = yield response.json();
|
|
1429
|
+
const serverTimeNs = BigInt(serverTimeRes.data.timestampNsStr);
|
|
1430
1430
|
if (serverTimeNs) {
|
|
1431
1431
|
const clientTimeMs = start + rtt / 2;
|
|
1432
1432
|
const clientTimeNs = BigInt(Math.round(clientTimeMs)) * BigInt(1e6);
|