@internetarchive/ia-book-actions 0.0.25 → 0.0.27-1

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": "@internetarchive/ia-book-actions",
3
- "version": "0.0.25",
3
+ "version": "0.0.27-1",
4
4
  "description": "Bookreader actions for borrowable book",
5
5
  "author": "Internet Archive",
6
6
  "license": "AGPL-3.0-only",
@@ -22,7 +22,7 @@ export default class ActionsHandler extends LitElement {
22
22
  }
23
23
 
24
24
  sendEvent(eventCategory, eventAction) {
25
- window?.archive_analytics?.send_event_no_sampling(
25
+ window?.archive_analytics?.send_event(
26
26
  eventCategory,
27
27
  eventAction,
28
28
  `identifier=${this.identifier}`
@@ -70,7 +70,7 @@ export class LoanTokenPoller {
70
70
  }
71
71
 
72
72
  sendEvent(eventCategory, eventAction) {
73
- window?.archive_analytics?.send_event_no_sampling(
73
+ window?.archive_analytics?.send_event(
74
74
  eventCategory,
75
75
  eventAction,
76
76
  `identifier=${this.identifier}`
@@ -83,7 +83,10 @@ export class LoanTokenPoller {
83
83
  identifier: this.identifier,
84
84
  action,
85
85
  error: data => {
86
- window?.Sentry?.captureMessage('handleLoanTokenPoller error');
86
+ window?.Sentry?.captureMessage(
87
+ 'handleLoanTokenPoller error',
88
+ JSON.stringify(data)
89
+ );
87
90
  this.disconnectedInterval(); // stop token fetch api
88
91
  this.errorCallback({ detail: { action, data } });
89
92
  // send LendingServiceError to GA