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

daf-core

Package Overview
Dependencies
Maintainers
6
Versions
151
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

daf-core - npm Package Compare versions

Comparing version 5.6.6 to 5.7.0

2

build/identity/abstract-identity-provider.d.ts

@@ -7,3 +7,3 @@ /// <reference types="node" />

abstract description: string;
abstract createIdentity(): Promise<AbstractIdentity>;
abstract createIdentity(options?: any): Promise<AbstractIdentity>;
abstract deleteIdentity(did: string): Promise<boolean>;

@@ -10,0 +10,0 @@ abstract getIdentities(): Promise<AbstractIdentity[]>;

@@ -13,3 +13,3 @@ import { AbstractIdentity } from './abstract-identity';

getIdentity(did: string): Promise<AbstractIdentity>;
createIdentity(identityProviderType?: string): Promise<AbstractIdentity>;
createIdentity(identityProviderType?: string, options?: any): Promise<AbstractIdentity>;
importIdentity(identityProviderType: string, secret: string): Promise<AbstractIdentity>;

@@ -16,0 +16,0 @@ exportIdentity(identityProviderType: string, did: string): Promise<string>;

@@ -136,3 +136,3 @@ "use strict";

};
IdentityManager.prototype.createIdentity = function (identityProviderType) {
IdentityManager.prototype.createIdentity = function (identityProviderType, options) {
return __awaiter(this, void 0, void 0, function () {

@@ -144,3 +144,3 @@ var identityProvider;

: this.getDefaultIdentityProvider();
return [2 /*return*/, identityProvider.createIdentity()];
return [2 /*return*/, identityProvider.createIdentity(options)];
});

@@ -147,0 +147,0 @@ });

@@ -6,2 +6,13 @@ # Change Log

# [5.7.0](https://github.com/uport-project/daf/compare/v5.6.7...v5.7.0) (2020-05-29)
### Features
* Identity provider for did:web ([9b20fb1](https://github.com/uport-project/daf/commit/9b20fb13da21865d50f6e0680e0d7da040a3d75c))
## [5.6.6](https://github.com/uport-project/daf/compare/v5.6.5...v5.6.6) (2020-05-26)

@@ -8,0 +19,0 @@

{
"name": "daf-core",
"description": "DID Agent Framework Core",
"version": "5.6.6",
"version": "5.7.0",
"main": "build/index.js",

@@ -32,3 +32,3 @@ "types": "build/index.d.ts",

"keywords": [],
"gitHead": "d82de5495f89ea220c3c981c3702d5861b8f0fba"
"gitHead": "989720281c3159aee656ee1098cb507aa10ce218"
}

@@ -7,3 +7,3 @@ import { EventEmitter } from 'events'

abstract description: string
abstract createIdentity(): Promise<AbstractIdentity>
abstract createIdentity(options?: any): Promise<AbstractIdentity>
abstract deleteIdentity(did: string): Promise<boolean>

@@ -10,0 +10,0 @@ abstract getIdentities(): Promise<AbstractIdentity[]>

@@ -48,7 +48,7 @@ import { AbstractIdentity } from './abstract-identity'

async createIdentity(identityProviderType?: string): Promise<AbstractIdentity> {
async createIdentity(identityProviderType?: string, options?: any): Promise<AbstractIdentity> {
const identityProvider = identityProviderType
? this.getIdentityProvider(identityProviderType)
: this.getDefaultIdentityProvider()
return identityProvider.createIdentity()
return identityProvider.createIdentity(options)
}

@@ -55,0 +55,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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