New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

fido2-lib

Package Overview
Dependencies
Maintainers
2
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fido2-lib - npm Package Compare versions

Comparing version 2.6.7 to 2.6.8

19

lib/certUtils.js

@@ -5,5 +5,20 @@ "use strict";

const pkijs = require("pkijs");
const { Crypto } = require("node-webcrypto-ossl");
const webcrypto = new Crypto();
const envUnified = (typeof window !== "undefined") ? window.env : process.env;
let webcrypto;
if(envUnified.FIDO2LIB_USENATIVECRYPTO) {
// Opt-in to use native crypto, as it depends on the environment and is difficult to test
// NodeJS crypto API is currently in experimental state
console.warn("[FIDO2-LIB] Native crypto is enabled");
if ((typeof self !== "undefined") && "crypto" in self) {
webcrypto = self.crypto;
} else {
webcrypto = require("crypto").webcrypto;
}
} else {
const { Crypto } = require("@peculiar/webcrypto");
webcrypto = new Crypto();
}
const {

@@ -10,0 +25,0 @@ CryptoEngine,

4

package.json
{
"name": "fido2-lib",
"version": "2.6.7",
"version": "2.6.8",
"description": "A library for performing FIDO 2.0 / WebAuthn functionality",

@@ -52,2 +52,3 @@ "main": "index.js",

"dependencies": {
"@peculiar/webcrypto": "^1.2.0",
"asn1js": "^2.0.18",

@@ -58,3 +59,2 @@ "cbor": "^4.0.0",

"node-jose": "^2.0.0",
"node-webcrypto-ossl": "^2.1.3",
"pkijs": "=2.1.58",

@@ -61,0 +61,0 @@ "psl": "^1.1.24",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc