@baravak/risloo-profile-cli 4.42.0 → 4.43.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@baravak/risloo-profile-cli",
3
- "version": "4.42.0",
3
+ "version": "4.43.0",
4
4
  "description": "**Risloo Profile CLI** is a library for creating profiles, reports and sheets for *psychological* samples.",
5
5
  "main": "bin/risloo.js",
6
6
  "publishConfig": {
@@ -58,27 +58,27 @@ class MBTI9A extends Profile {
58
58
  dataset,
59
59
  } = this;
60
60
  const items = []
61
- // for(let i = 0; i < 8; i+=2) {
62
- // const bold = (dataset.score[i].mark ?? 0) > (dataset.score[i + 1].mark ?? 0)
63
- // const mark = dataset.score[i].mark ?? 0
64
- // const a = {
65
- // ...dataset.score[i],
66
- // mark: mark,
67
- // eng: dataset.score[i].label.eng.toUpperCase(),
68
- // percentage: Math.round((mark) / 15 * 100),
69
- // bold,
70
- // blockItem: bold ? mark : 15 - mark
71
- // }
72
- // const b = {
73
- // ...dataset.score[i + 1],
74
- // eng: dataset.score[i + 1].label.eng.toUpperCase(),
75
- // mark: 15 - mark,
76
- // percentage: 100 - a.percentage,
77
- // bold: !a.bold
61
+ for(let i = 0; i < 8; i+=2) {
62
+ const bold = (dataset.score[i].mark ?? 0) > (dataset.score[i + 1].mark ?? 0)
63
+ const mark = dataset.score[i].mark ?? 0
64
+ const a = {
65
+ ...dataset.score[i],
66
+ mark: mark,
67
+ eng: dataset.score[i].label.eng.toUpperCase(),
68
+ percentage: Math.round((mark) / 15 * 100),
69
+ bold,
70
+ blockItem: bold ? mark : 15 - mark
71
+ }
72
+ const b = {
73
+ ...dataset.score[i + 1],
74
+ eng: dataset.score[i + 1].label.eng.toUpperCase(),
75
+ mark: 15 - mark,
76
+ percentage: 100 - a.percentage,
77
+ bold: !a.bold
78
78
 
79
- // }
80
- // items.push([a, b])
81
- // }
79
+ }
80
+ items.push([a, b])
81
+ }
82
82
  return [
83
83
  {
84
84
  items,