@dxos/client-services 0.4.10-main.30a328e → 0.4.10-main.32aef1b

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.
@@ -4510,59 +4510,6 @@ var createSelectedDocumentsIterator = (automergeHost) => (
4510
4510
  }
4511
4511
  }
4512
4512
  );
4513
- var createDocumentsIterator = (automergeHost) => (
4514
- /**
4515
- * Recursively get all object data blobs from Automerge Repo.
4516
- * @param ids
4517
- */
4518
- // TODO(mykola): Unload automerge handles after usage.
4519
- async function* getAllDocuments() {
4520
- const visited = /* @__PURE__ */ new Set();
4521
- async function* getObjectsFromHandle(handle) {
4522
- if (visited.has(handle.documentId)) {
4523
- return;
4524
- }
4525
- if (!handle.isReady()) {
4526
- await handle.whenReady();
4527
- }
4528
- const doc = handle.docSync();
4529
- const heads = getHeads(doc);
4530
- if (doc.objects) {
4531
- yield Object.entries(doc.objects).map(([objectId, object]) => {
4532
- return {
4533
- id: idCodec.encode({
4534
- documentId: handle.documentId,
4535
- objectId
4536
- }),
4537
- object,
4538
- currentHash: heads.join("")
4539
- };
4540
- });
4541
- }
4542
- if (doc.links) {
4543
- for (const id of Object.values(doc.links)) {
4544
- if (visited.has(id)) {
4545
- continue;
4546
- }
4547
- const linkHandle = automergeHost.repo.handles[id] ?? automergeHost.repo.find(id);
4548
- for await (const result of getObjectsFromHandle(linkHandle)) {
4549
- yield result;
4550
- }
4551
- }
4552
- }
4553
- visited.add(handle.documentId);
4554
- }
4555
- for (const handle of Object.values(automergeHost.repo.handles)) {
4556
- if (visited.has(handle.documentId)) {
4557
- continue;
4558
- }
4559
- for await (const result of getObjectsFromHandle(handle)) {
4560
- yield result;
4561
- }
4562
- visited.add(handle.documentId);
4563
- }
4564
- }
4565
- );
4566
4513
 
4567
4514
  // packages/sdk/client-services/src/packlets/services/service-context.ts
4568
4515
  function _ts_decorate6(decorators, target, key, desc) {
@@ -4621,12 +4568,12 @@ var ServiceContext = class extends Resource {
4621
4568
  })
4622
4569
  });
4623
4570
  this.indexer = new Indexer({
4571
+ db: this.level,
4624
4572
  indexStore: new IndexStore({
4625
4573
  db: level.sublevel("index-storage")
4626
4574
  }),
4627
4575
  metadataStore: this.indexMetadata,
4628
- loadDocuments: createSelectedDocumentsIterator(this.automergeHost),
4629
- getAllDocuments: createDocumentsIterator(this.automergeHost)
4576
+ loadDocuments: createSelectedDocumentsIterator(this.automergeHost)
4630
4577
  });
4631
4578
  this.invitations = new InvitationsHandler(this.networkManager);
4632
4579
  this.invitationsManager = new InvitationsManager(this.invitations, (invitation) => this.getInvitationHandler(invitation), this.metadataStore);
@@ -4882,7 +4829,7 @@ import { SpaceMember as SpaceMember4 } from "@dxos/protocols/proto/dxos/client/s
4882
4829
  import { TRACE_PROCESSOR } from "@dxos/tracing";
4883
4830
 
4884
4831
  // packages/sdk/client-services/src/version.ts
4885
- var DXOS_VERSION = "0.4.10-main.30a328e";
4832
+ var DXOS_VERSION = "0.4.10-main.32aef1b";
4886
4833
 
4887
4834
  // packages/sdk/client-services/src/packlets/services/platform.ts
4888
4835
  import { Platform } from "@dxos/protocols/proto/dxos/client/services";
@@ -6121,4 +6068,4 @@ export {
6121
6068
  ClientServicesHost,
6122
6069
  ClientServicesProviderResource
6123
6070
  };
6124
- //# sourceMappingURL=chunk-RCJRMCJI.mjs.map
6071
+ //# sourceMappingURL=chunk-W4P2OHIB.mjs.map