@dxos/echo-pipeline 0.1.49 → 0.1.50-next.1bfebf8

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.
@@ -1015,7 +1015,7 @@ var DataServiceImpl = class {
1015
1015
  import assert8 from "@dxos/node-std/assert";
1016
1016
  import { Event as Event4, scheduleTask as scheduleTask2, synchronized as synchronized3, trackLeaks as trackLeaks2 } from "@dxos/async";
1017
1017
  import { Context as Context3 } from "@dxos/context";
1018
- import { getCredentialAssertion } from "@dxos/credentials";
1018
+ import { checkCredentialType } from "@dxos/credentials";
1019
1019
  import { getStateMachineFromItem, ItemManager } from "@dxos/echo-db";
1020
1020
  import { log as log9 } from "@dxos/log";
1021
1021
  import { Timeframe as Timeframe3 } from "@dxos/timeframe";
@@ -1060,19 +1060,18 @@ var DataPipeline = class DataPipeline2 {
1060
1060
  createCredentialProcessor() {
1061
1061
  return {
1062
1062
  process: async (credential) => {
1063
- const assertion = getCredentialAssertion(credential);
1064
- if (assertion["@type"] !== "dxos.halo.credentials.Epoch") {
1063
+ if (!checkCredentialType(credential, "dxos.halo.credentials.Epoch")) {
1065
1064
  return;
1066
1065
  }
1067
1066
  log9("new epoch", {
1068
1067
  credential
1069
1068
  }, {
1070
1069
  file: "data-pipeline.ts",
1071
- line: 110,
1070
+ line: 109,
1072
1071
  scope: this,
1073
1072
  callSite: (f, a) => f(...a)
1074
1073
  });
1075
- await this._processEpoch(assertion);
1074
+ await this._processEpoch(credential.subject.assertion);
1076
1075
  this.currentEpoch = credential;
1077
1076
  this.onNewEpoch.emit(credential);
1078
1077
  }
@@ -1113,7 +1112,7 @@ var DataPipeline = class DataPipeline2 {
1113
1112
  }
1114
1113
  log9("close", {}, {
1115
1114
  file: "data-pipeline.ts",
1116
- line: 162,
1115
+ line: 161,
1117
1116
  scope: this,
1118
1117
  callSite: (f, a) => f(...a)
1119
1118
  });
@@ -1128,7 +1127,7 @@ var DataPipeline = class DataPipeline2 {
1128
1127
  } catch (err) {
1129
1128
  log9.catch(err, {}, {
1130
1129
  file: "data-pipeline.ts",
1131
- line: 175,
1130
+ line: 174,
1132
1131
  scope: this,
1133
1132
  callSite: (f, a) => f(...a)
1134
1133
  });
@@ -1146,7 +1145,7 @@ var DataPipeline = class DataPipeline2 {
1146
1145
  seq
1147
1146
  }, {
1148
1147
  file: "data-pipeline.ts",
1149
- line: 187,
1148
+ line: 186,
1150
1149
  scope: this,
1151
1150
  callSite: (f, a) => f(...a)
1152
1151
  });
@@ -1158,7 +1157,7 @@ var DataPipeline = class DataPipeline2 {
1158
1157
  feedKey
1159
1158
  }, {
1160
1159
  file: "data-pipeline.ts",
1161
- line: 193,
1160
+ line: 192,
1162
1161
  scope: this,
1163
1162
  callSite: (f, a) => f(...a)
1164
1163
  });
@@ -1178,7 +1177,7 @@ var DataPipeline = class DataPipeline2 {
1178
1177
  } catch (err) {
1179
1178
  log9.catch(err, {}, {
1180
1179
  file: "data-pipeline.ts",
1181
- line: 211,
1180
+ line: 210,
1182
1181
  scope: this,
1183
1182
  callSite: (f, a) => f(...a)
1184
1183
  });
@@ -1213,7 +1212,7 @@ var DataPipeline = class DataPipeline2 {
1213
1212
  } catch (err) {
1214
1213
  log9.warn("Failed to cache properties", err, {
1215
1214
  file: "data-pipeline.ts",
1216
- line: 245,
1215
+ line: 244,
1217
1216
  scope: this,
1218
1217
  callSite: (f, a) => f(...a)
1219
1218
  });
@@ -1236,7 +1235,7 @@ var DataPipeline = class DataPipeline2 {
1236
1235
  epoch
1237
1236
  }, {
1238
1237
  file: "data-pipeline.ts",
1239
- line: 274,
1238
+ line: 273,
1240
1239
  scope: this,
1241
1240
  callSite: (f, a) => f(...a)
1242
1241
  });
@@ -1246,7 +1245,7 @@ var DataPipeline = class DataPipeline2 {
1246
1245
  }
1247
1246
  log9("restarting pipeline for epoch", {}, {
1248
1247
  file: "data-pipeline.ts",
1249
- line: 282,
1248
+ line: 281,
1250
1249
  scope: this,
1251
1250
  callSite: (f, a) => f(...a)
1252
1251
  });
@@ -1935,4 +1934,4 @@ export {
1935
1934
  SpaceProtocolSession,
1936
1935
  SpaceManager
1937
1936
  };
1938
- //# sourceMappingURL=chunk-AW7XQMFZ.mjs.map
1937
+ //# sourceMappingURL=chunk-CSFWTLPD.mjs.map