@speakableio/core 0.1.97 → 0.1.99

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.
@@ -562,6 +562,7 @@ interface PageScore {
562
562
  description: string;
563
563
  }[];
564
564
  target_proficiency_level?: string;
565
+ hint?: string[];
565
566
  }
566
567
 
567
568
  declare enum AssignmentAnalyticsType {
@@ -562,6 +562,7 @@ interface PageScore {
562
562
  description: string;
563
563
  }[];
564
564
  target_proficiency_level?: string;
565
+ hint?: string[];
565
566
  }
566
567
 
567
568
  declare enum AssignmentAnalyticsType {
@@ -1205,7 +1205,7 @@ async function clearScore(params) {
1205
1205
  var _a, _b, _c, _d, _e;
1206
1206
  const update = {
1207
1207
  [`cards.${params.cardId}`]: {
1208
- attempts: (_a = params.cardScores.attempts) != null ? _a : 1,
1208
+ attempts: ((_a = params.cardScores.attempts) != null ? _a : 1) + 1,
1209
1209
  correct: (_b = params.cardScores.correct) != null ? _b : 0,
1210
1210
  // save old score history
1211
1211
  history: [