@nestjs/core 5.5.0-0 → 5.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Readme.md CHANGED
@@ -16,6 +16,7 @@
16
16
  <a href="https://travis-ci.org/nestjs/nest"><img src="https://img.shields.io/travis/nestjs/nest/master.svg?label=linux" alt="Linux" /></a>
17
17
  <a href="https://coveralls.io/github/nestjs/nest?branch=master"><img src="https://coveralls.io/repos/github/nestjs/nest/badge.svg?branch=master#8" alt="Coverage" /></a>
18
18
  <a href="https://gitter.im/nestjs/nestjs?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=body_badge"><img src="https://badges.gitter.im/nestjs/nestjs.svg" alt="Gitter" /></a>
19
+ <a href="https://discord.gg/G7Qnnhy"><img src="https://img.shields.io/badge/discord-online-brightgreen.svg" alt="Discord"/></a>
19
20
  <a href="https://opencollective.com/nest#backer"><img src="https://opencollective.com/nest/backers/badge.svg" alt="Backers on Open Collective" /></a>
20
21
  <a href="https://opencollective.com/nest#sponsor"><img src="https://opencollective.com/nest/sponsors/badge.svg" alt="Sponsors on Open Collective" /></a>
21
22
  <a href="https://paypal.me/kamilmysliwiec"><img src="https://img.shields.io/badge/Donate-PayPal-ff3f59.svg"/></a>
@@ -48,13 +49,10 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
48
49
 
49
50
  <a href="https://valor-software.com/"><img src="https://docs.nestjs.com/assets/sponsors/valor-software.png" width="320" /></a>
50
51
 
51
- #### Gold Sponsors
52
-
53
- <a href="http://xtremis.com/"><img src="https://nestjs.com/img/logo-xtremis.svg" width="220" /></a>
54
-
55
52
  #### Silver Sponsors
56
53
  <a href="https://neoteric.eu/"><img src="https://nestjs.com/img/neoteric-cut.png" width="120" /></a> &nbsp;
57
- <a href="http://gojob.com"><img src="http://nestjs.com/img/gojob-logo.png" valign="bottom" height="95" /></a> &nbsp; <a href="https://www.swingdev.io"><img src="https://nestjs.com/img/swingdev-logo.svg#1" width="150" /> </a>
54
+ <a href="http://gojob.com"><img src="http://nestjs.com/img/gojob-logo.png" valign="bottom" height="95" /></a> &nbsp; <a href="https://www.swingdev.io"><img src="https://nestjs.com/img/swingdev-logo.svg#1" width="150" /> </a> &nbsp;
55
+ <a href="http://xtremis.com/"><img src="https://nestjs.com/img/logo-xtremis.svg" width="150" /></a>
58
56
 
59
57
  #### Sponsors
60
58
 
@@ -35,7 +35,7 @@ exports.UNKNOWN_DEPENDENCIES_MESSAGE = (type, unknownDependencyContext, module)
35
35
  return message;
36
36
  };
37
37
  exports.INVALID_MIDDLEWARE_MESSAGE = (text, name) => `The middleware doesn't provide the 'resolve' method (${name})`;
38
- exports.INVALID_MODULE_MESSAGE = (text, scope) => `Nest cannot create the module instance. Often, this is because of a circular dependency between modules. Use forwardRef() to avoid it. (Read more https://docs.nestjs.com/advanced/circular-dependency.) Scope [${scope}]`;
38
+ exports.INVALID_MODULE_MESSAGE = (text, scope) => `Nest cannot create the module instance. Often, this is because of a circular dependency between modules. Use forwardRef() to avoid it. (Read more https://docs.nestjs.com/fundamentals/circular-dependency.) Scope [${scope}]`;
39
39
  exports.UNKNOWN_EXPORT_MESSAGE = (text, module) => `Nest cannot export a component/module that is not a part of the currently processed module (${module}). Please verify whether each exported unit is available in this particular context.`;
40
40
  exports.INVALID_CLASS_MESSAGE = (text, value) => `ModuleRef cannot instantiate class (${value} is not constructable).`;
41
41
  exports.INVALID_MIDDLEWARE_CONFIGURATION = `Invalid middleware configuration passed inside the module 'configure()' method.`;
@@ -1,11 +1,12 @@
1
1
  import { Type } from '@nestjs/common';
2
+ import { Abstract } from '@nestjs/common/interfaces';
2
3
  import { NestContainer } from './container';
3
4
  import { Module } from './module';
4
5
  export declare class ContainerScanner {
5
6
  private readonly container;
6
7
  private flatContainer;
7
8
  constructor(container: NestContainer);
8
- find<TInput = any, TResult = TInput>(typeOrToken: Type<TInput> | string | symbol): TResult;
9
- findInstanceByPrototypeOrToken<TInput = any, TResult = TInput>(metatypeOrToken: Type<TInput> | string | symbol, contextModule: Partial<Module>): TResult;
9
+ find<TInput = any, TResult = TInput>(typeOrToken: Type<TInput> | Abstract<TInput> | string | symbol): TResult;
10
+ findInstanceByPrototypeOrToken<TInput = any, TResult = TInput>(metatypeOrToken: Type<TInput> | Abstract<TInput> | string | symbol, contextModule: Partial<Module>): TResult;
10
11
  private initFlatContainer();
11
12
  }
@@ -1,4 +1,5 @@
1
1
  import { INestApplicationContext, LoggerService, OnApplicationBootstrap, OnModuleDestroy, OnModuleInit } from '@nestjs/common';
2
+ import { Abstract } from '@nestjs/common/interfaces';
2
3
  import { Type } from '@nestjs/common/interfaces/type.interface';
3
4
  import { NestContainer } from './injector/container';
4
5
  import { Module } from './injector/module';
@@ -11,7 +12,7 @@ export declare class NestApplicationContext implements INestApplicationContext {
11
12
  constructor(container: NestContainer, scope: Type<any>[], contextModule: Module);
12
13
  selectContextModule(): void;
13
14
  select<T>(module: Type<T>): INestApplicationContext;
14
- get<TInput = any, TResult = TInput>(typeOrToken: Type<TInput> | string | symbol, options?: {
15
+ get<TInput = any, TResult = TInput>(typeOrToken: Type<TInput> | Abstract<TInput> | string | symbol, options?: {
15
16
  strict: boolean;
16
17
  }): TResult;
17
18
  init(): Promise<this>;
@@ -26,6 +27,6 @@ export declare class NestApplicationContext implements INestApplicationContext {
26
27
  protected callBootstrapHook(): Promise<any>;
27
28
  protected callModuleBootstrapHook(module: Module): Promise<any>;
28
29
  protected hasOnAppBotstrapHook(instance: any): instance is OnApplicationBootstrap;
29
- protected find<TInput = any, TResult = TInput>(typeOrToken: Type<TInput> | string | symbol): TResult;
30
- protected findInstanceByPrototypeOrToken<TInput = any, TResult = TInput>(metatypeOrToken: Type<TInput> | string | symbol, contextModule: Partial<Module>): TResult;
30
+ protected find<TInput = any, TResult = TInput>(typeOrToken: Type<TInput> | Abstract<TInput> | string | symbol): TResult;
31
+ protected findInstanceByPrototypeOrToken<TInput = any, TResult = TInput>(metatypeOrToken: Type<TInput> | Abstract<TInput> | string | symbol, contextModule: Partial<Module>): TResult;
31
32
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nestjs/core",
3
- "version": "5.5.0-0",
3
+ "version": "5.6.2",
4
4
  "description": "Nest - modern, fast, powerful node.js web framework (@core)",
5
5
  "author": "Kamil Mysliwiec",
6
6
  "license": "MIT",