Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@grpc.ts/fastify-server

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@grpc.ts/fastify-server - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

16

lib/index.d.ts

@@ -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;
};
};
}
}

2

lib/interface.d.ts
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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc