@etsoo/react 1.3.81 → 1.3.82
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/lib/app/ReactApp.js +5 -4
- package/package.json +3 -3
- package/src/app/ReactApp.ts +6 -14
package/lib/app/ReactApp.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CoreApp, createClient } from '@etsoo/appscript';
|
|
2
|
-
import { DomUtils,
|
|
2
|
+
import { DomUtils, WindowStorage } from '@etsoo/shared';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { NotifierMU } from '../mu/NotifierMU';
|
|
5
5
|
import { ProgressCount } from '../mu/ProgressCount';
|
|
@@ -62,13 +62,14 @@ export class ReactApp extends CoreApp {
|
|
|
62
62
|
DomUtils.CountryField,
|
|
63
63
|
DomUtils.CultureField,
|
|
64
64
|
CoreApp.deviceIdField,
|
|
65
|
+
CoreApp.devicePassphraseField,
|
|
65
66
|
CoreApp.headerTokenField,
|
|
66
67
|
CoreApp.serversideDeviceIdField
|
|
67
68
|
], (field, data, index) => {
|
|
68
|
-
if (index > 0 &&
|
|
69
|
+
if (index > 0 &&
|
|
70
|
+
(field === CoreApp.headerTokenField ||
|
|
71
|
+
field === CoreApp.devicePassphraseField)) {
|
|
69
72
|
// Clear passphrase to regenerate the device id
|
|
70
|
-
StorageUtils.setSessionData(CoreApp.devicePassphraseField, undefined);
|
|
71
|
-
console.log('devicePassphraseField', index, StorageUtils.getSessionData(CoreApp.devicePassphraseField));
|
|
72
73
|
// Clear token
|
|
73
74
|
return null;
|
|
74
75
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@etsoo/react",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.82",
|
|
4
4
|
"description": "TypeScript ReactJs framework",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -50,9 +50,9 @@
|
|
|
50
50
|
"@emotion/react": "^11.7.1",
|
|
51
51
|
"@emotion/style": "^0.8.0",
|
|
52
52
|
"@emotion/styled": "^11.6.0",
|
|
53
|
-
"@etsoo/appscript": "^1.1.
|
|
53
|
+
"@etsoo/appscript": "^1.1.99",
|
|
54
54
|
"@etsoo/notificationbase": "^1.0.95",
|
|
55
|
-
"@etsoo/shared": "^1.0.
|
|
55
|
+
"@etsoo/shared": "^1.0.90",
|
|
56
56
|
"@mui/icons-material": "^5.2.5",
|
|
57
57
|
"@mui/material": "^5.2.5",
|
|
58
58
|
"@reach/router": "^1.3.4",
|
package/src/app/ReactApp.ts
CHANGED
|
@@ -202,25 +202,17 @@ export class ReactApp<
|
|
|
202
202
|
DomUtils.CultureField,
|
|
203
203
|
|
|
204
204
|
CoreApp.deviceIdField,
|
|
205
|
+
CoreApp.devicePassphraseField,
|
|
205
206
|
CoreApp.headerTokenField,
|
|
206
207
|
CoreApp.serversideDeviceIdField
|
|
207
208
|
],
|
|
208
209
|
(field, data, index) => {
|
|
209
|
-
if (
|
|
210
|
+
if (
|
|
211
|
+
index > 0 &&
|
|
212
|
+
(field === CoreApp.headerTokenField ||
|
|
213
|
+
field === CoreApp.devicePassphraseField)
|
|
214
|
+
) {
|
|
210
215
|
// Clear passphrase to regenerate the device id
|
|
211
|
-
StorageUtils.setSessionData(
|
|
212
|
-
CoreApp.devicePassphraseField,
|
|
213
|
-
undefined
|
|
214
|
-
);
|
|
215
|
-
|
|
216
|
-
console.log(
|
|
217
|
-
'devicePassphraseField',
|
|
218
|
-
index,
|
|
219
|
-
StorageUtils.getSessionData(
|
|
220
|
-
CoreApp.devicePassphraseField
|
|
221
|
-
)
|
|
222
|
-
);
|
|
223
|
-
|
|
224
216
|
// Clear token
|
|
225
217
|
return null;
|
|
226
218
|
}
|