@tailgatefantasysports/seasonservice 0.4.11 → 0.4.13

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/SeasonService.js CHANGED
@@ -87,7 +87,7 @@ module.exports = class SeasonService {
87
87
  newFrame = frame;
88
88
  while (newFrame && newFrame.season === season) {
89
89
  full[newFrame.type] = newFrame;
90
- newFrame = this.getPreviousSeason(newFrame.start - 1)
90
+ newFrame = this.getPreviousSeason(new Date(newFrame.start - 1))
91
91
  }
92
92
 
93
93
  return full;
@@ -30,7 +30,7 @@ beforeEach(() => {
30
30
  end: new Date('2022-03-01')
31
31
  },
32
32
  [types.postseason]: {
33
- start: new Date('2022-03-01'),
33
+ start: new Date('2022-03-06'),
34
34
  end: new Date('2022-04-01')
35
35
  }
36
36
  }
@@ -123,7 +123,7 @@ describe('GetPreviousFullSeason', () => {
123
123
  [types.postseason]: {
124
124
  season: "3",
125
125
  type: types.postseason,
126
- start: new Date('2022-03-01'),
126
+ start: new Date('2022-03-06'),
127
127
  end: new Date('2022-04-01')
128
128
  }
129
129
  }],
package/app.config.js CHANGED
@@ -59,6 +59,20 @@ module.exports = {
59
59
  start: new Date('2024-01-10T00:00:00Z'),
60
60
  end: new Date('2024-02-14T00:00:00Z'),
61
61
  }
62
+ },
63
+ 2024: {
64
+ [types.preseason]: {
65
+ start: new Date('2024-08-07T00:00:00Z'),
66
+ end: new Date('2024-09-04T00:00:00Z')
67
+ },
68
+ [types.regular]: {
69
+ start: new Date('2024-09-04T00:00:00Z'),
70
+ end: new Date('2024-01-15T00:00:00Z'),
71
+ },
72
+ [types.postseason]: {
73
+ start: new Date('2024-01-15T00:00:00Z'),
74
+ end: new Date('2024-02-12T00:00:00Z'),
75
+ }
62
76
  }
63
77
  }
64
78
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tailgatefantasysports/seasonservice",
3
- "version": "0.4.11",
3
+ "version": "0.4.13",
4
4
  "description": "Generic Season Service",
5
5
  "main": "index.js",
6
6
  "scripts": {