@astral/features 3.121.4 → 3.121.6
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.
|
@@ -44,9 +44,11 @@ export class WorkspaceSetupService {
|
|
|
44
44
|
let resultInfo = {};
|
|
45
45
|
try {
|
|
46
46
|
resultInfo = yield getSystemInfo();
|
|
47
|
+
this.isPluginInstalled = true;
|
|
47
48
|
}
|
|
48
49
|
catch (error) {
|
|
49
50
|
const pluginError = error;
|
|
51
|
+
this.isPluginInstalled = true;
|
|
50
52
|
switch (pluginError.code) {
|
|
51
53
|
case PLUGIN_NOT_INSTALLED_CODE:
|
|
52
54
|
case PLUGIN_NOT_INITIALIZED_CODE: {
|
|
@@ -63,7 +65,6 @@ export class WorkspaceSetupService {
|
|
|
63
65
|
}
|
|
64
66
|
}
|
|
65
67
|
finally {
|
|
66
|
-
this.isPluginInstalled = resultInfo.cryptoProInstalled;
|
|
67
68
|
this.hasCryptoProvider = Boolean((_a = resultInfo.cryptoProviderName) === null || _a === void 0 ? void 0 : _a.length);
|
|
68
69
|
this.cspVersion = resultInfo.cspVersion;
|
|
69
70
|
this.hasErrors = !(this.isPluginInstalled && this.hasCryptoProvider);
|
|
@@ -47,9 +47,11 @@ class WorkspaceSetupService {
|
|
|
47
47
|
let resultInfo = {};
|
|
48
48
|
try {
|
|
49
49
|
resultInfo = yield (0, cryptopro_cades_1.getSystemInfo)();
|
|
50
|
+
this.isPluginInstalled = true;
|
|
50
51
|
}
|
|
51
52
|
catch (error) {
|
|
52
53
|
const pluginError = error;
|
|
54
|
+
this.isPluginInstalled = true;
|
|
53
55
|
switch (pluginError.code) {
|
|
54
56
|
case constants_1.PLUGIN_NOT_INSTALLED_CODE:
|
|
55
57
|
case constants_1.PLUGIN_NOT_INITIALIZED_CODE: {
|
|
@@ -66,7 +68,6 @@ class WorkspaceSetupService {
|
|
|
66
68
|
}
|
|
67
69
|
}
|
|
68
70
|
finally {
|
|
69
|
-
this.isPluginInstalled = resultInfo.cryptoProInstalled;
|
|
70
71
|
this.hasCryptoProvider = Boolean((_a = resultInfo.cryptoProviderName) === null || _a === void 0 ? void 0 : _a.length);
|
|
71
72
|
this.cspVersion = resultInfo.cspVersion;
|
|
72
73
|
this.hasErrors = !(this.isPluginInstalled && this.hasCryptoProvider);
|
package/package.json
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
"name": "@astral/features",
|
|
3
3
|
"browser": "./index.js",
|
|
4
4
|
"main": "./node/index.js",
|
|
5
|
-
"version": "3.121.
|
|
5
|
+
"version": "3.121.6",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@astral/ui": "3.121.
|
|
7
|
+
"@astral/ui": "3.121.6",
|
|
8
8
|
"mobx": "^6.8.0",
|
|
9
9
|
"mobx-react-lite": "^3.4.0",
|
|
10
10
|
"@astral/cryptopro-cades": "^1.5.1"
|