@playpilot/tpi 8.29.5 → 8.29.6-beta.2

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.29.5",
3
+ "version": "8.29.6-beta.2",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite dev",
@@ -7,8 +7,11 @@ import type { PlaylinkData } from '../types/playlink'
7
7
  import { api } from './api'
8
8
 
9
9
  export async function fetchAds(): Promise<Campaign[]> {
10
+ console.log(1)
10
11
  if (!hasConsentedTo('ads')) return []
12
+ console.log(2)
11
13
  if (window.PlayPilotLinkInjections.no_affiliate) return []
14
+ console.log(3)
12
15
 
13
16
  const apiToken = getApiToken()
14
17
 
@@ -17,6 +20,8 @@ export async function fetchAds(): Promise<Campaign[]> {
17
20
  try {
18
21
  const response = await api<Campaign[]>(`/ads/browse/?api-token=${apiToken}`)
19
22
 
23
+ console.log({ response })
24
+
20
25
  return response
21
26
  } catch (error: any) {
22
27
  track(TrackingEvent.AdsFetchFailed, null, { status: error.status })
@@ -44,6 +44,8 @@
44
44
  data = await fetchParticipantBySid(sid)
45
45
  }
46
46
 
47
+ console.log('ads', window.PlayPilotLinkInjections.ads)
48
+
47
49
  openModal({
48
50
  type,
49
51
  data,