@orion-js/echoes
Advanced tools
Comparing version 3.2.3 to 3.2.4
@@ -1,4 +0,4 @@ | ||
import { Echo, EchoConfig } from '../types'; | ||
import { EchoType, EchoConfig } from '../types'; | ||
declare const echo: { | ||
(options: EchoConfig): Echo; | ||
(options: EchoConfig): EchoType; | ||
types: { | ||
@@ -5,0 +5,0 @@ event: string; |
@@ -6,2 +6,3 @@ import startService from './startService'; | ||
export * from './types'; | ||
export * from './service'; | ||
export { publish, startService, echo, request }; |
@@ -26,1 +26,2 @@ "use strict"; | ||
__exportStar(require("./types"), exports); | ||
__exportStar(require("./service"), exports); |
@@ -1,1 +0,1 @@ | ||
export default function (method: string): import("..").Echo; | ||
export default function (method: string): import("..").EchoType; |
import { EchoesOptions } from '../types'; | ||
declare const _default: (options: EchoesOptions) => import("@orion-js/http").Route; | ||
declare const _default: (options: EchoesOptions) => import("@orion-js/http").RouteType; | ||
export default _default; |
@@ -6,3 +6,3 @@ import { ConsumerConfig, KafkaConfig, ProducerConfig, Consumer, Producer, EachMessagePayload } from 'kafkajs'; | ||
} | ||
export interface Echo extends EchoConfig { | ||
export interface EchoType extends EchoConfig { | ||
onMessage(messageData: EachMessagePayload): Promise<void>; | ||
@@ -58,2 +58,5 @@ onRequest(serializedParams: string): any; | ||
} | ||
export interface EchoesMap { | ||
[key: string]: EchoType; | ||
} | ||
export interface EchoesOptions { | ||
@@ -64,5 +67,3 @@ client?: KafkaConfig; | ||
requests?: RequestsConfig; | ||
echoes: { | ||
[key: string]: Echo; | ||
}; | ||
echoes: EchoesMap; | ||
} | ||
@@ -73,5 +74,3 @@ export interface EchoesConfigHandler { | ||
requests?: RequestsConfig; | ||
echoes?: { | ||
[key: string]: Echo; | ||
}; | ||
echoes?: EchoesMap; | ||
} |
{ | ||
"name": "@orion-js/echoes", | ||
"version": "3.2.3", | ||
"version": "3.2.4", | ||
"main": "lib/index.js", | ||
@@ -21,6 +21,8 @@ "types": "lib/index.d.ts", | ||
"@orion-js/helpers": "^3.2.0", | ||
"@orion-js/http": "^3.2.3", | ||
"@orion-js/http": "^3.2.4", | ||
"@orion-js/services": "^3.2.0", | ||
"axios": "^0.24.0", | ||
"jssha": "^3.2.0", | ||
"kafkajs": "^1.15.0", | ||
"lodash": "^4.17.21", | ||
"serialize-javascript": "^6.0.0" | ||
@@ -33,2 +35,3 @@ }, | ||
"jest": "27.3.1", | ||
"reflect-metadata": "^0.1.13", | ||
"supertest": "^6.1.6", | ||
@@ -41,3 +44,3 @@ "ts-jest": "27.0.7", | ||
}, | ||
"gitHead": "169123c560388991a3e2d3d7c96682dcb3713523" | ||
"gitHead": "a1c4cff581b31f24896ec96a0a180d043dbf802a" | ||
} |
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
25232
40
628
8
8
+ Added@orion-js/services@^3.2.0
+ Addedlodash@^4.17.21
Updated@orion-js/http@^3.2.4