@dxos/echo-pipeline 0.4.5-main.4000b4b → 0.4.5-main.b5b1909

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.
@@ -3136,19 +3136,20 @@ var AutomergeHost = class {
3136
3136
  return isRequested;
3137
3137
  }
3138
3138
  try {
3139
- if (!doc.experimental_spaceKey) {
3139
+ const rawSpaceKey = doc.access?.spaceKey ?? doc.experimental_spaceKey;
3140
+ if (!rawSpaceKey) {
3140
3141
  log15("space key not found for share policy check", {
3141
3142
  peerId,
3142
3143
  documentId
3143
3144
  }, {
3144
3145
  F: __dxlog_file16,
3145
- L: 72,
3146
+ L: 74,
3146
3147
  S: this,
3147
3148
  C: (f, a) => f(...a)
3148
3149
  });
3149
3150
  return false;
3150
3151
  }
3151
- const spaceKey = PublicKey8.from(doc.experimental_spaceKey);
3152
+ const spaceKey = PublicKey8.from(rawSpaceKey);
3152
3153
  const authorizedDevices = this._authorizedDevices.get(spaceKey);
3153
3154
  const deviceKeyHex = this.repo.peerMetadataByPeerId[peerId]?.dxos_deviceKey;
3154
3155
  if (!deviceKeyHex) {
@@ -3157,7 +3158,7 @@ var AutomergeHost = class {
3157
3158
  documentId
3158
3159
  }, {
3159
3160
  F: __dxlog_file16,
3160
- L: 82,
3161
+ L: 84,
3161
3162
  S: this,
3162
3163
  C: (f, a) => f(...a)
3163
3164
  });
@@ -3174,7 +3175,7 @@ var AutomergeHost = class {
3174
3175
  isAuthorized
3175
3176
  }, {
3176
3177
  F: __dxlog_file16,
3177
- L: 88,
3178
+ L: 90,
3178
3179
  S: this,
3179
3180
  C: (f, a) => f(...a)
3180
3181
  });
@@ -3182,7 +3183,7 @@ var AutomergeHost = class {
3182
3183
  } catch (err) {
3183
3184
  log15.catch(err, void 0, {
3184
3185
  F: __dxlog_file16,
3185
- L: 98,
3186
+ L: 100,
3186
3187
  S: this,
3187
3188
  C: (f, a) => f(...a)
3188
3189
  });
@@ -3234,7 +3235,7 @@ var AutomergeHost = class {
3234
3235
  deviceKey
3235
3236
  }, {
3236
3237
  F: __dxlog_file16,
3237
- L: 155,
3238
+ L: 157,
3238
3239
  S: this,
3239
3240
  C: (f, a) => f(...a)
3240
3241
  });
@@ -3285,4 +3286,4 @@ export {
3285
3286
  MeshNetworkAdapter,
3286
3287
  AutomergeHost
3287
3288
  };
3288
- //# sourceMappingURL=chunk-WIB35LJH.mjs.map
3289
+ //# sourceMappingURL=chunk-3S2G6TSQ.mjs.map