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.11 to 1.1.0

bundle.js

4

dist/lib/generated-google-u2f-api.js

@@ -10,3 +10,3 @@ //Copyright 2014-2015 Google Inc. All rights reserved.

*/
'use strict';
// 'use strict';

@@ -20,3 +20,3 @@

module.exports = u2f; // Adaptation for u2f-api package
module.exports.chromeApi = u2f; // Adaptation for u2f-api package

@@ -23,0 +23,0 @@ /**

'use strict';
Object.defineProperty(exports, "__esModule", { value: true });
var chromeApi = require("./generated-google-u2f-api");
// @ts-ignore
var generated_google_u2f_api_1 = require("./generated-google-u2f-api");
// Feature detection (yes really)

@@ -42,5 +43,5 @@ // For IE and Edge detection, see https://stackoverflow.com/questions/31757852#31757969

// Test for google extension support
chromeApi.isSupported(function (ok) {
generated_google_u2f_api_1.chromeApi.isSupported(function (ok) {
if (ok)
resolve({ u2f: chromeApi });
resolve({ u2f: generated_google_u2f_api_1.chromeApi });
else

@@ -74,3 +75,3 @@ notSupported();

var code = err != null ? err.errorCode : 1; // Default to OTHER_ERROR
var type = exports.ErrorNames['' + code];
var type = exports.ErrorNames[('' + code)];
var error = new Error(msg);

@@ -109,3 +110,3 @@ error.metaData = { type: type, code: code };

timeout = signRequests;
signRequests = null;
signRequests = [];
}

@@ -112,0 +113,0 @@ var _signRequests = arrayify(signRequests);

@@ -1,2 +0,2 @@

'use strict';
"use strict";
var __extends = (this && this.__extends) || (function () {

@@ -70,2 +70,4 @@ var extendStatics = function (d, b) {

function MonkeyPatcher(obj) {
this._values = [];
this._overwrittenValues = [];
this._object = obj;

@@ -72,0 +74,0 @@ this.clear();

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

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

@@ -13,6 +13,9 @@ "repository": {

"files": [
"dist"
"dist",
"bundle.js"
],
"scripts": {
"build": "scripts/build.sh",
"build:lib": "scripts/build.sh",
"build:rollup": "node_modules/.bin/rimraf bundle.js && node_modules/.bin/rollup dist-bundle/index.bundle.js --file bundle.js --format iife",
"build": "yarn build:lib && yarn build:rollup",
"test": "node_modules/.bin/mocha dist/test",

@@ -40,2 +43,3 @@ "buildtest": "npm run build && npm run test",

"devDependencies": {
"@types/chai": "^4.1.7",
"@types/mocha": "5.x",

@@ -50,5 +54,7 @@ "already": "1.x",

"rimraf": "2.x",
"rollup": "^1.17.0",
"semantic-release": "15.x",
"source-map-support": "0.x",
"travis-deploy-once": "5.x",
"ts-node": "^8.3.0",
"typescript": "3.x"

@@ -55,0 +61,0 @@ },

[![npm version][npm-image]][npm-url]
[![downloads][downloads-image]][npm-url]
[![build status][travis-image]][travis-url]

@@ -10,2 +11,4 @@

- 1.1.0
- Can be used [without bundler](#using-without-bundler)
- 1.0.0

@@ -106,3 +109,13 @@ - Support for custom promise libraries removed

#### Using without bundler
`u2f-api` can be used without a bundler (like Webpack). Just include:
```html
<head><script src="https://cdn.jsdelivr.net/npm/u2f-api@latest/bundle.js"></script></head>
```
The functionality will be in the `window.u2fApi` object.
### Registering a passkey

@@ -161,3 +174,4 @@

[npm-url]: https://npmjs.org/package/u2f-api
[downloads-image]: https://img.shields.io/npm/dm/u2f-api.svg
[travis-image]: https://img.shields.io/travis/grantila/u2f-api.svg
[travis-url]: https://travis-ci.org/grantila/u2f-api

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