@nestjs/core
Advanced tools
Comparing version 10.2.10 to 10.3.0
import { RuntimeException } from './runtime.exception'; | ||
export declare class UnknownModuleException extends RuntimeException { | ||
constructor(); | ||
constructor(moduleName?: string); | ||
} |
@@ -6,6 +6,6 @@ "use strict"; | ||
class UnknownModuleException extends runtime_exception_1.RuntimeException { | ||
constructor() { | ||
super('Nest could not select the given module (it does not exist in current context)'); | ||
constructor(moduleName) { | ||
super(`Nest could not select the given module (${moduleName ? `"${moduleName}"` : 'it'} does not exist in current context).`); | ||
} | ||
} | ||
exports.UnknownModuleException = UnknownModuleException; |
@@ -26,11 +26,11 @@ "use strict"; | ||
provide: external_context_creator_1.ExternalContextCreator, | ||
useValue: external_context_creator_1.ExternalContextCreator.fromContainer(container), | ||
useFactory: () => external_context_creator_1.ExternalContextCreator.fromContainer(container), | ||
}, | ||
{ | ||
provide: modules_container_1.ModulesContainer, | ||
useValue: container.getModules(), | ||
useFactory: () => container.getModules(), | ||
}, | ||
{ | ||
provide: http_adapter_host_1.HttpAdapterHost, | ||
useValue: httpAdapterHost, | ||
useFactory: () => httpAdapterHost, | ||
}, | ||
@@ -43,3 +43,3 @@ { | ||
provide: serialized_graph_1.SerializedGraph, | ||
useValue: container.serializedGraph, | ||
useFactory: () => container.serializedGraph, | ||
}, | ||
@@ -46,0 +46,0 @@ ]); |
@@ -60,3 +60,3 @@ "use strict"; | ||
if (!selectedModule) { | ||
throw new exceptions_1.UnknownModuleException(); | ||
throw new exceptions_1.UnknownModuleException(type.name); | ||
} | ||
@@ -63,0 +63,0 @@ return new NestApplicationContext(this.container, this.appOptions, selectedModule, scope); |
{ | ||
"name": "@nestjs/core", | ||
"version": "10.2.10", | ||
"version": "10.3.0", | ||
"description": "Nest - modern, fast, powerful node.js web framework (@core)", | ||
@@ -39,3 +39,3 @@ "author": "Kamil Mysliwiec", | ||
"devDependencies": { | ||
"@nestjs/common": "10.2.10" | ||
"@nestjs/common": "10.3.0" | ||
}, | ||
@@ -42,0 +42,0 @@ "peerDependencies": { |
@@ -86,3 +86,6 @@ <p align="center"> | ||
<a href="https://ridicorp.com/career/" target="_blank"><img src="https://nestjs.com/img/ridi-logo.svg" width="105" valign="middle" /></a></td><td> | ||
<a href="https://www.movavi.com/imovie-for-windows.html" target="_blank"><img src="https://nestjs.com/img/movavi-logo.svg" width="105" valign="middle" /></a></td></</tr></table> | ||
<a href="https://www.movavi.com/imovie-for-windows.html" target="_blank"><img src="https://nestjs.com/img/movavi-logo.svg" width="105" valign="middle" /></a></td> | ||
</tr><tr><td> | ||
<a href="https://skunk.team" target="_blank"><img src="https://nestjs.com/img/skunk-logo.png" height="60" valign="middle" /></a></td> | ||
</tr></table> | ||
@@ -89,0 +92,0 @@ #### Silver Sponsors |
/// <reference types="node" /> | ||
import { DynamicModule, Type } from '@nestjs/common'; | ||
export declare function repl(module: Type | DynamicModule): Promise<import("repl").REPLServer>; | ||
import type { ReplOptions } from 'repl'; | ||
export declare function repl(module: Type | DynamicModule, replOptions?: ReplOptions): Promise<import("repl").REPLServer>; |
@@ -12,3 +12,3 @@ "use strict"; | ||
const repl_native_commands_1 = require("./repl-native-commands"); | ||
async function repl(module) { | ||
async function repl(module, replOptions = {}) { | ||
const app = await nest_factory_1.NestFactory.createApplicationContext(module, { | ||
@@ -25,2 +25,3 @@ abortOnError: false, | ||
ignoreUndefined: true, | ||
...replOptions, | ||
}); | ||
@@ -27,0 +28,0 @@ (0, assign_to_object_util_1.assignToObject)(replServer.context, replContext.globalScope); |
522300
11335
140