@katt/trpc-server
Advanced tools
Comparing version 1.0.0-alpha.7 to 1.0.0-alpha.8
@@ -26,3 +26,9 @@ import { AnyRouter, inferAsyncReturnType } from './router'; | ||
onceDataAndStop(): Promise<TData>; | ||
/** | ||
* Emit data | ||
*/ | ||
emitData(data: TData): void; | ||
/** | ||
* Emit error | ||
*/ | ||
emitError(err: Error): void; | ||
@@ -29,0 +35,0 @@ } |
@@ -1086,7 +1086,15 @@ 'use strict'; | ||
return onceDataAndStop; | ||
}(); | ||
}() | ||
/** | ||
* Emit data | ||
*/ | ||
; | ||
_proto.emitData = function emitData(data) { | ||
this.events.emit('data', this.opts.router.serializeData(data)); | ||
}; | ||
} | ||
/** | ||
* Emit error | ||
*/ | ||
; | ||
@@ -1093,0 +1101,0 @@ _proto.emitError = function emitError(err) { |
@@ -1082,7 +1082,15 @@ import { EventEmitter } from 'events'; | ||
return onceDataAndStop; | ||
}(); | ||
}() | ||
/** | ||
* Emit data | ||
*/ | ||
; | ||
_proto.emitData = function emitData(data) { | ||
this.events.emit('data', this.opts.router.serializeData(data)); | ||
}; | ||
} | ||
/** | ||
* Emit error | ||
*/ | ||
; | ||
@@ -1089,0 +1097,0 @@ _proto.emitError = function emitError(err) { |
{ | ||
"name": "@katt/trpc-server", | ||
"version": "1.0.0-alpha.7", | ||
"version": "1.0.0-alpha.8", | ||
"description": "TRPC Server", | ||
@@ -42,3 +42,3 @@ "author": "KATT", | ||
}, | ||
"gitHead": "bdafe02d5f9da290e14d15519cc84f76be0045ad" | ||
"gitHead": "a6b4cbe95b2518c11b0815b4a4d7768827b95d0e" | ||
} |
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
359161
2951