trpc-nestjs-adapter
Advanced tools
Comparing version
import { ModuleRef } from '@nestjs/core'; | ||
export declare function buildNestResolver(req: any, moduleRef: 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[]>; | ||
}; | ||
resolveNestDependency: ModuleRef; | ||
}; | ||
//# sourceMappingURL=build-nest-resolver.d.ts.map |
@@ -23,3 +23,3 @@ import { ModuleRef } from '@nestjs/core'; | ||
*/ | ||
export declare function buildTrpcNestMiddleware({ moduleRef, router, createContext }: BuildTrpcNestMiddlewareOptions): (req: any, res: any) => Promise<void>; | ||
export declare function buildTrpcNestMiddleware({ moduleRef, router, createContext }: BuildTrpcNestMiddlewareOptions): (req: any, res: any) => any; | ||
//# sourceMappingURL=build-trpc-nest-middleware.d.ts.map |
@@ -12,2 +12,3 @@ "use strict"; | ||
var TrpcModule_1; | ||
var _a, _b; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -48,3 +49,3 @@ exports.TrpcModule = void 0; | ||
(0, common_1.Inject)(), | ||
__metadata("design:type", core_1.HttpAdapterHost) | ||
__metadata("design:type", typeof (_b = typeof core_1.HttpAdapterHost !== "undefined" && core_1.HttpAdapterHost) === "function" ? _b : Object) | ||
], TrpcModule.prototype, "httpAdapterHost", void 0); | ||
@@ -65,5 +66,5 @@ __decorate([ | ||
(0, common_1.Module)({}), | ||
__metadata("design:paramtypes", [core_1.ModuleRef]) | ||
__metadata("design:paramtypes", [typeof (_a = typeof core_1.ModuleRef !== "undefined" && core_1.ModuleRef) === "function" ? _a : Object]) | ||
], TrpcModule); | ||
exports.TrpcModule = TrpcModule; | ||
//# sourceMappingURL=trpc.module.js.map |
{ | ||
"name": "trpc-nestjs-adapter", | ||
"version": "1.0.0-alpha.5", | ||
"version": "1.0.0-alpha.6", | ||
"description": "TRPC adapter for NestJS", | ||
@@ -16,9 +16,9 @@ "keywords": [ | ||
"license": "MIT", | ||
"main": "./dist/lib/index.js", | ||
"types": "./dist/lib/index.d.ts", | ||
"main": "./dist/index.js", | ||
"types": "./dist/index.d.ts", | ||
"exports": { | ||
".": { | ||
"types": "./dist/lib/index.d.ts", | ||
"import": "./dist/lib/index.js", | ||
"require": "./dist/lib/index.js" | ||
"types": "./dist/index.d.ts", | ||
"import": "./dist/index.js", | ||
"require": "./dist/index.js" | ||
}, | ||
@@ -25,0 +25,0 @@ "./package.json": "./package.json" |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
-100%21113
-5.07%235
-7.48%