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.2.0 to 0.3.0

62

webappsec-credential-management/index.d.ts

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

// Type definitions for W3C (WebAppSec) Credential Management API Level 1, 0.2
// Type definitions for W3C (WebAppSec) Credential Management API Level 1, 0.3
// Project: https://github.com/w3c/webappsec-credential-management

@@ -7,3 +7,3 @@ // Definitions by: Iain McGinniss <https://github.com/iainmcgin>

// Spec: http://www.w3.org/TR/2016/WD-credential-management-1-20160425/
// Spec: https://www.w3.org/TR/2017/WD-credential-management-1-20170804

@@ -85,2 +85,9 @@ /* ************************* FETCH MODIFICATIONS *******************************

/**
* Create a {@link Credential} asynchronously.
*
* @see {@link https://www.w3.org/TR/2017/WD-credential-management-1-20170804/#dom-credentialscontainer-create}
*/
create(options: CredentialCreationOptions): Promise<Credential|null>;
/**
* Ask the credential manager to require user mediation before returning

@@ -91,4 +98,18 @@ * credentials for the origin in which the method is called. This might be

* visits.
*
* @deprecated Use {@link preventSilentAccess} instead.
* @see {@link https://www.w3.org/TR/2016/WD-credential-management-1-20160425/#dom-credentialscontainer-requireusermediation}
*/
requireUserMediation(): Promise<void>;
/**
* Ask the credential manager to require user mediation before returning
* credentials for the origin in which the method is called. This might be
* called after a user signs out of a website, for instance, in order to
* ensure that they are not automatically signed back in next time they
* visits.
*
* @see {@link https://www.w3.org/TR/2017/WD-credential-management-1-20170804/#dom-credentialscontainer-preventsilentaccess}
*/
preventSilentAccess(): Promise<void>;
}

@@ -253,2 +274,7 @@

/**
* @see {@link https://www.w3.org/TR/2017/WD-credential-management-1-20170804/#enumdef-credentialmediationrequirement}
*/
type CredentialMediationRequirement = 'silent'|'optional'|'required';
/**
* @see {@link https://www.w3.org/TR/credential-management-1/#dictdef-credentialrequestoptions}

@@ -272,7 +298,39 @@ */

* without user interaction. Defaults to {@code false}.
*
* @deprecated Use {@link mediation} instead.
*/
unmediated?: boolean;
/**
* This property specifies the mediation requirements for a given credential
* request.
*/
mediation?: CredentialMediationRequirement;
}
/**
* @see {@link https://www.w3.org/TR/2017/WD-credential-management-1-20170804/#typedefdef-passwordcredentialinit}
*/
type PasswordCredentialInit = PasswordCredentialData|HTMLFormElement;
/**
* @see {@link https://www.w3.org/TR/2017/WD-credential-management-1-20170804/#dictdef-federatedcredentialinit}
*/
type FederatedCredentialInit = FederatedCredentialData;
/**
* @see {@link https://www.w3.org/TR/2017/WD-credential-management-1-20170804/#dictdef-credentialcreationoptions}
*/
interface CredentialCreationOptions {
/**
* @see {@link https://www.w3.org/TR/2017/WD-credential-management-1-20170804/#dictdef-federatedcredentialinit}
*/
password?: PasswordCredentialInit;
/**
* @see {@link https://www.w3.org/TR/2017/WD-credential-management-1-20170804/#dom-credentialcreationoptions-federated}
*/
federated?: FederatedCredentialInit;
}
/**
* @see {@link https://www.w3.org/TR/credential-management-1/#dictdef-federatedcredentialrequestoptions}

@@ -279,0 +337,0 @@ */

4

webappsec-credential-management/package.json
{
"name": "@types/webappsec-credential-management",
"version": "0.2.0",
"version": "0.3.0",
"description": "TypeScript definitions for W3C (WebAppSec) Credential Management API Level 1,",

@@ -20,4 +20,4 @@ "license": "MIT",

"peerDependencies": {},
"typesPublisherContentHash": "1dc6edc57e95610d18c9444a5cb01f60e77c28c37fe6870515ff358e81b79c54",
"typesPublisherContentHash": "d0f3c166d1f5aac6c6dbf6771463c320c0e806157daaf54fa6b1ce1d02d95a74",
"typeScriptVersion": "2.2"
}

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

Additional Details
* Last updated: Mon, 01 May 2017 20:59:40 GMT
* Last updated: Mon, 07 Aug 2017 16:24:26 GMT
* Dependencies: none

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

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