math-exercises 3.0.42 → 3.0.44

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.
@@ -1,4 +1,7 @@
1
1
  export * from "./tableReading.js";
2
2
  export * from "./functionGraphReading.js";
3
3
  export * from "./pieChartReading.js";
4
+ export * from "./testGen.js";
5
+ export * from "./testGenGGB.js";
6
+ export * from "./testGenStudentGGB.js";
4
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/dataRepresentations/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAElC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/dataRepresentations/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAElC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC"}
@@ -2,6 +2,6 @@ export * from "./tableReading.js";
2
2
  // export * from "./barChartReading.js";
3
3
  export * from "./functionGraphReading.js";
4
4
  export * from "./pieChartReading.js";
5
- // export * from "./testGen.js";
6
- // export * from "./testGenGGB.js";
7
- // export * from "./testGenStudentGGB.js";
5
+ export * from "./testGen.js";
6
+ export * from "./testGenGGB.js";
7
+ export * from "./testGenStudentGGB.js";
@@ -35,7 +35,7 @@ const getHint = (identifiers) => {
35
35
  };
36
36
  const getCorrection = (identifiers) => {
37
37
  const { hasGgbCorr } = identifiers;
38
- if (hasGgbCorr)
38
+ if (!hasGgbCorr)
39
39
  return `voici la correction et voici des maths
40
40
 
41
41
  $$
@@ -35,7 +35,7 @@ const getHint = (identifiers) => {
35
35
  };
36
36
  const getCorrection = (identifiers) => {
37
37
  const { hasGgbCorr } = identifiers;
38
- if (hasGgbCorr)
38
+ if (!hasGgbCorr)
39
39
  return `voici la correction et voici des maths
40
40
 
41
41
  $$
@@ -35,7 +35,7 @@ const getHint = (identifiers) => {
35
35
  };
36
36
  const getCorrection = (identifiers) => {
37
37
  const { hasGgbCorr } = identifiers;
38
- if (hasGgbCorr)
38
+ if (!hasGgbCorr)
39
39
  return `voici la correction et voici des maths
40
40
 
41
41
  $$
package/lib/index.d.ts CHANGED
@@ -1923,6 +1923,18 @@ declare const mathExercises: (Exercise<{
1923
1923
  }, {}> | Exercise<{
1924
1924
  points: number[][];
1925
1925
  labels: string[];
1926
+ }, {}> | Exercise<{
1927
+ rand: number;
1928
+ hasTwoAnswers: boolean;
1929
+ hasGgbCorr: boolean;
1930
+ }, {}> | Exercise<{
1931
+ rand: number;
1932
+ hasTwoAnswers: boolean;
1933
+ hasGgbCorr: boolean;
1934
+ }, {}> | Exercise<{
1935
+ rand: number;
1936
+ hasTwoAnswers: boolean;
1937
+ hasGgbCorr: boolean;
1926
1938
  }, {}>)[];
1927
1939
  declare const pcExercises: (Exercise<{
1928
1940
  numbers: number[];
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAG7D,OAAO,4BAA4B,CAAC;AACpC,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAE/D,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAA+B,CAAC;AACnD,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAA6B,CAAC;AAE/C,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,cAAc,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "math-exercises",
3
3
  "type": "module",
4
- "version": "3.0.42",
4
+ "version": "3.0.44",
5
5
  "description": "Math exercises generator for middle school and high school",
6
6
  "main": "lib/index.js",
7
7
  "files": [