og-players 0.0.7 → 0.0.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/README.md +5 -1
- package/package.json +1 -1
- package/src/index.js +6 -4
package/README.md
CHANGED
|
@@ -42,8 +42,12 @@ mapPlayers(players);
|
|
|
42
42
|
"days": 10
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
|
-
"national":
|
|
45
|
+
"national": {
|
|
46
|
+
"status": true,
|
|
47
|
+
"label": "⚽"
|
|
48
|
+
},
|
|
46
49
|
"injured": {
|
|
50
|
+
"label": "=> Muscle Injury | => out | Listo en 340 días",
|
|
47
51
|
"reason": "Muscle Injury",
|
|
48
52
|
"status": "out",
|
|
49
53
|
"started": {
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -51,16 +51,17 @@ function _construct_players(p, nationals) {
|
|
|
51
51
|
height: p?.height ?? '--',
|
|
52
52
|
shirt: p?.shirtNumber ?? '--',
|
|
53
53
|
market: plurrency?.label ?? '--',
|
|
54
|
-
contract:
|
|
55
|
-
|
|
56
|
-
:
|
|
54
|
+
contract: {
|
|
55
|
+
date: plontrato?.date ?? '--',
|
|
56
|
+
remain: plontrato?.remain ?? '--'
|
|
57
|
+
},
|
|
57
58
|
national: {
|
|
58
59
|
status: isNational ? true : false,
|
|
59
60
|
label: isNational ? '⚽' : '--'
|
|
60
61
|
},
|
|
61
62
|
injured: p?.injury?.reason
|
|
62
63
|
? {
|
|
63
|
-
label: `Reason: ${p.injury.reason} |
|
|
64
|
+
label: `Reason: ${p.injury.reason} | Status: ${p.injury.status}| Remain: ${injury_end.remain.days}`,
|
|
64
65
|
reason: p.injury.reason,
|
|
65
66
|
status: p.injury.status,
|
|
66
67
|
started: injury_start,
|
|
@@ -76,6 +77,7 @@ function mapPlayers(data = {}) {
|
|
|
76
77
|
playerPreviousTeam: previous = [],
|
|
77
78
|
nationalPlayers: national = [],
|
|
78
79
|
} = data;
|
|
80
|
+
|
|
79
81
|
|
|
80
82
|
return {
|
|
81
83
|
squad: players.map(o => _construct_players(o.player, national)),
|