@internetarchive/ia-book-actions 0.0.23-alpha1 → 0.0.23-alpha2

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.23-alpha1",
3
+ "version": "0.0.23-alpha2",
4
4
  "description": "Bookreader actions for borrowable book",
5
5
  "author": "Internet Archive",
6
6
  "license": "AGPL-3.0-only",
@@ -1,8 +1,6 @@
1
1
  import ActionsHandlerService from './actions-handler/actions-handler-service.js';
2
2
  import * as Cookies from './doc-cookies.js';
3
- import {
4
- analyticsCategories,
5
- } from '../config/analytics-event-and-category.js';
3
+ import { analyticsCategories } from '../config/analytics-event-and-category.js';
6
4
 
7
5
  /**
8
6
  * This class is used to create loan token for borrowed books
@@ -93,16 +91,12 @@ export class LoanTokenPoller {
93
91
  window?.Sentry?.captureMessage(`
94
92
  handleLoanTokenPoller error, identifier:${this.identifier}, borrowType:${this.borrowType}, interval:${this.loanTokenInterval}
95
93
  `);
96
- this.sendEvent(
97
- this.analyticsCategories.browse,
98
- 'LoanTokenError',
99
- {
100
- 'identifier' : this.identifier,
101
- 'isInitial' : isInitial,
102
- 'borrowType' : this.borrowType,
103
- 'interval' : this.loanTokenInterval,
104
- }
105
- );
94
+ this.sendEvent(this.analyticsCategories.browse, 'LoanTokenError', {
95
+ identifier: this.identifier,
96
+ isInitial: isInitial,
97
+ borrowType: this.borrowType,
98
+ interval: this.loanTokenInterval,
99
+ });
106
100
  this.disconnectedInterval(); // stop token fetch api
107
101
  this.errorCallback({ detail: { action, data } });
108
102
  },