• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pustart / crypto-pro-csp / 17470191047

04 Sep 2025 04:17PM UTC coverage: 79.504%. First build
17470191047

Pull #8

github

web-flow
Merge 5fe6ffb4f into c5bb2bb7e
Pull Request #8: develop 3.0.0 into master

200 of 308 branches covered (64.94%)

Branch coverage included in aggregate %.

158 of 230 new or added lines in 14 files covered. (68.7%)

537 of 619 relevant lines covered (86.75%)

10.63 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

81.82
/src/api/getSystemInfo.ts
1
import { _afterPluginsLoaded } from '../helpers/_afterPluginsLoaded';
2✔
2
import { _extractMeaningfulErrorMessage } from '../helpers/_extractMeaningfulErrorMessage';
2✔
3

4
export interface SystemInfo {
5
  cadesVersion: string;
6
  cspVersion: string;
7
}
8

9
/**
10
 * Предоставляет информацию о системе
11
 *
12
 * @returns информацию о CSP и плагине
13
 */
14
export const getSystemInfo = _afterPluginsLoaded(
2✔
15
  (): SystemInfo => {
16
    const { cadesplugin } = window;
2✔
17

18
    const sysInfo = {
2✔
19
      cadesVersion: null,
20
      cspVersion: null,
21
    };
22

23
    return cadesplugin.async_spawn(function* getSystemInfo() {
2✔
24
      let cadesAbout;
25
      try {
26
        cadesAbout = yield cadesplugin.CreateObjectAsync('CAdESCOM.About');
2✔
27

28
        sysInfo.cadesVersion = yield cadesAbout.PluginVersion;
2✔
29
        sysInfo.cspVersion = yield cadesAbout.CSPVersion();
2✔
30

31
        if (!sysInfo.cadesVersion) {
2✔
32
          sysInfo.cadesVersion = yield cadesAbout.Version;
2✔
33
        }
34

35
        sysInfo.cadesVersion = yield sysInfo.cadesVersion.toString();
2✔
36
        sysInfo.cspVersion = yield sysInfo.cspVersion.toString();
2✔
37
      } catch (error) {
NEW
38
        console.error(error);
×
39

NEW
40
        throw new Error(_extractMeaningfulErrorMessage(error) || 'Ошибка при получении информации о системе');
×
41
      }
42

43
      return sysInfo;
2✔
44
    });
45
  },
46
);
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc