og-tools 0.0.2 → 0.0.3

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +12 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "og-tools",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "scripts": {
package/src/index.js CHANGED
@@ -59,9 +59,20 @@ function correlateTournaments(teamA, teamB) {
59
59
  }
60
60
  }
61
61
 
62
+ function singleTournamentCorrelate(data) {
63
+
64
+ return data.map(t => ({
65
+ name: t.uniqueTournament.name,
66
+ slug: t.uniqueTournament.slug,
67
+ id: t.uniqueTournament.id,
68
+ seasons: t.seasons
69
+ }));
70
+
71
+ }
62
72
 
63
73
 
64
74
  module.exports = {
65
75
  comillas,
66
- correlateTournaments
76
+ correlateTournaments,
77
+ singleTournamentCorrelate
67
78
  };