@ezeep/ezeep-js 1.0.205 → 1.0.206
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 +8 -9
- package/dist/collection/components/ezp-printing/ezp-printing.js +8 -9
- package/dist/custom-elements/index.js +8 -9
- package/dist/esm/ezp-auth_14.entry.js +8 -9
- 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-a9f7d947.entry.js → p-64199b42.entry.js} +1 -1
- package/dist/ezeep/{p-6a1b29f3.system.entry.js → p-cfaa99a0.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-a9f7d947.entry.js → p-64199b42.entry.js} +1 -1
- package/www/build/{p-6a1b29f3.system.entry.js → p-cfaa99a0.system.entry.js} +1 -1
|
@@ -33232,6 +33232,13 @@ 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
|
+
if (accessToken === '') {
|
|
33236
|
+
accessToken = localStorage.getItem('access_token');
|
|
33237
|
+
authStore.state.accessToken = accessToken;
|
|
33238
|
+
}
|
|
33239
|
+
if (localStorage.getItem('isAuthorized')) {
|
|
33240
|
+
authStore.state.isAuthorized = (localStorage.getItem('isAuthorized')) === 'true';
|
|
33241
|
+
}
|
|
33235
33242
|
await printService.getConfig(authStore.state.accessToken)
|
|
33236
33243
|
.then((response) => {
|
|
33237
33244
|
if (response.ok) {
|
|
@@ -33244,16 +33251,8 @@ let EzpPrinting = class {
|
|
|
33244
33251
|
})
|
|
33245
33252
|
.catch(() => {
|
|
33246
33253
|
authStore.state.isAuthorized = false;
|
|
33247
|
-
localStorage.setItem('isAuthorized', authStore.state.isAuthorized.toString());
|
|
33248
|
-
return false;
|
|
33249
33254
|
});
|
|
33250
|
-
|
|
33251
|
-
accessToken = localStorage.getItem('access_token');
|
|
33252
|
-
authStore.state.accessToken = accessToken;
|
|
33253
|
-
}
|
|
33254
|
-
if (localStorage.getItem('isAuthorized')) {
|
|
33255
|
-
authStore.state.isAuthorized = (localStorage.getItem('isAuthorized')) === 'true';
|
|
33256
|
-
}
|
|
33255
|
+
localStorage.setItem('isAuthorized', authStore.state.isAuthorized.toString());
|
|
33257
33256
|
return authStore.state.isAuthorized;
|
|
33258
33257
|
}
|
|
33259
33258
|
refreshTokensPeriodically(seconds) {
|
|
@@ -135,6 +135,13 @@ 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
|
+
if (accessToken === '') {
|
|
139
|
+
accessToken = localStorage.getItem('access_token');
|
|
140
|
+
authStore.state.accessToken = accessToken;
|
|
141
|
+
}
|
|
142
|
+
if (localStorage.getItem('isAuthorized')) {
|
|
143
|
+
authStore.state.isAuthorized = (localStorage.getItem('isAuthorized')) === 'true';
|
|
144
|
+
}
|
|
138
145
|
await printService.getConfig(authStore.state.accessToken)
|
|
139
146
|
.then((response) => {
|
|
140
147
|
if (response.ok) {
|
|
@@ -147,16 +154,8 @@ export class EzpPrinting {
|
|
|
147
154
|
})
|
|
148
155
|
.catch(() => {
|
|
149
156
|
authStore.state.isAuthorized = false;
|
|
150
|
-
localStorage.setItem('isAuthorized', authStore.state.isAuthorized.toString());
|
|
151
|
-
return false;
|
|
152
157
|
});
|
|
153
|
-
|
|
154
|
-
accessToken = localStorage.getItem('access_token');
|
|
155
|
-
authStore.state.accessToken = accessToken;
|
|
156
|
-
}
|
|
157
|
-
if (localStorage.getItem('isAuthorized')) {
|
|
158
|
-
authStore.state.isAuthorized = (localStorage.getItem('isAuthorized')) === 'true';
|
|
159
|
-
}
|
|
158
|
+
localStorage.setItem('isAuthorized', authStore.state.isAuthorized.toString());
|
|
160
159
|
return authStore.state.isAuthorized;
|
|
161
160
|
}
|
|
162
161
|
refreshTokensPeriodically(seconds) {
|
|
@@ -33257,6 +33257,13 @@ 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
|
+
if (accessToken === '') {
|
|
33261
|
+
accessToken = localStorage.getItem('access_token');
|
|
33262
|
+
authStore.state.accessToken = accessToken;
|
|
33263
|
+
}
|
|
33264
|
+
if (localStorage.getItem('isAuthorized')) {
|
|
33265
|
+
authStore.state.isAuthorized = (localStorage.getItem('isAuthorized')) === 'true';
|
|
33266
|
+
}
|
|
33260
33267
|
await printService.getConfig(authStore.state.accessToken)
|
|
33261
33268
|
.then((response) => {
|
|
33262
33269
|
if (response.ok) {
|
|
@@ -33269,16 +33276,8 @@ let EzpPrinting$1 = class extends HTMLElement {
|
|
|
33269
33276
|
})
|
|
33270
33277
|
.catch(() => {
|
|
33271
33278
|
authStore.state.isAuthorized = false;
|
|
33272
|
-
localStorage.setItem('isAuthorized', authStore.state.isAuthorized.toString());
|
|
33273
|
-
return false;
|
|
33274
33279
|
});
|
|
33275
|
-
|
|
33276
|
-
accessToken = localStorage.getItem('access_token');
|
|
33277
|
-
authStore.state.accessToken = accessToken;
|
|
33278
|
-
}
|
|
33279
|
-
if (localStorage.getItem('isAuthorized')) {
|
|
33280
|
-
authStore.state.isAuthorized = (localStorage.getItem('isAuthorized')) === 'true';
|
|
33281
|
-
}
|
|
33280
|
+
localStorage.setItem('isAuthorized', authStore.state.isAuthorized.toString());
|
|
33282
33281
|
return authStore.state.isAuthorized;
|
|
33283
33282
|
}
|
|
33284
33283
|
refreshTokensPeriodically(seconds) {
|
|
@@ -33228,6 +33228,13 @@ 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
|
+
if (accessToken === '') {
|
|
33232
|
+
accessToken = localStorage.getItem('access_token');
|
|
33233
|
+
authStore.state.accessToken = accessToken;
|
|
33234
|
+
}
|
|
33235
|
+
if (localStorage.getItem('isAuthorized')) {
|
|
33236
|
+
authStore.state.isAuthorized = (localStorage.getItem('isAuthorized')) === 'true';
|
|
33237
|
+
}
|
|
33231
33238
|
await printService.getConfig(authStore.state.accessToken)
|
|
33232
33239
|
.then((response) => {
|
|
33233
33240
|
if (response.ok) {
|
|
@@ -33240,16 +33247,8 @@ let EzpPrinting = class {
|
|
|
33240
33247
|
})
|
|
33241
33248
|
.catch(() => {
|
|
33242
33249
|
authStore.state.isAuthorized = false;
|
|
33243
|
-
localStorage.setItem('isAuthorized', authStore.state.isAuthorized.toString());
|
|
33244
|
-
return false;
|
|
33245
33250
|
});
|
|
33246
|
-
|
|
33247
|
-
accessToken = localStorage.getItem('access_token');
|
|
33248
|
-
authStore.state.accessToken = accessToken;
|
|
33249
|
-
}
|
|
33250
|
-
if (localStorage.getItem('isAuthorized')) {
|
|
33251
|
-
authStore.state.isAuthorized = (localStorage.getItem('isAuthorized')) === 'true';
|
|
33252
|
-
}
|
|
33251
|
+
localStorage.setItem('isAuthorized', authStore.state.isAuthorized.toString());
|
|
33253
33252
|
return authStore.state.isAuthorized;
|
|
33254
33253
|
}
|
|
33255
33254
|
refreshTokensPeriodically(seconds) {
|