promogame-player 0.0.6 → 0.0.7

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.
@@ -1675,7 +1675,7 @@ Array[ui] || function(t) {
1675
1675
  } finally {
1676
1676
  return t;
1677
1677
  }
1678
- }(pp()), { bind: T0, noContext: O0 } = sr, Jr = new sr(), { hasOwnProperty: vp } = Object.prototype, Co = Array.from || function(t) {
1678
+ }(pp()), { bind: S0, noContext: T0 } = sr, Jr = new sr(), { hasOwnProperty: vp } = Object.prototype, Co = Array.from || function(t) {
1679
1679
  const e = [];
1680
1680
  return t.forEach((n) => e.push(n)), e;
1681
1681
  };
@@ -14178,12 +14178,7 @@ mutation UpdateParticipantInfo($email: String, $phone: String, $avatar: String,
14178
14178
  id
14179
14179
  }
14180
14180
  }
14181
- `), g0 = bv((t, { headers: e }) => ({
14182
- headers: {
14183
- ...e,
14184
- Authorization: `Bearer ${window.__PROMOGAME_EXTERNAL_ACCESS_TOKEN}`
14185
- }
14186
- })), N0 = ts.forwardRef(
14181
+ `), C0 = ts.forwardRef(
14187
14182
  ({
14188
14183
  className: t,
14189
14184
  campaignId: e,
@@ -14205,7 +14200,16 @@ mutation UpdateParticipantInfo($email: String, $phone: String, $avatar: String,
14205
14200
  () => new ml({
14206
14201
  uri: n,
14207
14202
  cache: new hl(),
14208
- link: g0
14203
+ link: bv((R, { headers: M }) => (console.log("running apollo link"), window.__PROMOGAME_EXTERNAL_ACCESS_TOKEN ? {
14204
+ headers: {
14205
+ ...M,
14206
+ Authorization: `Bearer ${window.__PROMOGAME_EXTERNAL_ACCESS_TOKEN}`
14207
+ }
14208
+ } : {
14209
+ headers: {
14210
+ ...M
14211
+ }
14212
+ }))
14209
14213
  }),
14210
14214
  [n]
14211
14215
  ), { data: y, error: g } = uv(v0, {
@@ -14261,5 +14265,5 @@ mutation UpdateParticipantInfo($email: String, $phone: String, $avatar: String,
14261
14265
  }
14262
14266
  );
14263
14267
  export {
14264
- N0 as PromogamePlayer
14268
+ C0 as PromogamePlayer
14265
14269
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "promogame-player",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "type": "module",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",