@etsoo/react 1.3.79 → 1.3.83
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 +8 -1
- package/package.json +3 -3
- package/src/app/ReactApp.ts +16 -2
package/lib/app/ReactApp.js
CHANGED
|
@@ -62,11 +62,18 @@ 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 ||
|
|
72
|
+
CoreApp.serversideDeviceIdField)) {
|
|
73
|
+
// Clear passphrase to regenerate the device id
|
|
74
|
+
// Clear token
|
|
69
75
|
return null;
|
|
76
|
+
}
|
|
70
77
|
return data;
|
|
71
78
|
}), name);
|
|
72
79
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@etsoo/react",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.83",
|
|
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
|
@@ -7,7 +7,12 @@ import {
|
|
|
7
7
|
IUserData
|
|
8
8
|
} from '@etsoo/appscript';
|
|
9
9
|
import { NotificationRenderProps } from '@etsoo/notificationbase';
|
|
10
|
-
import {
|
|
10
|
+
import {
|
|
11
|
+
DataTypes,
|
|
12
|
+
DomUtils,
|
|
13
|
+
StorageUtils,
|
|
14
|
+
WindowStorage
|
|
15
|
+
} from '@etsoo/shared';
|
|
11
16
|
import React from 'react';
|
|
12
17
|
import { NotifierMU } from '../mu/NotifierMU';
|
|
13
18
|
import { ProgressCount } from '../mu/ProgressCount';
|
|
@@ -197,12 +202,21 @@ export class ReactApp<
|
|
|
197
202
|
DomUtils.CultureField,
|
|
198
203
|
|
|
199
204
|
CoreApp.deviceIdField,
|
|
205
|
+
CoreApp.devicePassphraseField,
|
|
200
206
|
CoreApp.headerTokenField,
|
|
201
207
|
CoreApp.serversideDeviceIdField
|
|
202
208
|
],
|
|
203
209
|
(field, data, index) => {
|
|
204
|
-
if (
|
|
210
|
+
if (
|
|
211
|
+
index > 0 &&
|
|
212
|
+
(field === CoreApp.headerTokenField ||
|
|
213
|
+
field === CoreApp.devicePassphraseField ||
|
|
214
|
+
CoreApp.serversideDeviceIdField)
|
|
215
|
+
) {
|
|
216
|
+
// Clear passphrase to regenerate the device id
|
|
217
|
+
// Clear token
|
|
205
218
|
return null;
|
|
219
|
+
}
|
|
206
220
|
return data;
|
|
207
221
|
}
|
|
208
222
|
),
|