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

@simplewebauthn/typescript-types

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@simplewebauthn/typescript-types - npm Package Compare versions

Comparing version 5.0.0 to 5.2.0

7

dist/dom.d.ts

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

/** Available only in secure contexts. */
export interface AuthenticatorAssertionResponse extends AuthenticatorResponse {

@@ -6,2 +7,3 @@ readonly authenticatorData: ArrayBuffer;

}
/** Available only in secure contexts. */
export interface AuthenticatorAttestationResponse extends AuthenticatorResponse {

@@ -27,2 +29,3 @@ readonly attestationObject: ArrayBuffer;

}
/** Available only in secure contexts. */
export interface PublicKeyCredential extends Credential {

@@ -65,2 +68,3 @@ readonly rawId: ArrayBuffer;

}
/** Available only in secure contexts. */
export interface AuthenticatorResponse {

@@ -72,2 +76,3 @@ readonly clientDataJSON: ArrayBuffer;

}
/** Available only in secure contexts. */
export interface Credential {

@@ -84,3 +89,2 @@ readonly id: string;

export declare type AttestationConveyancePreference = "direct" | "enterprise" | "indirect" | "none";
export declare type AuthenticatorTransport = "ble" | "internal" | "nfc" | "usb";
export declare type COSEAlgorithmIdentifier = number;

@@ -92,3 +96,4 @@ export declare type UserVerificationRequirement = "discouraged" | "preferred" | "required";

export declare type BufferSource = ArrayBufferView | ArrayBuffer;
export declare type AuthenticatorTransport = "ble" | "internal" | "nfc" | "usb";
export declare type PublicKeyCredentialType = "public-key";
export declare type UvmEntry = number[];

@@ -6,3 +6,3 @@ /**

/// <reference types="node" />
import type { AuthenticatorAssertionResponse, AuthenticatorAttestationResponse, AuthenticatorTransport, COSEAlgorithmIdentifier, PublicKeyCredential, PublicKeyCredentialCreationOptions, PublicKeyCredentialDescriptor, PublicKeyCredentialRequestOptions, PublicKeyCredentialUserEntity, AuthenticationExtensionsClientInputs, AuthenticationExtensionsClientOutputs } from './dom';
import type { AuthenticatorAssertionResponse, AuthenticatorAttestationResponse, COSEAlgorithmIdentifier, PublicKeyCredential, PublicKeyCredentialCreationOptions, PublicKeyCredentialDescriptor, PublicKeyCredentialRequestOptions, PublicKeyCredentialUserEntity, AuthenticationExtensionsClientInputs, AuthenticationExtensionsClientOutputs } from './dom';
export * from './dom';

@@ -28,4 +28,5 @@ /**

}
export interface PublicKeyCredentialDescriptorJSON extends Omit<PublicKeyCredentialDescriptor, 'id'> {
export interface PublicKeyCredentialDescriptorJSON extends Omit<PublicKeyCredentialDescriptor, 'id' | 'transports'> {
id: Base64URLString;
transports?: AuthenticatorTransport[];
}

@@ -112,1 +113,12 @@ export interface PublicKeyCredentialUserEntityJSON extends Omit<PublicKeyCredentialUserEntity, 'id'> {

}
/**
* Communication methods by which an authenticator can talk with the browser to perform WebAuthn
* registration and authentication.
*/
export declare type AuthenticatorTransport = "ble" | "internal" | "nfc" | "usb" | "cable";
/**
* The two types of credentials as defined by bit 3 ("Backup Eligibility") in authenticator data:
* - `"singleDevice"` credentials will never be backed up
* - `"multiDevice"` credentials can be backed up
*/
export declare type CredentialDeviceType = 'singleDevice' | 'multiDevice';

1

extract-dom-types.ts

@@ -23,3 +23,2 @@ // n.b. ts-morph is a sibling devDependency of typescript, so that the module

'AuthenticatorAttestationResponse',
'AuthenticatorTransport',
'AuthenticationExtensionsClientInputs',

@@ -26,0 +25,0 @@ 'AuthenticationExtensionsClientOutputs',

{
"name": "@simplewebauthn/typescript-types",
"version": "5.0.0",
"version": "5.2.0",
"description": "TypeScript types used by the @simplewebauthn series of libraries",

@@ -29,3 +29,3 @@ "main": "dist/index.js",

],
"gitHead": "7628494bedac039ce7ab9c5fad6bf153c99b2d34"
"gitHead": "c93517488b6efec5c72ff212b834f4c6138ad494"
}
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