daf-did-jwt
Advanced tools
Comparing version 7.0.0-beta.15 to 7.0.0-beta.16
@@ -0,2 +1,7 @@ | ||
/** | ||
* Provides a {@link daf-did-jwt#JwtMessageHandler | plugin } for the {@link daf-message-handler#MessageHandler} that finds and verifies a JWT in a message | ||
* | ||
* @packageDocumentation | ||
*/ | ||
export { JwtMessageHandler } from './message-handler'; | ||
//# sourceMappingURL=index.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
/** | ||
* Provides a {@link daf-did-jwt#JwtMessageHandler | plugin } for the {@link daf-message-handler#MessageHandler} that finds and verifies a JWT in a message | ||
* | ||
* @packageDocumentation | ||
*/ | ||
var message_handler_1 = require("./message-handler"); | ||
Object.defineProperty(exports, "JwtMessageHandler", { enumerable: true, get: function () { return message_handler_1.JwtMessageHandler; } }); | ||
//# sourceMappingURL=index.js.map |
@@ -1,4 +0,8 @@ | ||
import { IAgentContext, IResolveDid } from 'daf-core'; | ||
import { IAgentContext, IResolver } from 'daf-core'; | ||
import { AbstractMessageHandler, Message } from 'daf-message-handler'; | ||
export declare type IContext = IAgentContext<IResolveDid>; | ||
export declare type IContext = IAgentContext<IResolver>; | ||
/** | ||
* A plugin for {@link daf-message-handler#MessageHandler} that finds and verifies a JWT in a message | ||
* @public | ||
*/ | ||
export declare class JwtMessageHandler extends AbstractMessageHandler { | ||
@@ -5,0 +9,0 @@ handle(message: Message, context: IContext): Promise<Message>; |
@@ -60,2 +60,6 @@ "use strict"; | ||
var debug = debug_1.default('daf:did-jwt:message-handler'); | ||
/** | ||
* A plugin for {@link daf-message-handler#MessageHandler} that finds and verifies a JWT in a message | ||
* @public | ||
*/ | ||
var JwtMessageHandler = /** @class */ (function (_super) { | ||
@@ -62,0 +66,0 @@ __extends(JwtMessageHandler, _super); |
@@ -6,2 +6,21 @@ # Change Log | ||
# [7.0.0-beta.16](https://github.com/uport-project/daf/compare/v7.0.0-beta.15...v7.0.0-beta.16) (2020-09-02) | ||
### Code Refactoring | ||
* Refactor and add inline documentation to daf-w3c package ([91ff4d9](https://github.com/uport-project/daf/commit/91ff4d936d11bf48c56aec6cebc91e268d44f730)) | ||
### BREAKING CHANGES | ||
* the `IW3c` type and `W3c` class have been renamed to | ||
`ICredentialIssuer` and `CredentialIssuer` | ||
fix(deps): update `did-resolver` and `did-jwt` libs for all packages to maintain type consistency | ||
# [7.0.0-beta.15](https://github.com/uport-project/daf/compare/v7.0.0-beta.14...v7.0.0-beta.15) (2020-08-27) | ||
@@ -8,0 +27,0 @@ |
{ | ||
"name": "daf-did-jwt", | ||
"description": "DAF did-jwt message validator", | ||
"version": "7.0.0-beta.15", | ||
"version": "7.0.0-beta.16", | ||
"main": "build/index.js", | ||
@@ -11,7 +11,7 @@ "types": "build/index.d.ts", | ||
"dependencies": { | ||
"daf-core": "^7.0.0-beta.15", | ||
"daf-message-handler": "^7.0.0-beta.15", | ||
"daf-core": "^7.0.0-beta.16", | ||
"daf-message-handler": "^7.0.0-beta.16", | ||
"debug": "^4.1.1", | ||
"did-jwt": "^4.3.2", | ||
"did-resolver": "^1.1.0" | ||
"did-jwt": "4.5.0", | ||
"did-resolver": "2.1.1" | ||
}, | ||
@@ -32,3 +32,3 @@ "devDependencies": { | ||
"keywords": [], | ||
"gitHead": "2adc767588a5e3a5529bab1e297462ee00801f9c" | ||
"gitHead": "8e702b9c561d59bad3c730cfc6cfa5719c52bccc" | ||
} |
@@ -70,3 +70,3 @@ import { DIDDocument } from 'daf-core' | ||
type: 'Secp256k1VerificationKey2018', | ||
owner: args?.didUrl, | ||
controller: args?.didUrl, | ||
ethereumAddress: args?.didUrl.slice(-42), | ||
@@ -73,0 +73,0 @@ }, |
@@ -0,1 +1,6 @@ | ||
/** | ||
* Provides a {@link daf-did-jwt#JwtMessageHandler | plugin } for the {@link daf-message-handler#MessageHandler} that finds and verifies a JWT in a message | ||
* | ||
* @packageDocumentation | ||
*/ | ||
export { JwtMessageHandler } from './message-handler' |
@@ -1,2 +0,2 @@ | ||
import { IAgentContext, IResolveDid } from 'daf-core' | ||
import { IAgentContext, IResolver } from 'daf-core' | ||
import { AbstractMessageHandler, Message } from 'daf-message-handler' | ||
@@ -7,4 +7,8 @@ import { verifyJWT, decodeJWT } from 'did-jwt' | ||
export type IContext = IAgentContext<IResolveDid> | ||
export type IContext = IAgentContext<IResolver> | ||
/** | ||
* A plugin for {@link daf-message-handler#MessageHandler} that finds and verifies a JWT in a message | ||
* @public | ||
*/ | ||
export class JwtMessageHandler extends AbstractMessageHandler { | ||
@@ -11,0 +15,0 @@ async handle(message: Message, context: IContext): Promise<Message> { |
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
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
44615
321
+ Added@stablelib/utf8@1.0.2(transitive)
+ Addedbase64-js@1.5.1(transitive)
+ Addedbuffer@5.7.1(transitive)
+ Addeddid-jwt@4.5.0(transitive)
+ Addeddid-resolver@2.1.1(transitive)
+ Addedieee754@1.2.1(transitive)
+ Addedjs-sha256@0.9.0(transitive)
+ Addedtweetnacl@1.0.3(transitive)
+ Addeduport-base64url@3.0.2-alpha.0(transitive)
- Removeddid-resolver@1.1.0(transitive)
Updateddaf-core@^7.0.0-beta.16
Updateddid-jwt@4.5.0
Updateddid-resolver@2.1.1