You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

trpc-nestjs-adapter

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

trpc-nestjs-adapter - npm Package Compare versions

Comparing version

to
1.0.0-alpha.8

22

dist/build-nest-resolver.d.ts
import { ModuleRef } from '@nestjs/core';
export declare function buildNestResolver(req: any, moduleRef: ModuleRef): {
resolveNestDependency: ModuleRef;
resolveNestDependency: {
<TInput = any, TResult = TInput>(typeOrToken: string | symbol | Function | import("@nestjs/common").Type<TInput>): Promise<TResult>;
<TInput_1 = any, TResult_1 = TInput_1>(typeOrToken: string | symbol | Function | import("@nestjs/common").Type<TInput_1>, contextId?: {
id: number;
} | undefined): Promise<TResult_1>;
<TInput_2 = any, TResult_2 = TInput_2>(typeOrToken: string | symbol | Function | import("@nestjs/common").Type<TInput_2>, contextId?: {
id: number;
} | undefined, options?: {
strict?: boolean | undefined;
each?: false | undefined;
} | undefined): Promise<TResult_2>;
<TInput_3 = any, TResult_3 = TInput_3>(typeOrToken: string | symbol | Function | import("@nestjs/common").Type<TInput_3>, contextId?: {
id: number;
} | undefined, options?: {
strict?: boolean | undefined;
each: true;
} | undefined): Promise<TResult_3[]>;
<TInput_4 = any, TResult_4 = TInput_4>(typeOrToken: string | symbol | Function | import("@nestjs/common").Type<TInput_4>, contextId?: {
id: number;
} | undefined, options?: import("@nestjs/core").ModuleRefGetOrResolveOpts | undefined): Promise<TResult_4 | TResult_4[]>;
};
};
//# sourceMappingURL=build-nest-resolver.d.ts.map

2

dist/build-trpc-nest-middleware.d.ts

@@ -23,3 +23,3 @@ import { ModuleRef } from '@nestjs/core';

*/
export declare function buildTrpcNestMiddleware({ moduleRef, router, createContext }: BuildTrpcNestMiddlewareOptions): (req: any, res: any) => any;
export declare function buildTrpcNestMiddleware({ moduleRef, router, createContext }: BuildTrpcNestMiddlewareOptions): (req: any, res: any) => Promise<void>;
//# sourceMappingURL=build-trpc-nest-middleware.d.ts.map

@@ -12,3 +12,2 @@ "use strict";

var TrpcModule_1;
var _a, _b;
Object.defineProperty(exports, "__esModule", { value: true });

@@ -49,3 +48,3 @@ exports.TrpcModule = void 0;

(0, common_1.Inject)(),
__metadata("design:type", typeof (_b = typeof core_1.HttpAdapterHost !== "undefined" && core_1.HttpAdapterHost) === "function" ? _b : Object)
__metadata("design:type", core_1.HttpAdapterHost)
], TrpcModule.prototype, "httpAdapterHost", void 0);

@@ -66,5 +65,5 @@ __decorate([

(0, common_1.Module)({}),
__metadata("design:paramtypes", [typeof (_a = typeof core_1.ModuleRef !== "undefined" && core_1.ModuleRef) === "function" ? _a : Object])
__metadata("design:paramtypes", [core_1.ModuleRef])
], TrpcModule);
exports.TrpcModule = TrpcModule;
//# sourceMappingURL=trpc.module.js.map
{
"name": "trpc-nestjs-adapter",
"version": "1.0.0-alpha.7",
"version": "1.0.0-alpha.8",
"description": "TRPC adapter for NestJS",

@@ -49,3 +49,9 @@ "keywords": [

"nodemon": "^2.0.20",
"typescript": "^4.9.4"
"typescript": "^4.9.4",
"@nestjs/common": "^9.2.1",
"@nestjs/core": "^9.2.1",
"@nestjs/platform-express": "^9.2.1",
"@trpc/server": "~10.14.0",
"reflect-metadata": "^0.1.12",
"rxjs": "^7.1.0"
},

@@ -52,0 +58,0 @@ "files": [

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