Socket
Socket
Sign inDemoInstall

@types/webappsec-credential-management

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/webappsec-credential-management - npm Package Compare versions

Comparing version 0.6.2 to 0.6.3

45

webappsec-credential-management/index.d.ts

@@ -21,13 +21,10 @@ // Type definitions for non-npm package W3C (WebAppSec) Credential Management API Level 1, 0.6

declare function fetch(
input: Request|string,
init?: RequestInit|CMRequestInit):
Promise<Response>;
declare function fetch(input: Request | string, init?: RequestInit | CMRequestInit): Promise<Response>;
interface GlobalFetch {
// variant for navigator.credentials monkey patching
fetch(url: Request|string, init?: CMRequestInit): Promise<Response>;
fetch(url: Request | string, init?: CMRequestInit): Promise<Response>;
}
interface WindowOrWorkerGlobalScope {
fetch(url: Request|string, init?: CMRequestInit): Promise<Response>;
fetch(url: Request | string, init?: CMRequestInit): Promise<Response>;
}

@@ -47,3 +44,3 @@

mode?: string | undefined;
credentials?: PasswordCredential|FederatedCredential|string | undefined;
credentials?: PasswordCredential | FederatedCredential | string | undefined;
cache?: string | undefined;

@@ -79,3 +76,3 @@ redirect?: string | undefined;

*/
get(options?: CredentialRequestOptions): Promise<CredentialType|null>;
get(options?: CredentialRequestOptions): Promise<CredentialType | null>;

@@ -96,3 +93,3 @@ /**

*/
create(options: CredentialCreationOptions): Promise<CredentialType|null>;
create(options: CredentialCreationOptions): Promise<CredentialType | null>;

@@ -134,3 +131,3 @@ /**

type CredentialType = PasswordCredential|FederatedCredential|PublicKeyCredential;
type CredentialType = PasswordCredential | FederatedCredential | PublicKeyCredential;

@@ -178,3 +175,3 @@ /**

// tslint:disable-next-line no-empty-interface
interface SiteBoundCredential extends Credential { }
interface SiteBoundCredential extends Credential {}
declare abstract class SiteBoundCredential {

@@ -185,3 +182,3 @@ /**

*/
readonly name: string|null;
readonly name: string | null;

@@ -194,3 +191,3 @@ /**

*/
readonly iconURL: string|null;
readonly iconURL: string | null;
}

@@ -211,3 +208,3 @@

*/
type CredentialBodyType = FormData|URLSearchParams;
type CredentialBodyType = FormData | URLSearchParams;

@@ -253,3 +250,3 @@ /**

*/
additionalData: CredentialBodyType|null;
additionalData: CredentialBodyType | null;

@@ -291,3 +288,3 @@ /**

*/
readonly protocol: string|null;
readonly protocol: string | null;
}

@@ -339,3 +336,3 @@

*/
type PasswordCredentialInit = PasswordCredentialData|HTMLFormElement;
type PasswordCredentialInit = PasswordCredentialData | HTMLFormElement;

@@ -412,3 +409,3 @@ /**

allowCredentials?: PublicKeyCredentialDescriptor[] | undefined;
userVerification?: "required" | "preferred" | "discouraged" | undefined;
userVerification?: 'required' | 'preferred' | 'discouraged' | undefined;
extensions?: AuthenticationExtensionsClientInputs | undefined;

@@ -444,3 +441,3 @@ }

interface PublicKeyCredentialParameters {
type: "public-key";
type: 'public-key';
alg: number;

@@ -453,5 +450,5 @@ }

interface PublicKeyCredentialDescriptor {
type: "public-key";
type: 'public-key';
id: BufferSource;
transports?: Array<"usb" | "nfc" | "ble" | "internal"> | undefined;
transports?: AuthenticatorTransport[];
}

@@ -463,5 +460,5 @@

interface AuthenticatorSelectionCriteria {
authenticatorAttachment?: "platform" | "cross-platform" | undefined;
authenticatorAttachment?: 'platform' | 'cross-platform' | undefined;
requireResidentKey?: boolean | undefined;
userVerification?: "required" | "preferred" | "discouraged" | undefined;
userVerification?: 'required' | 'preferred' | 'discouraged' | undefined;
}

@@ -513,5 +510,5 @@

interface PublicKeyCredential extends Credential {
readonly type: "public-key";
readonly type: 'public-key';
readonly rawId: ArrayBuffer;
readonly response: AuthenticatorResponse;
}
{
"name": "@types/webappsec-credential-management",
"version": "0.6.2",
"version": "0.6.3",
"description": "TypeScript definitions for W3C (WebAppSec) Credential Management API Level 1,",

@@ -33,4 +33,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/webappsec-credential-management",

"dependencies": {},
"typesPublisherContentHash": "6b9683ba793db218313cdebd4d307dca5001da2b3c11569cf6027c4c66761a08",
"typeScriptVersion": "3.7"
"typesPublisherContentHash": "b1808b4f52a2454eb5c352f95bdfac67afe24a69cf423a226b1ac4b38664c022",
"typeScriptVersion": "4.1"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Fri, 17 Sep 2021 23:01:33 GMT
* Last updated: Mon, 26 Sep 2022 21:03:00 GMT
* Dependencies: none

@@ -14,0 +14,0 @@ * Global values: `FederatedCredential`, `PasswordCredential`, `SiteBoundCredential`, `fetch`

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