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

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.
@@ -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";
@@ -4555,4 +4538,4 @@ export {
4555
4538
  ClientServicesHost,
4556
4539
  LocalClientServices
4557
4540
  };
4558
- //# sourceMappingURL=chunk-LGYQZ6UO.mjs.map
4541
+ //# sourceMappingURL=chunk-KN2NX2RP.mjs.map