Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

u2f-api

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

u2f-api - npm Package Compare versions

Comparing version 1.0.10 to 1.0.11

9

dist/lib/u2f-api.js

@@ -5,6 +5,9 @@ 'use strict';

// Feature detection (yes really)
// For IE and Edge detection, see https://stackoverflow.com/questions/31757852#31757969
// and https://stackoverflow.com/questions/56360225#56361977
var isBrowser = (typeof navigator !== 'undefined') && !!navigator.userAgent;
var isSafari = isBrowser && navigator.userAgent.match(/Safari\//)
&& !navigator.userAgent.match(/Chrome\//);
var isEDGE = isBrowser && navigator.userAgent.match(/Edge\/1[2345]/);
var isEDGE = isBrowser && /(Edge\/)|(edg\/)/i.test(navigator.userAgent);
var isIE = isBrowser && /(MSIE 9|MSIE 10|rv:11.0)/i.test(navigator.userAgent);
var _backend = null;

@@ -29,4 +32,4 @@ function getBackend() {

return resolve({ u2f: window.u2f });
if (isEDGE)
// We don't want to check for Google's extension hack on EDGE
if (isEDGE || isIE)
// We don't want to check for Google's extension hack on EDGE & IE
// as it'll cause trouble (popups, etc)

@@ -33,0 +36,0 @@ return notSupported();

@@ -178,3 +178,4 @@ 'use strict';

return function () { return __awaiter(_this, void 0, void 0, function () {
var _a, dom, mock, gmp, api;
var dom, mock, gmp, api;
var _a;
return __generator(this, function (_b) {

@@ -181,0 +182,0 @@ switch (_b.label) {

@@ -5,3 +5,3 @@ {

"license": "MIT",
"version": "1.0.10",
"version": "1.0.11",
"author": "Gustaf Räntilä <g.rantila@gmail.com>",

@@ -45,3 +45,3 @@ "repository": {

"jsdom": "11.x",
"mocha": "5.x",
"mocha": "6.x",
"pre-commit": "1.x",

@@ -48,0 +48,0 @@ "rimraf": "2.x",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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