@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.
- package/dist/index.native.d.mts +1 -0
- package/dist/index.native.d.ts +1 -0
- package/dist/index.native.js +1 -1
- package/dist/index.native.js.map +1 -1
- package/dist/index.native.mjs +1 -1
- package/dist/index.native.mjs.map +1 -1
- package/dist/index.web.d.mts +1 -0
- package/dist/index.web.js +1 -1
- package/dist/index.web.js.map +1 -1
- package/package.json +1 -1
package/dist/index.native.mjs
CHANGED
|
@@ -1100,7 +1100,7 @@ async function clearScore(params) {
|
|
|
1100
1100
|
var _a, _b, _c, _d, _e;
|
|
1101
1101
|
const update = {
|
|
1102
1102
|
[`cards.${params.cardId}`]: {
|
|
1103
|
-
attempts: (_a = params.cardScores.attempts) != null ? _a : 1,
|
|
1103
|
+
attempts: ((_a = params.cardScores.attempts) != null ? _a : 1) + 1,
|
|
1104
1104
|
correct: (_b = params.cardScores.correct) != null ? _b : 0,
|
|
1105
1105
|
// save old score history
|
|
1106
1106
|
history: [
|