@ezeep/ezeep-js 1.0.201 → 1.0.204
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/dist/cjs/ezp-auth_14.cjs.entry.js +7 -6
- package/dist/collection/components/ezp-printing/ezp-printing.js +7 -6
- package/dist/custom-elements/index.js +7 -6
- package/dist/esm/ezp-auth_14.entry.js +7 -6
- package/dist/esm-es5/ezp-auth_14.entry.js +1 -1
- package/dist/ezeep/ezeep.esm.js +1 -1
- package/dist/ezeep/p-16c7584d.system.js +1 -1
- package/dist/ezeep/{p-e22e7975.system.entry.js → p-31ee672b.system.entry.js} +1 -1
- package/dist/ezeep/{p-a2a41a05.entry.js → p-97fe71c1.entry.js} +1 -1
- package/package.json +1 -1
- package/www/build/ezeep.esm.js +1 -1
- package/www/build/p-16c7584d.system.js +1 -1
- package/www/build/{p-e22e7975.system.entry.js → p-31ee672b.system.entry.js} +1 -1
- package/www/build/{p-a2a41a05.entry.js → p-97fe71c1.entry.js} +1 -1
|
@@ -33232,19 +33232,19 @@ let EzpPrinting = class {
|
|
|
33232
33232
|
async checkAuth() {
|
|
33233
33233
|
const printService = new EzpPrintService(this.redirecturi, this.clientid);
|
|
33234
33234
|
let accessToken = authStore.state.accessToken;
|
|
33235
|
-
printService.getConfig(authStore.state.accessToken)
|
|
33235
|
+
await printService.getConfig(authStore.state.accessToken)
|
|
33236
33236
|
.then((response) => {
|
|
33237
33237
|
if (response.ok) {
|
|
33238
33238
|
authStore.state.isAuthorized = true;
|
|
33239
33239
|
}
|
|
33240
33240
|
if (!response.ok) {
|
|
33241
|
-
authStore.state.isAuthorized =
|
|
33241
|
+
authStore.state.isAuthorized = false;
|
|
33242
33242
|
throw new Error('http status ' + response.status);
|
|
33243
33243
|
}
|
|
33244
33244
|
})
|
|
33245
33245
|
.catch(() => {
|
|
33246
33246
|
authStore.state.isAuthorized = false;
|
|
33247
|
-
localStorage.setItem('isAuthorized',
|
|
33247
|
+
localStorage.setItem('isAuthorized', authStore.state.isAuthorized.toString());
|
|
33248
33248
|
return false;
|
|
33249
33249
|
});
|
|
33250
33250
|
if (accessToken === '') {
|
|
@@ -33252,8 +33252,7 @@ let EzpPrinting = class {
|
|
|
33252
33252
|
authStore.state.accessToken = accessToken;
|
|
33253
33253
|
}
|
|
33254
33254
|
if (localStorage.getItem('isAuthorized')) {
|
|
33255
|
-
authStore.state.isAuthorized =
|
|
33256
|
-
this.authOpen = !authStore.state.isAuthorized;
|
|
33255
|
+
authStore.state.isAuthorized = (localStorage.getItem('isAuthorized')) === 'true';
|
|
33257
33256
|
}
|
|
33258
33257
|
return authStore.state.isAuthorized;
|
|
33259
33258
|
}
|
|
@@ -33286,7 +33285,9 @@ let EzpPrinting = class {
|
|
|
33286
33285
|
}
|
|
33287
33286
|
sendCodeToParentWindow();
|
|
33288
33287
|
initi18n(this.language);
|
|
33289
|
-
this.checkAuth()
|
|
33288
|
+
this.checkAuth().then(() => {
|
|
33289
|
+
this.authOpen = !authStore.state.isAuthorized;
|
|
33290
|
+
});
|
|
33290
33291
|
}
|
|
33291
33292
|
componentDidLoad() {
|
|
33292
33293
|
this.refreshTokensPeriodically(1800);
|
|
@@ -135,19 +135,19 @@ export class EzpPrinting {
|
|
|
135
135
|
async checkAuth() {
|
|
136
136
|
const printService = new EzpPrintService(this.redirecturi, this.clientid);
|
|
137
137
|
let accessToken = authStore.state.accessToken;
|
|
138
|
-
printService.getConfig(authStore.state.accessToken)
|
|
138
|
+
await printService.getConfig(authStore.state.accessToken)
|
|
139
139
|
.then((response) => {
|
|
140
140
|
if (response.ok) {
|
|
141
141
|
authStore.state.isAuthorized = true;
|
|
142
142
|
}
|
|
143
143
|
if (!response.ok) {
|
|
144
|
-
authStore.state.isAuthorized =
|
|
144
|
+
authStore.state.isAuthorized = false;
|
|
145
145
|
throw new Error('http status ' + response.status);
|
|
146
146
|
}
|
|
147
147
|
})
|
|
148
148
|
.catch(() => {
|
|
149
149
|
authStore.state.isAuthorized = false;
|
|
150
|
-
localStorage.setItem('isAuthorized',
|
|
150
|
+
localStorage.setItem('isAuthorized', authStore.state.isAuthorized.toString());
|
|
151
151
|
return false;
|
|
152
152
|
});
|
|
153
153
|
if (accessToken === '') {
|
|
@@ -155,8 +155,7 @@ export class EzpPrinting {
|
|
|
155
155
|
authStore.state.accessToken = accessToken;
|
|
156
156
|
}
|
|
157
157
|
if (localStorage.getItem('isAuthorized')) {
|
|
158
|
-
authStore.state.isAuthorized =
|
|
159
|
-
this.authOpen = !authStore.state.isAuthorized;
|
|
158
|
+
authStore.state.isAuthorized = (localStorage.getItem('isAuthorized')) === 'true';
|
|
160
159
|
}
|
|
161
160
|
return authStore.state.isAuthorized;
|
|
162
161
|
}
|
|
@@ -189,7 +188,9 @@ export class EzpPrinting {
|
|
|
189
188
|
}
|
|
190
189
|
sendCodeToParentWindow();
|
|
191
190
|
initi18n(this.language);
|
|
192
|
-
this.checkAuth()
|
|
191
|
+
this.checkAuth().then(() => {
|
|
192
|
+
this.authOpen = !authStore.state.isAuthorized;
|
|
193
|
+
});
|
|
193
194
|
}
|
|
194
195
|
componentDidLoad() {
|
|
195
196
|
this.refreshTokensPeriodically(1800);
|
|
@@ -33257,19 +33257,19 @@ let EzpPrinting$1 = class extends HTMLElement {
|
|
|
33257
33257
|
async checkAuth() {
|
|
33258
33258
|
const printService = new EzpPrintService(this.redirecturi, this.clientid);
|
|
33259
33259
|
let accessToken = authStore.state.accessToken;
|
|
33260
|
-
printService.getConfig(authStore.state.accessToken)
|
|
33260
|
+
await printService.getConfig(authStore.state.accessToken)
|
|
33261
33261
|
.then((response) => {
|
|
33262
33262
|
if (response.ok) {
|
|
33263
33263
|
authStore.state.isAuthorized = true;
|
|
33264
33264
|
}
|
|
33265
33265
|
if (!response.ok) {
|
|
33266
|
-
authStore.state.isAuthorized =
|
|
33266
|
+
authStore.state.isAuthorized = false;
|
|
33267
33267
|
throw new Error('http status ' + response.status);
|
|
33268
33268
|
}
|
|
33269
33269
|
})
|
|
33270
33270
|
.catch(() => {
|
|
33271
33271
|
authStore.state.isAuthorized = false;
|
|
33272
|
-
localStorage.setItem('isAuthorized',
|
|
33272
|
+
localStorage.setItem('isAuthorized', authStore.state.isAuthorized.toString());
|
|
33273
33273
|
return false;
|
|
33274
33274
|
});
|
|
33275
33275
|
if (accessToken === '') {
|
|
@@ -33277,8 +33277,7 @@ let EzpPrinting$1 = class extends HTMLElement {
|
|
|
33277
33277
|
authStore.state.accessToken = accessToken;
|
|
33278
33278
|
}
|
|
33279
33279
|
if (localStorage.getItem('isAuthorized')) {
|
|
33280
|
-
authStore.state.isAuthorized =
|
|
33281
|
-
this.authOpen = !authStore.state.isAuthorized;
|
|
33280
|
+
authStore.state.isAuthorized = (localStorage.getItem('isAuthorized')) === 'true';
|
|
33282
33281
|
}
|
|
33283
33282
|
return authStore.state.isAuthorized;
|
|
33284
33283
|
}
|
|
@@ -33311,7 +33310,9 @@ let EzpPrinting$1 = class extends HTMLElement {
|
|
|
33311
33310
|
}
|
|
33312
33311
|
sendCodeToParentWindow();
|
|
33313
33312
|
initi18n(this.language);
|
|
33314
|
-
this.checkAuth()
|
|
33313
|
+
this.checkAuth().then(() => {
|
|
33314
|
+
this.authOpen = !authStore.state.isAuthorized;
|
|
33315
|
+
});
|
|
33315
33316
|
}
|
|
33316
33317
|
componentDidLoad() {
|
|
33317
33318
|
this.refreshTokensPeriodically(1800);
|
|
@@ -33228,19 +33228,19 @@ let EzpPrinting = class {
|
|
|
33228
33228
|
async checkAuth() {
|
|
33229
33229
|
const printService = new EzpPrintService(this.redirecturi, this.clientid);
|
|
33230
33230
|
let accessToken = authStore.state.accessToken;
|
|
33231
|
-
printService.getConfig(authStore.state.accessToken)
|
|
33231
|
+
await printService.getConfig(authStore.state.accessToken)
|
|
33232
33232
|
.then((response) => {
|
|
33233
33233
|
if (response.ok) {
|
|
33234
33234
|
authStore.state.isAuthorized = true;
|
|
33235
33235
|
}
|
|
33236
33236
|
if (!response.ok) {
|
|
33237
|
-
authStore.state.isAuthorized =
|
|
33237
|
+
authStore.state.isAuthorized = false;
|
|
33238
33238
|
throw new Error('http status ' + response.status);
|
|
33239
33239
|
}
|
|
33240
33240
|
})
|
|
33241
33241
|
.catch(() => {
|
|
33242
33242
|
authStore.state.isAuthorized = false;
|
|
33243
|
-
localStorage.setItem('isAuthorized',
|
|
33243
|
+
localStorage.setItem('isAuthorized', authStore.state.isAuthorized.toString());
|
|
33244
33244
|
return false;
|
|
33245
33245
|
});
|
|
33246
33246
|
if (accessToken === '') {
|
|
@@ -33248,8 +33248,7 @@ let EzpPrinting = class {
|
|
|
33248
33248
|
authStore.state.accessToken = accessToken;
|
|
33249
33249
|
}
|
|
33250
33250
|
if (localStorage.getItem('isAuthorized')) {
|
|
33251
|
-
authStore.state.isAuthorized =
|
|
33252
|
-
this.authOpen = !authStore.state.isAuthorized;
|
|
33251
|
+
authStore.state.isAuthorized = (localStorage.getItem('isAuthorized')) === 'true';
|
|
33253
33252
|
}
|
|
33254
33253
|
return authStore.state.isAuthorized;
|
|
33255
33254
|
}
|
|
@@ -33282,7 +33281,9 @@ let EzpPrinting = class {
|
|
|
33282
33281
|
}
|
|
33283
33282
|
sendCodeToParentWindow();
|
|
33284
33283
|
initi18n(this.language);
|
|
33285
|
-
this.checkAuth()
|
|
33284
|
+
this.checkAuth().then(() => {
|
|
33285
|
+
this.authOpen = !authStore.state.isAuthorized;
|
|
33286
|
+
});
|
|
33286
33287
|
}
|
|
33287
33288
|
componentDidLoad() {
|
|
33288
33289
|
this.refreshTokensPeriodically(1800);
|