daf-message-handler
Advanced tools
Comparing version 7.0.0-beta.15 to 7.0.0-beta.16
import { IAgentContext } from 'daf-core'; | ||
import { Message } from './message'; | ||
export declare const unsupportedMessageTypeError = "Unsupported message type"; | ||
/** | ||
* An abstract class for creating {@link daf-message-handler#MessageHandler} plugins | ||
* @public | ||
*/ | ||
export declare abstract class AbstractMessageHandler { | ||
@@ -5,0 +9,0 @@ nextMessageHandler?: AbstractMessageHandler; |
@@ -41,2 +41,6 @@ "use strict"; | ||
exports.unsupportedMessageTypeError = 'Unsupported message type'; | ||
/** | ||
* An abstract class for creating {@link daf-message-handler#MessageHandler} plugins | ||
* @public | ||
*/ | ||
var AbstractMessageHandler = /** @class */ (function () { | ||
@@ -43,0 +47,0 @@ function AbstractMessageHandler() { |
/** | ||
* Plugin that implements {@link daf-core#IHandleMessage} interface | ||
* Provides a {@link daf-message-handler#MessageHandler | plugin} for the {@link daf-core#Agent} that implements {@link daf-core#IMessageHandler} interface | ||
* | ||
@@ -4,0 +4,0 @@ * @packageDocumentation |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
/** | ||
* Plugin that implements {@link daf-core#IHandleMessage} interface | ||
* Provides a {@link daf-message-handler#MessageHandler | plugin} for the {@link daf-core#Agent} that implements {@link daf-core#IMessageHandler} interface | ||
* | ||
@@ -6,0 +6,0 @@ * @packageDocumentation |
/// <reference types="node" /> | ||
import { EventEmitter } from 'events'; | ||
import { IDataStore, IAgentPlugin, IAgentContext, IHandleMessage, IHandleMessageArgs } from 'daf-core'; | ||
import { IDataStore, IAgentPlugin, IAgentContext, IMessageHandler, IHandleMessageArgs } from 'daf-core'; | ||
import { Message } from './message'; | ||
@@ -12,3 +12,3 @@ import { AbstractMessageHandler } from './abstract-message-handler'; | ||
/** | ||
* Agent plugin that provides {@link daf-core#IHandleMessage} methods | ||
* Agent plugin that provides {@link daf-core#IMessageHandler} methods | ||
*/ | ||
@@ -20,3 +20,3 @@ export declare class MessageHandler extends EventEmitter implements IAgentPlugin { | ||
*/ | ||
readonly methods: IHandleMessage; | ||
readonly methods: IMessageHandler; | ||
private messageHandler?; | ||
@@ -26,5 +26,5 @@ constructor(options: { | ||
}); | ||
/** {@inheritDoc daf-core#IHandleMessage.handleMessage} */ | ||
/** {@inheritDoc daf-core#IMessageHandler.handleMessage} */ | ||
handleMessage(args: IHandleMessageArgs, context: IAgentContext<IDataStore>): Promise<Message>; | ||
} | ||
//# sourceMappingURL=message-handler.d.ts.map |
@@ -77,3 +77,3 @@ "use strict"; | ||
/** | ||
* Agent plugin that provides {@link daf-core#IHandleMessage} methods | ||
* Agent plugin that provides {@link daf-core#IMessageHandler} methods | ||
*/ | ||
@@ -113,3 +113,3 @@ var MessageHandler = /** @class */ (function (_super) { | ||
} | ||
/** {@inheritDoc daf-core#IHandleMessage.handleMessage} */ | ||
/** {@inheritDoc daf-core#IMessageHandler.handleMessage} */ | ||
MessageHandler.prototype.handleMessage = function (args, context) { | ||
@@ -116,0 +116,0 @@ return __awaiter(this, void 0, void 0, function () { |
@@ -6,4 +6,12 @@ # 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) | ||
**Note:** Version bump only for package daf-message-handler | ||
# [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) | ||
**Note:** Version bump only for package daf-message-handler |
{ | ||
"name": "daf-message-handler", | ||
"description": "DAF Message Handler", | ||
"version": "7.0.0-beta.15", | ||
"version": "7.0.0-beta.16", | ||
"main": "build/index.js", | ||
@@ -11,3 +11,3 @@ "types": "build/index.d.ts", | ||
"dependencies": { | ||
"daf-core": "^7.0.0-beta.15" | ||
"daf-core": "^7.0.0-beta.16" | ||
}, | ||
@@ -27,3 +27,3 @@ "devDependencies": { | ||
"keywords": [], | ||
"gitHead": "2adc767588a5e3a5529bab1e297462ee00801f9c" | ||
"gitHead": "8e702b9c561d59bad3c730cfc6cfa5719c52bccc" | ||
} |
@@ -6,2 +6,6 @@ import { IAgentContext } from 'daf-core' | ||
/** | ||
* An abstract class for creating {@link daf-message-handler#MessageHandler} plugins | ||
* @public | ||
*/ | ||
export abstract class AbstractMessageHandler { | ||
@@ -8,0 +12,0 @@ public nextMessageHandler?: AbstractMessageHandler |
/** | ||
* Plugin that implements {@link daf-core#IHandleMessage} interface | ||
* Provides a {@link daf-message-handler#MessageHandler | plugin} for the {@link daf-core#Agent} that implements {@link daf-core#IMessageHandler} interface | ||
* | ||
@@ -4,0 +4,0 @@ * @packageDocumentation |
import { EventEmitter } from 'events' | ||
import { IDataStore, IAgentPlugin, IAgentContext, IHandleMessage, IHandleMessageArgs } from 'daf-core' | ||
import { IDataStore, IAgentPlugin, IAgentContext, IMessageHandler, IHandleMessageArgs } from 'daf-core' | ||
import { Message } from './message' | ||
@@ -16,3 +16,3 @@ import { AbstractMessageHandler } from './abstract-message-handler' | ||
/** | ||
* Agent plugin that provides {@link daf-core#IHandleMessage} methods | ||
* Agent plugin that provides {@link daf-core#IMessageHandler} methods | ||
*/ | ||
@@ -24,3 +24,3 @@ export class MessageHandler extends EventEmitter implements IAgentPlugin { | ||
*/ | ||
readonly methods: IHandleMessage | ||
readonly methods: IMessageHandler | ||
private messageHandler?: AbstractMessageHandler | ||
@@ -49,3 +49,3 @@ | ||
/** {@inheritDoc daf-core#IHandleMessage.handleMessage} */ | ||
/** {@inheritDoc daf-core#IMessageHandler.handleMessage} */ | ||
public async handleMessage(args: IHandleMessageArgs, context: IAgentContext<IDataStore>): Promise<Message> { | ||
@@ -52,0 +52,0 @@ const { raw, metaData, save } = args |
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
39654
500
Updateddaf-core@^7.0.0-beta.16