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

@simplewebauthn/types

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@simplewebauthn/types - npm Package Compare versions

Comparing version 11.0.0 to 12.0.0

types/dom.d.ts.map

35

package.json
{
"module": "./esm/index.js",
"main": "./script/index.js",
"types": "./types/index.d.ts",
"name": "@simplewebauthn/types",
"version": "11.0.0",
"version": "12.0.0",
"description": "TypeScript types used by the @simplewebauthn series of libraries",
"license": "MIT",
"keywords": [
"typescript",
"webauthn",
"passkeys",
"fido",
"types"
],
"author": "Matthew Miller <matthew@millerti.me>",
"homepage": "https://github.com/MasterKale/SimpleWebAuthn/tree/master/packages/types#readme",
"repository": {

@@ -15,16 +19,9 @@ "type": "git",

},
"homepage": "https://github.com/MasterKale/SimpleWebAuthn/tree/master/packages/types#readme",
"publishConfig": {
"access": "public"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/MasterKale/SimpleWebAuthn/issues"
},
"keywords": [
"typescript",
"webauthn",
"passkeys",
"fido",
"types"
],
"main": "./script/index.js",
"module": "./esm/index.js",
"types": "./types/index.d.ts",
"exports": {

@@ -41,3 +38,7 @@ ".": {

}
}
},
"publishConfig": {
"access": "public"
},
"_generatedBy": "dnt@dev"
}

@@ -5,2 +5,3 @@ # @simplewebauthn/types <!-- omit in toc -->

[![npm (scoped)](https://img.shields.io/npm/v/@simplewebauthn/types?style=for-the-badge&logo=npm)](https://www.npmjs.com/package/@simplewebauthn/types)
[![JSR](https://jsr.io/badges/@simplewebauthn/types?style=for-the-badge)](https://jsr.io/@simplewebauthn/types)

@@ -10,10 +11,11 @@ TypeScript typings for **@simplewebauthn/server** and **@simplewebauthn/browser**

- [Installation](#installation)
- [Node LTS 20.x or higher](#node-lts-20x-or-higher)
- [Deno v1.33.x or higher](#deno-v133x-or-higher)
- [Node LTS 20.x and higher](#node-lts-20x-and-higher)
- [Deno v1.43 and higher](#deno-v143-and-higher)
## Installation
### Node LTS 20.x or higher
This package can be installed from **[NPM](https://www.npmjs.com/package/@simplewebauthn/types)**
and **[JSR](https://jsr.io/@simplewebauthn/types)**:
This package is available on **npm**:
### Node LTS 20.x and higher

@@ -24,8 +26,6 @@ ```sh

### Deno v1.33.x or higher
### Deno v1.43 and higher
It is also available for import into Deno projects from **deno.land/x**:
```ts
import {...} from 'https://deno.land/x/simplewebauthn/deno/types.ts';
```sh
deno add jsr:@simplewebauthn/types
```
/**
* Generated from typescript@5.1.6 typescript/lib/lib.dom.d.ts
* To regenerate, run the following command from the project root:
* npx lerna --scope=@simplewebauthn/types exec -- npm run extract-dom-types
* Generated from typescript@5.6.3
* To regenerate, run the following command from the package root:
* deno task extract-dom-types
*/

@@ -27,4 +27,7 @@ /**

readonly attestationObject: ArrayBuffer;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getAuthenticatorData) */
getAuthenticatorData(): ArrayBuffer;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getPublicKey) */
getPublicKey(): ArrayBuffer | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getPublicKeyAlgorithm) */
getPublicKeyAlgorithm(): COSEAlgorithmIdentifier;

@@ -38,2 +41,3 @@ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getTransports) */

hmacCreateSecret?: boolean;
minPinLength?: boolean;
}

@@ -78,2 +82,3 @@ export interface AuthenticationExtensionsClientOutputs {

export interface PublicKeyCredential extends Credential {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/authenticatorAttachment) */
readonly authenticatorAttachment: string | null;

@@ -151,3 +156,5 @@ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/rawId) */

exportKey(format: Exclude<KeyFormat, "jwk">, key: CryptoKey): Promise<ArrayBuffer>;
exportKey(format: KeyFormat, key: CryptoKey): Promise<ArrayBuffer | JsonWebKey>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey) */
generateKey(algorithm: "Ed25519", extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise<CryptoKeyPair>;
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;

@@ -256,2 +263,6 @@ generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;

}
export interface CryptoKeyPair {
privateKey: CryptoKey;
publicKey: CryptoKey;
}
export interface RsaHashedKeyGenParams extends RsaKeyGenParams {

@@ -263,6 +274,2 @@ hash: HashAlgorithmIdentifier;

}
export interface CryptoKeyPair {
privateKey: CryptoKey;
publicKey: CryptoKey;
}
export interface AesKeyGenParams extends Algorithm {

@@ -320,1 +327,2 @@ length: number;

export type BigInteger = Uint8Array;
//# sourceMappingURL=dom.d.ts.map

@@ -178,1 +178,2 @@ /**

export type CredentialDeviceType = 'singleDevice' | 'multiDevice';
//# sourceMappingURL=index.d.ts.map
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