@grpc.ts/fastify-server
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -6,3 +6,7 @@ import type { FastifyPluginAsync } from 'fastify'; | ||
export default _default; | ||
import type { TGetServerFunc } from './interface'; | ||
import type { Server } from '@grpc.ts/core/node_modules/@grpc/grpc-js'; | ||
import type { | ||
TUnaryHandlerFunc, | ||
IAddUnaryHandlerOptionsProps, | ||
} from '@grpc.ts/core'; | ||
@@ -12,5 +16,13 @@ declare module 'fastify' { | ||
grpcServer: { | ||
getServer: TGetServerFunc; | ||
getServer: (serverName?: string) => { | ||
server: Server; | ||
addUnaryHandler: <TRequest = unknown>( | ||
serviceName: string, | ||
rpcName: string, | ||
impl: TUnaryHandlerFunc<TRequest>, | ||
options?: IAddUnaryHandlerOptionsProps, | ||
) => void; | ||
}; | ||
}; | ||
} | ||
} |
import type { IServerWrapperProps } from '@grpc.ts/core'; | ||
export type TGetServerFunc = (serverName?: string) => IServerWrapperProps; | ||
export type TGetServerFunc<TRequest = unknown> = (serverName?: string) => IServerWrapperProps<TRequest>; |
{ | ||
"name": "@grpc.ts/fastify-server", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"license": "MIT", | ||
@@ -37,3 +37,3 @@ "directories": { | ||
"fastify-plugin": "^4.5.0", | ||
"@grpc.ts/core": "1.1.0" | ||
"@grpc.ts/core": "1.1.1" | ||
}, | ||
@@ -40,0 +40,0 @@ "devDependencies": { |
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
9296
150
+ Added@grpc.ts/core@1.1.1(transitive)
- Removed@grpc.ts/core@1.1.0(transitive)
Updated@grpc.ts/core@1.1.1