@internetarchive/ia-book-actions 0.0.16-2 → 0.0.16-5
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
|
@@ -46,7 +46,7 @@ export const defaultLendingStatus = {
|
|
|
46
46
|
isPrintDisabledOnly: false,
|
|
47
47
|
loanCount: 0,
|
|
48
48
|
loanRecord: [],
|
|
49
|
-
|
|
49
|
+
loansUrl: '/details/@neeraj-archive?tab=loans#loans-on-loan',
|
|
50
50
|
maxLoans: 10,
|
|
51
51
|
secondsLeftOnLoan: 10,
|
|
52
52
|
shouldProtectImages: true,
|
|
@@ -116,7 +116,7 @@ export const canBrowseAndBorrow = {
|
|
|
116
116
|
identifier: 'practicalorganic00plim',
|
|
117
117
|
},
|
|
118
118
|
loanStartDate: '2021-07-30 09:57:40',
|
|
119
|
-
|
|
119
|
+
loansUrl: '/details/@neeraj-archive?tab=loans#loans-on-loan',
|
|
120
120
|
maxLoans: 10,
|
|
121
121
|
secondsLeftOnLoan: 3591,
|
|
122
122
|
shouldProtectImages: true,
|
|
@@ -194,6 +194,10 @@ export default class ActionsHandler extends LitElement {
|
|
|
194
194
|
* @fires ActionsHandler#lendingActionError
|
|
195
195
|
*/
|
|
196
196
|
dispatchActionError(action, data = {}) {
|
|
197
|
+
console.log('LendingServiceError');
|
|
198
|
+
// send LendingServiceError to GA
|
|
199
|
+
this.sendEvent('LendingServiceError', action || 'unknown_action');
|
|
200
|
+
|
|
197
201
|
this.dispatchEvent(
|
|
198
202
|
new CustomEvent('lendingActionError', {
|
|
199
203
|
detail: { action, data },
|