@icarusmx/creta 1.0.9 → 1.0.11
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/bin/creta.js +5 -3
- package/package.json +1 -1
package/bin/creta.js
CHANGED
|
@@ -34,7 +34,7 @@ const ENUNCIADOS = [
|
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
36
|
id: 4,
|
|
37
|
-
texto: "Cada operación declarada por un objeto debe incluir:\
|
|
37
|
+
texto: "Cada operación declarada por un objeto debe incluir:\na) nombre de la operación\nb) insumos necesarios para realizar la operación\nc) el valor que regresa tras ejecutar la operación\n\nEstos tres elementos constituyen la firma de operación.",
|
|
38
38
|
nivel: "Firmas",
|
|
39
39
|
enfoque: "Contratos de operación"
|
|
40
40
|
},
|
|
@@ -804,7 +804,8 @@ async function startEnunciadosSelectorInteractive() {
|
|
|
804
804
|
let formattedText = enunciado.texto
|
|
805
805
|
if (enunciado.id === 4) {
|
|
806
806
|
// Special formatting for enunciado 4 with list items
|
|
807
|
-
formattedText = formattedText.replace(/\n
|
|
807
|
+
formattedText = formattedText.replace(/\n([abc])\)/g, '\n $1)')
|
|
808
|
+
formattedText = formattedText.replace(/\n\nEstos tres elementos/g, '\n\n Estos tres elementos')
|
|
808
809
|
}
|
|
809
810
|
console.log(`${highlight}${prefix}${index + 1}. ${formattedText}${reset}`)
|
|
810
811
|
console.log("")
|
|
@@ -988,7 +989,8 @@ async function startEnunciadosSelectorFallback() {
|
|
|
988
989
|
let formattedText = enunciado.texto
|
|
989
990
|
if (enunciado.id === 4) {
|
|
990
991
|
// Special formatting for enunciado 4 with list items
|
|
991
|
-
formattedText = formattedText.replace(/\n
|
|
992
|
+
formattedText = formattedText.replace(/\n([abc])\)/g, '\n $1)')
|
|
993
|
+
formattedText = formattedText.replace(/\n\nEstos tres elementos/g, '\n\n Estos tres elementos')
|
|
992
994
|
}
|
|
993
995
|
console.log(`${index + 1}. ${formattedText}`)
|
|
994
996
|
console.log("")
|