@adhityan/gc-nats
Advanced tools
Comparing version 2.4.0 to 2.5.0
@@ -11,5 +11,5 @@ import { StanOptions, Stan, Subscription, StartPosition } from "node-nats-streaming"; | ||
connect(): Promise<Stan>; | ||
publish(payload: { | ||
publish<T extends {}>(payload: { | ||
subject: string; | ||
data: any; | ||
data: T; | ||
}): Promise<void>; | ||
@@ -16,0 +16,0 @@ /** |
{ | ||
"name": "@adhityan/gc-nats", | ||
"description": "Typescript Node.js client for NATS streaming server", | ||
"version": "2.4.0", | ||
"version": "2.5.0", | ||
"repository": { | ||
@@ -20,3 +20,3 @@ "type": "git", | ||
"dependencies": { | ||
"debug": "^4.3.1", | ||
"debug": "^4.3.2", | ||
"node-nats-streaming": "^0.3.2", | ||
@@ -26,13 +26,13 @@ "uuid": "^8.3.2" | ||
"devDependencies": { | ||
"@types/debug": "^4.1.5", | ||
"@types/express": "^4.17.11", | ||
"@types/node": "^14.14.31", | ||
"@types/uuid": "^8.3.0", | ||
"ts-node": "^9.1.1", | ||
"typeorm": "^0.2.31", | ||
"@types/debug": "^4.1.7", | ||
"@types/express": "^4.17.13", | ||
"@types/node": "^14.14.35", | ||
"@types/uuid": "^8.3.1", | ||
"ts-node": "^10.1.0", | ||
"typeorm": "^0.2.34", | ||
"typescript": "^4.2.2" | ||
}, | ||
"peerDependencies": { | ||
"@adhityan/gc-logger": "^2.0.0" | ||
"@adhityan/gc-logger": "^2.1.0" | ||
} | ||
} |
@@ -82,3 +82,3 @@ /** | ||
public async publish(payload: { subject: string; data: any }) { | ||
public async publish<T extends {}>(payload: { subject: string; data: T }) { | ||
await this.connect(); | ||
@@ -85,0 +85,0 @@ debug('publish data', arguments); |
Sorry, the diff of this file is not supported yet
42019
Updateddebug@^4.3.2