@speakableio/core 0.1.89 → 0.1.91

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.
@@ -537,6 +537,7 @@ interface PageScore {
537
537
  }[];
538
538
  tryAgain?: boolean;
539
539
  updatedAt?: CustomTimestamp;
540
+ feedbackAttemptId?: string;
540
541
  }
541
542
 
542
543
  declare enum AssignmentAnalyticsType {
package/dist/index.web.js CHANGED
@@ -2803,7 +2803,7 @@ var useUpdateStudentVocab = (page) => {
2803
2803
  } catch (error) {
2804
2804
  if (error instanceof Error && error.message === "not-found") {
2805
2805
  data.firstSeen = serverTimestamp2();
2806
- await api.setDoc(docPath, data);
2806
+ await api.setDoc(docPath, data, { merge: true });
2807
2807
  } else {
2808
2808
  console.log(error);
2809
2809
  }
@@ -2825,7 +2825,7 @@ var useUpdateStudentVocab = (page) => {
2825
2825
  } catch (error) {
2826
2826
  if (error instanceof Error && error.message === "not-found") {
2827
2827
  data.firstSeen = serverTimestamp2();
2828
- await api.setDoc(docPath, data);
2828
+ await api.setDoc(docPath, data, { merge: true });
2829
2829
  } else {
2830
2830
  console.log(error);
2831
2831
  }