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

daf-did-jwt

Package Overview
Dependencies
Maintainers
6
Versions
145
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

daf-did-jwt - npm Package Compare versions

Comparing version 7.0.0-beta.15 to 7.0.0-beta.16

5

build/index.d.ts

@@ -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

8

build/message-handler.d.ts

@@ -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

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