@dxos/echo-pipeline 0.4.5-main.dc9ef9d → 0.4.5-main.dd6795b

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