@ezeep/ezeep-js 1.0.200 → 1.0.203
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 +6 -4
- package/dist/collection/components/ezp-printing/ezp-printing.js +6 -4
- package/dist/custom-elements/index.js +6 -4
- package/dist/esm/ezp-auth_14.entry.js +6 -4
- 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-db4d0f02.entry.js → p-2814289f.entry.js} +1 -1
- package/dist/ezeep/{p-5f059c21.system.entry.js → p-8d8abc90.system.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-db4d0f02.entry.js → p-2814289f.entry.js} +1 -1
- package/www/build/{p-5f059c21.system.entry.js → p-8d8abc90.system.entry.js} +1 -1
|
@@ -33232,18 +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 = false;
|
|
33241
33242
|
throw new Error('http status ' + response.status);
|
|
33242
33243
|
}
|
|
33243
33244
|
})
|
|
33244
33245
|
.catch(() => {
|
|
33245
33246
|
authStore.state.isAuthorized = false;
|
|
33246
|
-
localStorage.setItem('isAuthorized',
|
|
33247
|
+
localStorage.setItem('isAuthorized', authStore.state.isAuthorized.toString());
|
|
33247
33248
|
return false;
|
|
33248
33249
|
});
|
|
33249
33250
|
if (accessToken === '') {
|
|
@@ -33252,7 +33253,6 @@ let EzpPrinting = class {
|
|
|
33252
33253
|
}
|
|
33253
33254
|
if (localStorage.getItem('isAuthorized')) {
|
|
33254
33255
|
authStore.state.isAuthorized = !!localStorage.getItem('isAuthorized');
|
|
33255
|
-
this.authOpen = !authStore.state.isAuthorized;
|
|
33256
33256
|
}
|
|
33257
33257
|
return authStore.state.isAuthorized;
|
|
33258
33258
|
}
|
|
@@ -33285,7 +33285,9 @@ let EzpPrinting = class {
|
|
|
33285
33285
|
}
|
|
33286
33286
|
sendCodeToParentWindow();
|
|
33287
33287
|
initi18n(this.language);
|
|
33288
|
-
this.checkAuth()
|
|
33288
|
+
this.checkAuth().then(() => {
|
|
33289
|
+
this.authOpen = !authStore.state.isAuthorized;
|
|
33290
|
+
});
|
|
33289
33291
|
}
|
|
33290
33292
|
componentDidLoad() {
|
|
33291
33293
|
this.refreshTokensPeriodically(1800);
|
|
@@ -135,18 +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 = false;
|
|
144
145
|
throw new Error('http status ' + response.status);
|
|
145
146
|
}
|
|
146
147
|
})
|
|
147
148
|
.catch(() => {
|
|
148
149
|
authStore.state.isAuthorized = false;
|
|
149
|
-
localStorage.setItem('isAuthorized',
|
|
150
|
+
localStorage.setItem('isAuthorized', authStore.state.isAuthorized.toString());
|
|
150
151
|
return false;
|
|
151
152
|
});
|
|
152
153
|
if (accessToken === '') {
|
|
@@ -155,7 +156,6 @@ export class EzpPrinting {
|
|
|
155
156
|
}
|
|
156
157
|
if (localStorage.getItem('isAuthorized')) {
|
|
157
158
|
authStore.state.isAuthorized = !!localStorage.getItem('isAuthorized');
|
|
158
|
-
this.authOpen = !authStore.state.isAuthorized;
|
|
159
159
|
}
|
|
160
160
|
return authStore.state.isAuthorized;
|
|
161
161
|
}
|
|
@@ -188,7 +188,9 @@ export class EzpPrinting {
|
|
|
188
188
|
}
|
|
189
189
|
sendCodeToParentWindow();
|
|
190
190
|
initi18n(this.language);
|
|
191
|
-
this.checkAuth()
|
|
191
|
+
this.checkAuth().then(() => {
|
|
192
|
+
this.authOpen = !authStore.state.isAuthorized;
|
|
193
|
+
});
|
|
192
194
|
}
|
|
193
195
|
componentDidLoad() {
|
|
194
196
|
this.refreshTokensPeriodically(1800);
|
|
@@ -33257,18 +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 = false;
|
|
33266
33267
|
throw new Error('http status ' + response.status);
|
|
33267
33268
|
}
|
|
33268
33269
|
})
|
|
33269
33270
|
.catch(() => {
|
|
33270
33271
|
authStore.state.isAuthorized = false;
|
|
33271
|
-
localStorage.setItem('isAuthorized',
|
|
33272
|
+
localStorage.setItem('isAuthorized', authStore.state.isAuthorized.toString());
|
|
33272
33273
|
return false;
|
|
33273
33274
|
});
|
|
33274
33275
|
if (accessToken === '') {
|
|
@@ -33277,7 +33278,6 @@ let EzpPrinting$1 = class extends HTMLElement {
|
|
|
33277
33278
|
}
|
|
33278
33279
|
if (localStorage.getItem('isAuthorized')) {
|
|
33279
33280
|
authStore.state.isAuthorized = !!localStorage.getItem('isAuthorized');
|
|
33280
|
-
this.authOpen = !authStore.state.isAuthorized;
|
|
33281
33281
|
}
|
|
33282
33282
|
return authStore.state.isAuthorized;
|
|
33283
33283
|
}
|
|
@@ -33310,7 +33310,9 @@ let EzpPrinting$1 = class extends HTMLElement {
|
|
|
33310
33310
|
}
|
|
33311
33311
|
sendCodeToParentWindow();
|
|
33312
33312
|
initi18n(this.language);
|
|
33313
|
-
this.checkAuth()
|
|
33313
|
+
this.checkAuth().then(() => {
|
|
33314
|
+
this.authOpen = !authStore.state.isAuthorized;
|
|
33315
|
+
});
|
|
33314
33316
|
}
|
|
33315
33317
|
componentDidLoad() {
|
|
33316
33318
|
this.refreshTokensPeriodically(1800);
|
|
@@ -33228,18 +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 = false;
|
|
33237
33238
|
throw new Error('http status ' + response.status);
|
|
33238
33239
|
}
|
|
33239
33240
|
})
|
|
33240
33241
|
.catch(() => {
|
|
33241
33242
|
authStore.state.isAuthorized = false;
|
|
33242
|
-
localStorage.setItem('isAuthorized',
|
|
33243
|
+
localStorage.setItem('isAuthorized', authStore.state.isAuthorized.toString());
|
|
33243
33244
|
return false;
|
|
33244
33245
|
});
|
|
33245
33246
|
if (accessToken === '') {
|
|
@@ -33248,7 +33249,6 @@ let EzpPrinting = class {
|
|
|
33248
33249
|
}
|
|
33249
33250
|
if (localStorage.getItem('isAuthorized')) {
|
|
33250
33251
|
authStore.state.isAuthorized = !!localStorage.getItem('isAuthorized');
|
|
33251
|
-
this.authOpen = !authStore.state.isAuthorized;
|
|
33252
33252
|
}
|
|
33253
33253
|
return authStore.state.isAuthorized;
|
|
33254
33254
|
}
|
|
@@ -33281,7 +33281,9 @@ let EzpPrinting = class {
|
|
|
33281
33281
|
}
|
|
33282
33282
|
sendCodeToParentWindow();
|
|
33283
33283
|
initi18n(this.language);
|
|
33284
|
-
this.checkAuth()
|
|
33284
|
+
this.checkAuth().then(() => {
|
|
33285
|
+
this.authOpen = !authStore.state.isAuthorized;
|
|
33286
|
+
});
|
|
33285
33287
|
}
|
|
33286
33288
|
componentDidLoad() {
|
|
33287
33289
|
this.refreshTokensPeriodically(1800);
|