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

PeculiarVentures / PKI.js / 18678823833

21 Oct 2025 09:08AM UTC coverage: 74.383% (-0.01%) from 74.394%
18678823833

push

github

web-flow
chore: migrate from Yarn to npm (#448)

2419 of 4319 branches covered (56.01%)

6664 of 8959 relevant lines covered (74.38%)

1626.85 hits per line

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

58.33
/src/CryptoEngine/CryptoEngineInit.ts
1
import * as common from "../common";
2✔
2
import { CryptoEngine } from "./CryptoEngine";
2✔
3

4
export function initCryptoEngine() {
2✔
5
  if (typeof globalThis !== "undefined" && "crypto" in globalThis) {
2!
6
    let engineName = "webcrypto";
2✔
7

8
    // Apple Safari support
9
    if ("webkitSubtle" in globalThis.crypto) {
2!
10
      engineName = "safari";
×
11
    }
12

13
    common.setEngine(engineName, new CryptoEngine({ name: engineName, crypto: globalThis.crypto }));
2✔
14
  } else if (typeof crypto !== "undefined" && "webcrypto" in crypto) {
×
15
    // NodeJS ^15
16
    const name = "NodeJS ^15";
×
17
    const nodeCrypto = (crypto as any).webcrypto as Crypto;
×
18
    common.setEngine(name, new CryptoEngine({ name, crypto: nodeCrypto }));
×
19
  }
20

21
}
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