@dxos/client-services 0.1.48-next.83f55fd → 0.1.49-next.55d8a92

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.
@@ -23,7 +23,7 @@ var subscribeToFeeds = ({ feedStore }, { feedKeys }) => {
23
23
  feeds: Array.from(feedMap.values()).map((feed) => ({
24
24
  feedKey: feed.key,
25
25
  length: feed.properties.length,
26
- diskUsage: feed.core.byteLength
26
+ bytes: feed.core.byteLength
27
27
  }))
28
28
  });
29
29
  };
@@ -3262,7 +3262,8 @@ var DevicesServiceImpl = class {
3262
3262
  // packages/sdk/client-services/src/packlets/logging/logging-service.ts
3263
3263
  import { Event as Event8 } from "@dxos/async";
3264
3264
  import { Stream as Stream10 } from "@dxos/codec-protobuf";
3265
- import { log as log12, shouldLog } from "@dxos/log";
3265
+ import { log as log12, shouldLog, getContextFromEntry } from "@dxos/log";
3266
+ import { jsonify } from "@dxos/util";
3266
3267
  var LoggingServiceImpl = class {
3267
3268
  constructor() {
3268
3269
  this._logs = new Event8();
@@ -3282,12 +3283,18 @@ var LoggingServiceImpl = class {
3282
3283
  const filters = ((_a = request.filters) == null ? void 0 : _a.length) ? request.filters : void 0;
3283
3284
  return new Stream10(({ ctx, next }) => {
3284
3285
  const handler = (entry2) => {
3285
- var _a2;
3286
+ var _a2, _b, _c;
3286
3287
  if (((_a2 = entry2.meta) == null ? void 0 : _a2.file.includes("logging-service")) || entry2.context && Object.values(entry2.context).some((value) => typeof value === "string" && value.includes("LoggingService"))) {
3287
3288
  return;
3288
3289
  }
3289
3290
  if (shouldLog(entry2, filters)) {
3290
- next(jsonify(entry2));
3291
+ const record = {
3292
+ ...entry2,
3293
+ context: jsonify(getContextFromEntry(entry2))
3294
+ };
3295
+ (_b = record.meta) == null ? true : delete _b.bugcheck;
3296
+ (_c = record.meta) == null ? true : delete _c.scope;
3297
+ next(record);
3291
3298
  }
3292
3299
  };
3293
3300
  ctx.onDispose(() => {
@@ -3297,30 +3304,6 @@ var LoggingServiceImpl = class {
3297
3304
  });
3298
3305
  }
3299
3306
  };
3300
- var jsonify = (value, handles = /* @__PURE__ */ new WeakSet()) => {
3301
- if (typeof value === "function") {
3302
- return null;
3303
- } else if (typeof value === "object" && value !== null) {
3304
- if (handles.has(value)) {
3305
- return null;
3306
- }
3307
- handles.add(value);
3308
- if (Array.isArray(value)) {
3309
- return value.map((x) => jsonify(x, handles));
3310
- } else {
3311
- if (typeof value.toJSON === "function") {
3312
- return value.toJSON();
3313
- }
3314
- const res = {};
3315
- for (const key of Object.keys(value)) {
3316
- res[key] = jsonify(value[key], handles);
3317
- }
3318
- return res;
3319
- }
3320
- } else {
3321
- return value;
3322
- }
3323
- };
3324
3307
 
3325
3308
  // packages/sdk/client-services/src/packlets/network/network-service.ts
3326
3309
  import { Stream as Stream11 } from "@dxos/codec-protobuf";
@@ -4251,7 +4234,7 @@ var ClientServicesHost = class {
4251
4234
  id: traceId
4252
4235
  }), {
4253
4236
  file: "service-host.ts",
4254
- line: 186,
4237
+ line: 187,
4255
4238
  scope: this,
4256
4239
  callSite: (f, a) => f(...a)
4257
4240
  });
@@ -4264,7 +4247,7 @@ var ClientServicesHost = class {
4264
4247
  lockKey: (_a = this._resourceLock) == null ? void 0 : _a.lockKey
4265
4248
  }, {
4266
4249
  file: "service-host.ts",
4267
- line: 194,
4250
+ line: 195,
4268
4251
  scope: this,
4269
4252
  callSite: (f, a) => f(...a)
4270
4253
  });
@@ -4299,7 +4282,7 @@ var ClientServicesHost = class {
4299
4282
  deviceKey
4300
4283
  }, {
4301
4284
  file: "service-host.ts",
4302
- line: 249,
4285
+ line: 250,
4303
4286
  scope: this,
4304
4287
  callSite: (f, a) => f(...a)
4305
4288
  });
@@ -4307,7 +4290,7 @@ var ClientServicesHost = class {
4307
4290
  id: traceId
4308
4291
  }), {
4309
4292
  file: "service-host.ts",
4310
- line: 250,
4293
+ line: 251,
4311
4294
  scope: this,
4312
4295
  callSite: (f, a) => f(...a)
4313
4296
  });
@@ -4322,7 +4305,7 @@ var ClientServicesHost = class {
4322
4305
  deviceKey
4323
4306
  }, {
4324
4307
  file: "service-host.ts",
4325
- line: 259,
4308
+ line: 260,
4326
4309
  scope: this,
4327
4310
  callSite: (f, a) => f(...a)
4328
4311
  });
@@ -4337,7 +4320,7 @@ var ClientServicesHost = class {
4337
4320
  deviceKey
4338
4321
  }, {
4339
4322
  file: "service-host.ts",
4340
- line: 265,
4323
+ line: 266,
4341
4324
  scope: this,
4342
4325
  callSite: (f, a) => f(...a)
4343
4326
  });
@@ -4349,13 +4332,13 @@ var ClientServicesHost = class {
4349
4332
  id: traceId
4350
4333
  }), {
4351
4334
  file: "service-host.ts",
4352
- line: 270,
4335
+ line: 271,
4353
4336
  scope: this,
4354
4337
  callSite: (f, a) => f(...a)
4355
4338
  });
4356
4339
  log18("resetting...", {}, {
4357
4340
  file: "service-host.ts",
4358
- line: 272,
4341
+ line: 273,
4359
4342
  scope: this,
4360
4343
  callSite: (f, a) => f(...a)
4361
4344
  });
@@ -4363,7 +4346,7 @@ var ClientServicesHost = class {
4363
4346
  await this._storage.reset();
4364
4347
  log18("reset", {}, {
4365
4348
  file: "service-host.ts",
4366
- line: 275,
4349
+ line: 276,
4367
4350
  scope: this,
4368
4351
  callSite: (f, a) => f(...a)
4369
4352
  });
@@ -4371,7 +4354,7 @@ var ClientServicesHost = class {
4371
4354
  id: traceId
4372
4355
  }), {
4373
4356
  file: "service-host.ts",
4374
- line: 276,
4357
+ line: 277,
4375
4358
  scope: this,
4376
4359
  callSite: (f, a) => f(...a)
4377
4360
  });
@@ -4555,4 +4538,4 @@ export {
4555
4538
  ClientServicesHost,
4556
4539
  LocalClientServices
4557
4540
  };
4558
- //# sourceMappingURL=chunk-LGYQZ6UO.mjs.map
4541
+ //# sourceMappingURL=chunk-KMQOZOUZ.mjs.map