@dxos/client-services 0.1.56-main.1b4b163 → 0.1.56-main.22b76d7
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-TXSXNZYI.mjs → chunk-SQ7PFUJD.mjs} +27 -32
- package/dist/lib/browser/chunk-SQ7PFUJD.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/index.cjs +26 -24
- package/dist/lib/node/index.cjs.map +3 -3
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/packlets/testing/index.cjs +26 -24
- package/dist/lib/node/packlets/testing/index.cjs.map +3 -3
- package/dist/types/src/packlets/services/platform.d.ts +3 -2
- package/dist/types/src/packlets/services/platform.d.ts.map +1 -1
- package/dist/types/src/packlets/services/service-host.d.ts.map +1 -1
- package/dist/types/src/version.d.ts +1 -1
- package/package.json +33 -33
- package/src/packlets/services/platform.ts +23 -21
- package/src/packlets/services/service-host.ts +0 -3
- package/src/version.ts +1 -1
- package/dist/lib/browser/chunk-TXSXNZYI.mjs.map +0 -7
|
@@ -1,11 +1,4 @@
|
|
|
1
1
|
import "@dxos/node-std/globals";
|
|
2
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
3
|
-
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
4
|
-
}) : x)(function(x) {
|
|
5
|
-
if (typeof require !== "undefined")
|
|
6
|
-
return require.apply(this, arguments);
|
|
7
|
-
throw new Error('Dynamic require of "' + x + '" is not supported');
|
|
8
|
-
});
|
|
9
2
|
|
|
10
3
|
// packages/sdk/client-services/src/packlets/devtools/feeds.ts
|
|
11
4
|
import { EventSubscriptions } from "@dxos/async";
|
|
@@ -2402,31 +2395,33 @@ import { STORAGE_VERSION } from "@dxos/protocols";
|
|
|
2402
2395
|
import { SpaceMember } from "@dxos/protocols/proto/dxos/client/services";
|
|
2403
2396
|
|
|
2404
2397
|
// packages/sdk/client-services/src/version.ts
|
|
2405
|
-
var DXOS_VERSION = "0.1.56-main.
|
|
2398
|
+
var DXOS_VERSION = "0.1.56-main.22b76d7";
|
|
2406
2399
|
|
|
2407
2400
|
// packages/sdk/client-services/src/packlets/services/platform.ts
|
|
2408
2401
|
var getPlatform = () => {
|
|
2409
|
-
if (
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2402
|
+
if (process.browser) {
|
|
2403
|
+
if (typeof window !== "undefined") {
|
|
2404
|
+
const { userAgent } = window.navigator;
|
|
2405
|
+
return {
|
|
2406
|
+
type: "browser",
|
|
2407
|
+
userAgent,
|
|
2408
|
+
uptime: Math.floor((Date.now() - window.performance.timeOrigin) / 1e3)
|
|
2409
|
+
};
|
|
2410
|
+
} else {
|
|
2411
|
+
return {
|
|
2412
|
+
type: "shared-worker",
|
|
2413
|
+
uptime: Math.floor((Date.now() - performance.timeOrigin) / 1e3)
|
|
2414
|
+
};
|
|
2415
|
+
}
|
|
2416
|
+
} else {
|
|
2417
|
+
const { platform, version, arch } = process;
|
|
2418
2418
|
return {
|
|
2419
2419
|
type: "node",
|
|
2420
|
-
platform: `${platform
|
|
2420
|
+
platform: `${platform} ${version} ${arch}`,
|
|
2421
2421
|
runtime: process.version,
|
|
2422
2422
|
uptime: Math.floor(process.uptime()),
|
|
2423
2423
|
memory: process.memoryUsage()
|
|
2424
2424
|
};
|
|
2425
|
-
} catch (err) {
|
|
2426
|
-
return {
|
|
2427
|
-
type: "node",
|
|
2428
|
-
platform: ""
|
|
2429
|
-
};
|
|
2430
2425
|
}
|
|
2431
2426
|
};
|
|
2432
2427
|
|
|
@@ -4686,7 +4681,7 @@ var ClientServicesHost = class {
|
|
|
4686
4681
|
deviceKey
|
|
4687
4682
|
}, {
|
|
4688
4683
|
F: __dxlog_file17,
|
|
4689
|
-
L:
|
|
4684
|
+
L: 269,
|
|
4690
4685
|
S: this,
|
|
4691
4686
|
C: (f, a) => f(...a)
|
|
4692
4687
|
});
|
|
@@ -4694,7 +4689,7 @@ var ClientServicesHost = class {
|
|
|
4694
4689
|
id: traceId
|
|
4695
4690
|
}), {
|
|
4696
4691
|
F: __dxlog_file17,
|
|
4697
|
-
L:
|
|
4692
|
+
L: 270,
|
|
4698
4693
|
S: this,
|
|
4699
4694
|
C: (f, a) => f(...a)
|
|
4700
4695
|
});
|
|
@@ -4709,7 +4704,7 @@ var ClientServicesHost = class {
|
|
|
4709
4704
|
deviceKey
|
|
4710
4705
|
}, {
|
|
4711
4706
|
F: __dxlog_file17,
|
|
4712
|
-
L:
|
|
4707
|
+
L: 280,
|
|
4713
4708
|
S: this,
|
|
4714
4709
|
C: (f, a) => f(...a)
|
|
4715
4710
|
});
|
|
@@ -4724,7 +4719,7 @@ var ClientServicesHost = class {
|
|
|
4724
4719
|
deviceKey
|
|
4725
4720
|
}, {
|
|
4726
4721
|
F: __dxlog_file17,
|
|
4727
|
-
L:
|
|
4722
|
+
L: 286,
|
|
4728
4723
|
S: this,
|
|
4729
4724
|
C: (f, a) => f(...a)
|
|
4730
4725
|
});
|
|
@@ -4736,13 +4731,13 @@ var ClientServicesHost = class {
|
|
|
4736
4731
|
id: traceId
|
|
4737
4732
|
}), {
|
|
4738
4733
|
F: __dxlog_file17,
|
|
4739
|
-
L:
|
|
4734
|
+
L: 291,
|
|
4740
4735
|
S: this,
|
|
4741
4736
|
C: (f, a) => f(...a)
|
|
4742
4737
|
});
|
|
4743
4738
|
log16("resetting...", void 0, {
|
|
4744
4739
|
F: __dxlog_file17,
|
|
4745
|
-
L:
|
|
4740
|
+
L: 293,
|
|
4746
4741
|
S: this,
|
|
4747
4742
|
C: (f, a) => f(...a)
|
|
4748
4743
|
});
|
|
@@ -4750,7 +4745,7 @@ var ClientServicesHost = class {
|
|
|
4750
4745
|
await this._storage.reset();
|
|
4751
4746
|
log16("reset", void 0, {
|
|
4752
4747
|
F: __dxlog_file17,
|
|
4753
|
-
L:
|
|
4748
|
+
L: 296,
|
|
4754
4749
|
S: this,
|
|
4755
4750
|
C: (f, a) => f(...a)
|
|
4756
4751
|
});
|
|
@@ -4758,7 +4753,7 @@ var ClientServicesHost = class {
|
|
|
4758
4753
|
id: traceId
|
|
4759
4754
|
}), {
|
|
4760
4755
|
F: __dxlog_file17,
|
|
4761
|
-
L:
|
|
4756
|
+
L: 297,
|
|
4762
4757
|
S: this,
|
|
4763
4758
|
C: (f, a) => f(...a)
|
|
4764
4759
|
});
|
|
@@ -4805,4 +4800,4 @@ export {
|
|
|
4805
4800
|
createDefaultModelFactory,
|
|
4806
4801
|
ClientServicesHost
|
|
4807
4802
|
};
|
|
4808
|
-
//# sourceMappingURL=chunk-
|
|
4803
|
+
//# sourceMappingURL=chunk-SQ7PFUJD.mjs.map
|