Comparing version 1.2.0 to 1.3.2
@@ -7,3 +7,3 @@ /// <reference types="node" /> | ||
import { ServiceControllerDerived } from './service/abstract-service-controller'; | ||
import { MessageValidator } from './message/message-validator'; | ||
import { MessageValidator } from './message/abstract-message-validator'; | ||
import { ActionHandler } from './action/action-handler'; | ||
@@ -10,0 +10,0 @@ import { Action } from './types'; |
@@ -69,2 +69,3 @@ "use strict"; | ||
var service_manager_1 = require("./service/service-manager"); | ||
var abstract_message_validator_1 = require("./message/abstract-message-validator"); | ||
var debug_1 = __importDefault(require("debug")); | ||
@@ -200,3 +201,3 @@ var debug = debug_1.default('daf:core'); | ||
return [2 /*return*/, Promise.reject(error_1)]; | ||
case 4: return [2 /*return*/, Promise.reject('Unsupported message type')]; | ||
case 4: return [2 /*return*/, Promise.reject(abstract_message_validator_1.unsupportedMessageTypeError)]; | ||
} | ||
@@ -203,0 +204,0 @@ }); |
@@ -5,3 +5,3 @@ export { Core, EventTypes, Resolver } from './core'; | ||
export { IdentityController, IdentityManager, Issuer } from './identity/identity-manager'; | ||
export { AbstractMessageValidator } from './message/message-validator'; | ||
export { AbstractMessageValidator } from './message/abstract-message-validator'; | ||
export { Message } from './message/message'; | ||
@@ -8,0 +8,0 @@ export { ServiceManager, LastMessageTimestampForInstance, ServiceEventTypes } from './service/service-manager'; |
@@ -17,4 +17,4 @@ "use strict"; | ||
exports.IdentityManager = identity_manager_1.IdentityManager; | ||
var message_validator_1 = require("./message/message-validator"); | ||
exports.AbstractMessageValidator = message_validator_1.AbstractMessageValidator; | ||
var abstract_message_validator_1 = require("./message/abstract-message-validator"); | ||
exports.AbstractMessageValidator = abstract_message_validator_1.AbstractMessageValidator; | ||
var message_1 = require("./message/message"); | ||
@@ -21,0 +21,0 @@ exports.Message = message_1.Message; |
@@ -6,2 +6,13 @@ # Change Log | ||
## [1.3.2](https://github.com/uport-project/daf/compare/v1.3.1...v1.3.2) (2019-12-20) | ||
### Bug Fixes | ||
* ValidateMessage can throw an error ([d00dcdd](https://github.com/uport-project/daf/commit/d00dcddaf69eae26445f7b2ac1fe79b0027e297c)), closes [#10](https://github.com/uport-project/daf/issues/10) | ||
# [1.2.0](https://github.com/uport-project/daf/compare/v1.1.1...v1.2.0) (2019-12-16) | ||
@@ -8,0 +19,0 @@ |
{ | ||
"name": "daf-core", | ||
"description": "DID Agent Framework Core", | ||
"version": "1.2.0", | ||
"version": "1.3.2", | ||
"main": "build/index.js", | ||
@@ -30,3 +30,3 @@ "types": "build/index.d.ts", | ||
"keywords": [], | ||
"gitHead": "d63d38887f2fece7caefff0c892463c10148f4e0" | ||
"gitHead": "5e973edf8e625cbeff16cff36782cbc003479d82" | ||
} |
@@ -6,3 +6,3 @@ import { EventEmitter } from 'events' | ||
import { ServiceControllerDerived } from './service/abstract-service-controller' | ||
import { MessageValidator } from './message/message-validator' | ||
import { MessageValidator, unsupportedMessageTypeError } from './message/abstract-message-validator' | ||
import { ActionHandler } from './action/action-handler' | ||
@@ -103,3 +103,3 @@ import { Action } from './types' | ||
} | ||
return Promise.reject('Unsupported message type') | ||
return Promise.reject(unsupportedMessageTypeError) | ||
} | ||
@@ -106,0 +106,0 @@ |
@@ -5,3 +5,3 @@ export { Core, EventTypes, Resolver } from './core' | ||
export { IdentityController, IdentityManager, Issuer } from './identity/identity-manager' | ||
export { AbstractMessageValidator } from './message/message-validator' | ||
export { AbstractMessageValidator } from './message/abstract-message-validator' | ||
export { Message } from './message/message' | ||
@@ -8,0 +8,0 @@ export { ServiceManager, LastMessageTimestampForInstance, ServiceEventTypes } from './service/service-manager' |
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
122130
60
2171