@dxos/client-services 0.3.11-main.df1e30a → 0.3.11-main.e19f39d
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/lib/browser/{chunk-NA7EQA7E.mjs → chunk-LUXAN22G.mjs} +15 -9
- package/dist/lib/browser/chunk-LUXAN22G.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +1 -1
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/packlets/testing/index.mjs +1 -1
- package/dist/lib/node/{chunk-LTQYCVFH.cjs → chunk-45NL4DNZ.cjs} +67 -61
- package/dist/lib/node/chunk-45NL4DNZ.cjs.map +7 -0
- package/dist/lib/node/index.cjs +37 -37
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/packlets/testing/index.cjs +8 -8
- package/dist/types/src/packlets/network/network-service.d.ts.map +1 -1
- package/dist/types/src/packlets/services/diagnostics.d.ts +1 -2
- package/dist/types/src/packlets/services/diagnostics.d.ts.map +1 -1
- package/dist/types/src/packlets/services/platform.d.ts +1 -14
- package/dist/types/src/packlets/services/platform.d.ts.map +1 -1
- package/dist/types/src/packlets/system/system-service.d.ts +2 -1
- package/dist/types/src/packlets/system/system-service.d.ts.map +1 -1
- package/dist/types/src/version.d.ts +1 -1
- package/package.json +35 -35
- package/src/packlets/network/network-service.ts +1 -0
- package/src/packlets/services/diagnostics.ts +2 -1
- package/src/packlets/services/platform.ts +7 -19
- package/src/packlets/system/system-service.ts +6 -0
- package/src/version.ts +1 -1
- package/dist/lib/browser/chunk-NA7EQA7E.mjs.map +0 -7
- package/dist/lib/node/chunk-LTQYCVFH.cjs.map +0 -7
|
@@ -2535,27 +2535,29 @@ import { STORAGE_VERSION } from "@dxos/protocols";
|
|
|
2535
2535
|
import { SpaceMember } from "@dxos/protocols/proto/dxos/client/services";
|
|
2536
2536
|
|
|
2537
2537
|
// packages/sdk/client-services/src/packlets/services/platform.ts
|
|
2538
|
+
import { Platform } from "@dxos/protocols/proto/dxos/client/services";
|
|
2538
2539
|
var getPlatform = () => {
|
|
2539
2540
|
if (process.browser) {
|
|
2540
2541
|
if (typeof window !== "undefined") {
|
|
2541
2542
|
const { userAgent } = window.navigator;
|
|
2542
2543
|
return {
|
|
2543
|
-
type:
|
|
2544
|
+
type: Platform.PLATFORM_TYPE.BROWSER,
|
|
2544
2545
|
userAgent,
|
|
2545
2546
|
uptime: Math.floor((Date.now() - window.performance.timeOrigin) / 1e3)
|
|
2546
2547
|
};
|
|
2547
2548
|
} else {
|
|
2548
2549
|
return {
|
|
2549
|
-
type:
|
|
2550
|
+
type: Platform.PLATFORM_TYPE.SHARED_WORKER,
|
|
2550
2551
|
uptime: Math.floor((Date.now() - performance.timeOrigin) / 1e3)
|
|
2551
2552
|
};
|
|
2552
2553
|
}
|
|
2553
2554
|
} else {
|
|
2554
2555
|
const { platform: platform2, version, arch } = process;
|
|
2555
2556
|
return {
|
|
2556
|
-
type:
|
|
2557
|
-
platform:
|
|
2558
|
-
|
|
2557
|
+
type: Platform.PLATFORM_TYPE.NODE,
|
|
2558
|
+
platform: platform2,
|
|
2559
|
+
arch,
|
|
2560
|
+
runtime: version,
|
|
2559
2561
|
uptime: Math.floor(process.uptime()),
|
|
2560
2562
|
memory: process.memoryUsage()
|
|
2561
2563
|
};
|
|
@@ -2563,7 +2565,7 @@ var getPlatform = () => {
|
|
|
2563
2565
|
};
|
|
2564
2566
|
|
|
2565
2567
|
// packages/sdk/client-services/src/version.ts
|
|
2566
|
-
var DXOS_VERSION = "0.3.11-main.
|
|
2568
|
+
var DXOS_VERSION = "0.3.11-main.e19f39d";
|
|
2567
2569
|
|
|
2568
2570
|
// packages/sdk/client-services/src/packlets/services/diagnostics.ts
|
|
2569
2571
|
var __dxlog_file10 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/services/diagnostics.ts";
|
|
@@ -2582,7 +2584,7 @@ var createDiagnostics = async (clientServices, serviceContext, config) => {
|
|
|
2582
2584
|
{
|
|
2583
2585
|
invariant9(clientServices.LoggingService, "SystemService is not available.", {
|
|
2584
2586
|
F: __dxlog_file10,
|
|
2585
|
-
L:
|
|
2587
|
+
L: 94,
|
|
2586
2588
|
S: void 0,
|
|
2587
2589
|
A: [
|
|
2588
2590
|
"clientServices.LoggingService",
|
|
@@ -2648,7 +2650,7 @@ var getProperties = (space) => {
|
|
|
2648
2650
|
} catch (err) {
|
|
2649
2651
|
log8.warn(err.message, void 0, {
|
|
2650
2652
|
F: __dxlog_file10,
|
|
2651
|
-
L:
|
|
2653
|
+
L: 179,
|
|
2652
2654
|
S: void 0,
|
|
2653
2655
|
C: (f, a) => f(...a)
|
|
2654
2656
|
});
|
|
@@ -4753,6 +4755,7 @@ var NetworkServiceImpl = class {
|
|
|
4753
4755
|
const update = () => {
|
|
4754
4756
|
next({
|
|
4755
4757
|
swarm: this.networkManager.connectionState,
|
|
4758
|
+
connectionInfo: this.networkManager.connectionLog?.swarms,
|
|
4756
4759
|
signaling: this.signalManager.getStatus().map(({ host, state }) => ({
|
|
4757
4760
|
server: host,
|
|
4758
4761
|
state
|
|
@@ -4802,6 +4805,9 @@ var SystemServiceImpl = class {
|
|
|
4802
4805
|
})))
|
|
4803
4806
|
};
|
|
4804
4807
|
}
|
|
4808
|
+
async getPlatform() {
|
|
4809
|
+
return getPlatform();
|
|
4810
|
+
}
|
|
4805
4811
|
async updateStatus({ status }) {
|
|
4806
4812
|
await this._onUpdateStatus(status);
|
|
4807
4813
|
}
|
|
@@ -5263,4 +5269,4 @@ export {
|
|
|
5263
5269
|
createDefaultModelFactory,
|
|
5264
5270
|
ClientServicesHost
|
|
5265
5271
|
};
|
|
5266
|
-
//# sourceMappingURL=chunk-
|
|
5272
|
+
//# sourceMappingURL=chunk-LUXAN22G.mjs.map
|