@rimori/client 2.3.0-next.8 → 2.4.0

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.
File without changes
File without changes
@@ -29,11 +29,12 @@ export class AccomplishmentController {
29
29
  if (!['micro', 'macro'].includes(payload.type)) {
30
30
  throw new Error('Invalid accomplishment type ' + payload.type);
31
31
  }
32
+ // disabled detection temporarelly to determine how long exercises normally are
32
33
  //durationMinutes is required
33
- if (payload.type === 'macro' && payload.durationMinutes < 4) {
34
- console.warn('The duration must be at least 4 minutes');
35
- return false;
36
- }
34
+ // if (payload.type === 'macro' && payload.durationMinutes < 4) {
35
+ // console.warn('The duration must be at least 4 minutes');
36
+ // return false;
37
+ // }
37
38
  //errorRatio is required
38
39
  if (payload.type === 'macro' && (payload.errorRatio < 0 || payload.errorRatio > 1)) {
39
40
  throw new Error('The error ratio must be between 0 and 1');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rimori/client",
3
- "version": "2.3.0-next.8",
3
+ "version": "2.4.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "repository": {
@@ -82,11 +82,12 @@ export class AccomplishmentController {
82
82
  throw new Error('Invalid accomplishment type ' + payload.type);
83
83
  }
84
84
 
85
+ // disabled detection temporarelly to determine how long exercises normally are
85
86
  //durationMinutes is required
86
- if (payload.type === 'macro' && payload.durationMinutes < 4) {
87
- console.warn('The duration must be at least 4 minutes');
88
- return false;
89
- }
87
+ // if (payload.type === 'macro' && payload.durationMinutes < 4) {
88
+ // console.warn('The duration must be at least 4 minutes');
89
+ // return false;
90
+ // }
90
91
 
91
92
  //errorRatio is required
92
93
  if (payload.type === 'macro' && (payload.errorRatio < 0 || payload.errorRatio > 1)) {