@internetarchive/ia-book-actions 0.0.28 → 0.0.29

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.28",
3
+ "version": "0.0.29",
4
4
  "description": "Bookreader actions for borrowable book",
5
5
  "author": "Internet Archive",
6
6
  "license": "AGPL-3.0-only",
@@ -169,7 +169,11 @@ export default class IABookActions extends LitElement {
169
169
  'browsingExpired' in this.lendingStatus &&
170
170
  this.lendingStatus?.browsingExpired;
171
171
  if (hasExpired) {
172
- window?.Sentry?.captureMessage('setupLendingToolbarActions hasExpired');
172
+ if (!this.tokenPoller.disconnectedInterval) {
173
+ window?.Sentry?.captureMessage(
174
+ 'setupLendingToolbarActions hasExpired - no tokenPoller'
175
+ );
176
+ }
173
177
  this.tokenPoller?.disconnectedInterval();
174
178
  /** Global event - always fire */
175
179
  this.dispatchEvent(