Socket
Socket
Sign inDemoInstall

@github/webauthn-json

Package Overview
Dependencies
0
Maintainers
20
Versions
52
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.2 to 2.1.0

2

dist/bin/main.js

@@ -120,3 +120,3 @@ #!/usr/bin/env node

if (command === "schema") {
const schemaWithVersion = { ...schema, version: "2.0.2" };
const schemaWithVersion = { ...schema, version: "2.1.0" };
console.log(JSON.stringify(schemaWithVersion, null, " "));

@@ -123,0 +123,0 @@ } else {

@@ -1,3 +0,3 @@

export declare type Base64urlString = string;
export type Base64urlString = string;
export declare function base64urlToBuffer(baseurl64String: Base64urlString): ArrayBuffer;
export declare function bufferToBase64url(buffer: ArrayBuffer): Base64urlString;

@@ -9,7 +9,8 @@ import { Base64urlString } from "../base64url";

}
export interface PublicKeyCredentialWithClientExtensionResults extends PublicKeyCredential {
type PublicKeyCredentialWithOptionalAuthenticatorAttachment = Partial<PublicKeyCredential> & Omit<PublicKeyCredential, "authenticatorAttachment">;
export interface PublicKeyCredentialWithClientExtensionResults extends PublicKeyCredentialWithOptionalAuthenticatorAttachment {
authenticatorAttachment?: string | null;
clientExtensionResults?: AuthenticationExtensionsClientOutputsJSON;
}
declare type AuthenticatorTransportJSON = AuthenticatorTransport | "hybrid";
type AuthenticatorTransportJSON = AuthenticatorTransport | "hybrid";
export interface PublicKeyCredentialDescriptorJSON {

@@ -40,3 +41,3 @@ type: PublicKeyCredentialType;

}
declare type ResidentKeyRequirement = "discouraged" | "preferred" | "required";
type ResidentKeyRequirement = "discouraged" | "preferred" | "required";
interface AuthenticatorSelectionCriteriaJSON extends AuthenticatorSelectionCriteria {

@@ -43,0 +44,0 @@ residentKey?: ResidentKeyRequirement;

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

declare type SchemaLeaf = "copy" | "convert";
type SchemaLeaf = "copy" | "convert";
export interface SchemaProperty {

@@ -10,4 +10,4 @@ required: boolean;

}
declare type SchemaArray = [SchemaObject] | [SchemaLeaf];
export declare type Schema = SchemaLeaf | SchemaArray | SchemaObject;
type SchemaArray = [SchemaObject] | [SchemaLeaf];
export type Schema = SchemaLeaf | SchemaArray | SchemaObject;
export {};
{
"name": "@github/webauthn-json",
"version": "2.0.2",
"version": "2.1.0",
"description": "A wrapper for the webauthn API that adapts input/output values to plain JSON with base64url.",

@@ -41,3 +41,3 @@ "author": "GitHub, Inc. <opensource+webauthn-json@github.com>",

"ts-jest": "^29.0.3",
"typescript": "^4.8.4"
"typescript": "^4.9.4"
},

@@ -44,0 +44,0 @@ "scripts": {

@@ -16,4 +16,8 @@ import { Base64urlString } from "../base64url";

type PublicKeyCredentialWithOptionalAuthenticatorAttachment =
Partial<PublicKeyCredential> &
Omit<PublicKeyCredential, "authenticatorAttachment">;
export interface PublicKeyCredentialWithClientExtensionResults
extends PublicKeyCredential {
extends PublicKeyCredentialWithOptionalAuthenticatorAttachment {
authenticatorAttachment?: string | null;

@@ -20,0 +24,0 @@ clientExtensionResults?: AuthenticationExtensionsClientOutputsJSON;

@@ -20,2 +20,6 @@ /**

const unimplemented: any = () => {
throw new Error("unimplemented");
};
describe("webauthn schema", () => {

@@ -71,2 +75,5 @@ test("converts CredentialCreationOptionsJSON", () => {

getTransports: () => ["usb"],
getAuthenticatorData: unimplemented,
getPublicKey: unimplemented,
getPublicKeyAlgorithm: unimplemented,
} as AuthenticatorAttestationResponse,

@@ -114,3 +121,6 @@ getClientExtensionResults: () =>

attestationObject: new Uint8Array([13, 14, 15, 16]),
} as AuthenticatorAttestationResponse,
getAuthenticatorData: unimplemented,
getPublicKey: unimplemented,
getPublicKeyAlgorithm: unimplemented,
} as Omit<AuthenticatorAttestationResponse, "getTransports">,
getClientExtensionResults: () =>

@@ -117,0 +127,0 @@ ({

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc