catchup-library-web 1.2.8 → 1.2.9

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.js CHANGED
@@ -2697,20 +2697,17 @@ var constructActivityItemListMaterialOnly = (materialMap, type) => {
2697
2697
  Object.keys(materialMap).forEach((key, index) => {
2698
2698
  const materialInnerMap = JSON.parse(materialMap[key]);
2699
2699
  const innerKey = Object.keys(materialInnerMap)[0];
2700
- console.log("innerKey", innerKey);
2701
2700
  const optionList = JSON.parse(materialInnerMap[innerKey]);
2702
- console.log("optionList", optionList);
2703
2701
  let currentText = "";
2704
2702
  for (const option of optionList) {
2705
2703
  let prefix = "";
2706
2704
  if (option === innerKey) {
2707
- prefix = `[${i18n_default.t("correct")}]`;
2705
+ prefix = `[${i18n_default.t("correct").toUpperCase()}]`;
2708
2706
  } else {
2709
- prefix = `[${i18n_default.t("incorrect")}]`;
2707
+ prefix = `[${i18n_default.t("incorrect").toUpperCase()}]`;
2710
2708
  }
2711
2709
  currentText += `${prefix}${option}, `;
2712
2710
  }
2713
- console.log("currentText", currentText);
2714
2711
  itemList.push({
2715
2712
  type: "text",
2716
2713
  text: `${index + 1}. ${currentText.substring(
package/dist/index.mjs CHANGED
@@ -2517,20 +2517,17 @@ var constructActivityItemListMaterialOnly = (materialMap, type) => {
2517
2517
  Object.keys(materialMap).forEach((key, index) => {
2518
2518
  const materialInnerMap = JSON.parse(materialMap[key]);
2519
2519
  const innerKey = Object.keys(materialInnerMap)[0];
2520
- console.log("innerKey", innerKey);
2521
2520
  const optionList = JSON.parse(materialInnerMap[innerKey]);
2522
- console.log("optionList", optionList);
2523
2521
  let currentText = "";
2524
2522
  for (const option of optionList) {
2525
2523
  let prefix = "";
2526
2524
  if (option === innerKey) {
2527
- prefix = `[${i18n_default.t("correct")}]`;
2525
+ prefix = `[${i18n_default.t("correct").toUpperCase()}]`;
2528
2526
  } else {
2529
- prefix = `[${i18n_default.t("incorrect")}]`;
2527
+ prefix = `[${i18n_default.t("incorrect").toUpperCase()}]`;
2530
2528
  }
2531
2529
  currentText += `${prefix}${option}, `;
2532
2530
  }
2533
- console.log("currentText", currentText);
2534
2531
  itemList.push({
2535
2532
  type: "text",
2536
2533
  text: `${index + 1}. ${currentText.substring(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "catchup-library-web",
3
- "version": "1.2.8",
3
+ "version": "1.2.9",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -2010,20 +2010,17 @@ export const constructActivityItemListMaterialOnly = (
2010
2010
  Object.keys(materialMap).forEach((key, index) => {
2011
2011
  const materialInnerMap = JSON.parse(materialMap[key]);
2012
2012
  const innerKey = Object.keys(materialInnerMap)[0];
2013
- console.log("innerKey", innerKey);
2014
2013
  const optionList = JSON.parse(materialInnerMap[innerKey]);
2015
- console.log("optionList", optionList);
2016
2014
  let currentText = "";
2017
2015
  for (const option of optionList) {
2018
2016
  let prefix = "";
2019
2017
  if (option === innerKey) {
2020
- prefix = `[${i18n.t("correct")}]`;
2018
+ prefix = `[${i18n.t("correct").toUpperCase()}]`;
2021
2019
  } else {
2022
- prefix = `[${i18n.t("incorrect")}]`;
2020
+ prefix = `[${i18n.t("incorrect").toUpperCase()}]`;
2023
2021
  }
2024
2022
  currentText += `${prefix}${option}, `;
2025
2023
  }
2026
- console.log("currentText", currentText);
2027
2024
  itemList.push({
2028
2025
  type: "text",
2029
2026
  text: `${index + 1}. ${currentText.substring(