@playpilot/tpi 8.14.0-beta.3 → 8.14.0-beta.4

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": "@playpilot/tpi",
3
- "version": "8.14.0-beta.3",
3
+ "version": "8.14.0-beta.4",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite dev",
@@ -29,7 +29,7 @@ export async function fetchSimilarTitles(title: TitleData): Promise<TitleData[]>
29
29
  }
30
30
 
31
31
  export async function fetchTitleBySid(sid: string): Promise<TitleData> {
32
- const data = await fetchTitles({ sids: sid })
32
+ const data = await fetchTitles({ sids: sid, no_region_filter: true })
33
33
 
34
34
  const title = data.results[0]
35
35
 
@@ -55,10 +55,7 @@
55
55
  if (key === routes[0].key) currentUrl.searchParams.delete('route')
56
56
  else currentUrl.searchParams.set('route', currentRoute.key)
57
57
 
58
- if (pushState) {
59
- history.pushState({}, '', currentUrl)
60
- console.log('navigate push state')
61
- }
58
+ if (pushState) history.pushState({}, '', currentUrl)
62
59
 
63
60
  track(TrackingEvent.ExploreNavigate, null, { route: currentRoute.key })
64
61
  }
@@ -20,8 +20,6 @@
20
20
 
21
21
  const transitionDuration = 300
22
22
 
23
- console.log({onclose})
24
-
25
23
  let slider: TinySlider
26
24
  let initialized = $state(false)
27
25
 
@@ -81,7 +81,7 @@ describe('$lib/api/titles', () => {
81
81
 
82
82
  const response = await fetchTitleBySid(title.sid)
83
83
 
84
- expect(api).toHaveBeenCalledWith(`/titles/browse?api-token=some-token&sids=${title.sid}&language=en-US&include_count=false`)
84
+ expect(api).toHaveBeenCalledWith(`/titles/browse?api-token=some-token&sids=${title.sid}&no_region_filter=true&language=en-US&include_count=false`)
85
85
  expect(response).toEqual(title)
86
86
  })
87
87