@speakableio/core 1.0.55 → 1.0.57
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.
- package/dist/index.native.js +10 -5
- package/dist/index.native.js.map +1 -1
- package/dist/index.native.mjs +10 -5
- package/dist/index.native.mjs.map +1 -1
- package/dist/index.web.js +10 -5
- package/dist/index.web.js.map +1 -1
- package/package.json +1 -1
package/dist/index.native.js
CHANGED
|
@@ -1818,7 +1818,7 @@ var BASE_RESPOND_FIELD_VALUES = {
|
|
|
1818
1818
|
title: "",
|
|
1819
1819
|
allowRetries: true,
|
|
1820
1820
|
respondTime: 180,
|
|
1821
|
-
maxCharacters:
|
|
1821
|
+
maxCharacters: 1e4
|
|
1822
1822
|
};
|
|
1823
1823
|
var BASE_REPEAT_FIELD_VALUES = {
|
|
1824
1824
|
repeat: 1
|
|
@@ -3402,11 +3402,16 @@ var useUpdateStudentVocab = (page) => {
|
|
|
3402
3402
|
try {
|
|
3403
3403
|
await api.updateDoc(docPath, data);
|
|
3404
3404
|
} catch (error) {
|
|
3405
|
-
if (error instanceof Error &&
|
|
3406
|
-
|
|
3407
|
-
|
|
3405
|
+
if (error instanceof Error && "code" in error) {
|
|
3406
|
+
const firebaseError = error;
|
|
3407
|
+
if (firebaseError.code === "not-found") {
|
|
3408
|
+
data.firstSeen = serverTimestamp2();
|
|
3409
|
+
await api.setDoc(docPath, data, { merge: true });
|
|
3410
|
+
} else {
|
|
3411
|
+
console.error("Error actualizando vocabulario:", error);
|
|
3412
|
+
}
|
|
3408
3413
|
} else {
|
|
3409
|
-
console.
|
|
3414
|
+
console.error("Error desconocido:", error);
|
|
3410
3415
|
}
|
|
3411
3416
|
}
|
|
3412
3417
|
try {
|